* 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
32 lines
739 B
Python
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
|
|
)
|