1
0
mirror of synced 2025-12-31 15:03:11 -05:00
Files
airbyte/airbyte-integrations/connectors/source-gitlab/unit_tests/conftest.py
Denys Davydov ba773ce4ce 🐛 Source Gitlab: disallow http in cloud, disallow endpoints in URLs (#27346)
* Connector health: source hubspot, gitlab, snapchat-marketing: fix builds

* #26254 source Gitlab: disallow enpoints in URLs, disallow bare http in cloud

* source gitlab: update changelog

* #26254 source gitlab: rm http from spec
2023-06-15 11:11:54 +03:00

32 lines
739 B
Python

#
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#
import pytest
@pytest.fixture(params=["gitlab.com", "http://gitlab.com", "https://gitlab.com"])
def config(request):
return {
"start_date": "2021-01-01T00:00:00Z",
"api_url": request.param,
"credentials": {
"auth_type": "access_token",
"access_token": "token"
}
}
@pytest.fixture(autouse=True)
def disable_cache(mocker):
mocker.patch(
"source_gitlab.streams.Projects.use_cache",
new_callable=mocker.PropertyMock,
return_value=False
)
mocker.patch(
"source_gitlab.streams.Groups.use_cache",
new_callable=mocker.PropertyMock,
return_value=False
)