Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ jobs:
poetry config virtualenvs.create false
make install-dev
- name: Lint
run: make lint
run: make lint-services
- name: Test
run: make test
run: make test-services
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,28 @@ install-dev:
# install core. This needs to be done last or it will get overriden by the dependency installation of the services
poetry install -C core --no-root; pip install -e core

test:
test-services:
# test core
cd core && poetry install --with dev && pytest
# test services
@for f in $(shell ls ${SERVICES_DIR}); do set -e; cd ${SERVICES_DIR}/$${f}; poetry install --with dev;sh -c 'pytest || ([ $$? = 5 ] && exit 0 || exit $$?)'; cd ../..; done

lint:
lint-services:
# lint core
cd core && poetry install --no-root --only dev &&flake8 .
# lint examples. Use configuration from core
flake8 --toml-config core/pyproject.toml --black-config core/pyproject.toml examples;
# lint services
@for f in $(shell ls ${SERVICES_DIR}); do set -e; cd ${SERVICES_DIR}/$${f};poetry install --no-root --only dev; flake8 .; cd ../..; done

test:
echo "Testing service ${service}"
cd ${SERVICES_DIR}/${service}; poetry install --with dev;sh -c 'pytest || ([ $$? = 5 ] && exit 0 || exit $$?)'; cd ../..;

lint:
echo "Linting service ${service}"
cd ${SERVICES_DIR}/${service};poetry install --no-root --only dev; flake8 .; cd ../..;

update-dependencies:
# lock core
cd core && poetry lock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ def __init__(self, configuration: Configuration = None) -> None:
def create_credentials(
self,
project_id: StrictStr,
x_request_id: StrictStr,
create_credentials_payload: CreateCredentialsPayload,
x_request_id: Optional[StrictStr] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -93,10 +93,10 @@ def create_credentials(

:param project_id: (required)
:type project_id: str
:param x_request_id: (required)
:type x_request_id: str
:param create_credentials_payload: (required)
:type create_credentials_payload: CreateCredentialsPayload
:param x_request_id:
:type x_request_id: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand All @@ -121,8 +121,8 @@ def create_credentials(

_param = self._create_credentials_serialize(
project_id=project_id,
x_request_id=x_request_id,
create_credentials_payload=create_credentials_payload,
x_request_id=x_request_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand All @@ -147,8 +147,8 @@ def create_credentials(
def create_credentials_with_http_info(
self,
project_id: StrictStr,
x_request_id: StrictStr,
create_credentials_payload: CreateCredentialsPayload,
x_request_id: Optional[StrictStr] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -165,10 +165,10 @@ def create_credentials_with_http_info(

:param project_id: (required)
:type project_id: str
:param x_request_id: (required)
:type x_request_id: str
:param create_credentials_payload: (required)
:type create_credentials_payload: CreateCredentialsPayload
:param x_request_id:
:type x_request_id: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand All @@ -193,8 +193,8 @@ def create_credentials_with_http_info(

_param = self._create_credentials_serialize(
project_id=project_id,
x_request_id=x_request_id,
create_credentials_payload=create_credentials_payload,
x_request_id=x_request_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand All @@ -219,8 +219,8 @@ def create_credentials_with_http_info(
def create_credentials_without_preload_content(
self,
project_id: StrictStr,
x_request_id: StrictStr,
create_credentials_payload: CreateCredentialsPayload,
x_request_id: Optional[StrictStr] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -237,10 +237,10 @@ def create_credentials_without_preload_content(

:param project_id: (required)
:type project_id: str
:param x_request_id: (required)
:type x_request_id: str
:param create_credentials_payload: (required)
:type create_credentials_payload: CreateCredentialsPayload
:param x_request_id:
:type x_request_id: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand All @@ -265,8 +265,8 @@ def create_credentials_without_preload_content(

_param = self._create_credentials_serialize(
project_id=project_id,
x_request_id=x_request_id,
create_credentials_payload=create_credentials_payload,
x_request_id=x_request_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand All @@ -286,8 +286,8 @@ def create_credentials_without_preload_content(
def _create_credentials_serialize(
self,
project_id,
x_request_id,
create_credentials_payload,
x_request_id,
_request_auth,
_content_type,
_headers,
Expand Down Expand Up @@ -351,8 +351,8 @@ def _create_credentials_serialize(
def create_load_balancer(
self,
project_id: StrictStr,
x_request_id: StrictStr,
create_load_balancer_payload: CreateLoadBalancerPayload,
x_request_id: Optional[StrictStr] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -369,10 +369,10 @@ def create_load_balancer(

:param project_id: (required)
:type project_id: str
:param x_request_id: (required)
:type x_request_id: str
:param create_load_balancer_payload: (required)
:type create_load_balancer_payload: CreateLoadBalancerPayload
:param x_request_id:
:type x_request_id: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand All @@ -397,8 +397,8 @@ def create_load_balancer(

_param = self._create_load_balancer_serialize(
project_id=project_id,
x_request_id=x_request_id,
create_load_balancer_payload=create_load_balancer_payload,
x_request_id=x_request_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand All @@ -424,8 +424,8 @@ def create_load_balancer(
def create_load_balancer_with_http_info(
self,
project_id: StrictStr,
x_request_id: StrictStr,
create_load_balancer_payload: CreateLoadBalancerPayload,
x_request_id: Optional[StrictStr] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -442,10 +442,10 @@ def create_load_balancer_with_http_info(

:param project_id: (required)
:type project_id: str
:param x_request_id: (required)
:type x_request_id: str
:param create_load_balancer_payload: (required)
:type create_load_balancer_payload: CreateLoadBalancerPayload
:param x_request_id:
:type x_request_id: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand All @@ -470,8 +470,8 @@ def create_load_balancer_with_http_info(

_param = self._create_load_balancer_serialize(
project_id=project_id,
x_request_id=x_request_id,
create_load_balancer_payload=create_load_balancer_payload,
x_request_id=x_request_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand All @@ -497,8 +497,8 @@ def create_load_balancer_with_http_info(
def create_load_balancer_without_preload_content(
self,
project_id: StrictStr,
x_request_id: StrictStr,
create_load_balancer_payload: CreateLoadBalancerPayload,
x_request_id: Optional[StrictStr] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -515,10 +515,10 @@ def create_load_balancer_without_preload_content(

:param project_id: (required)
:type project_id: str
:param x_request_id: (required)
:type x_request_id: str
:param create_load_balancer_payload: (required)
:type create_load_balancer_payload: CreateLoadBalancerPayload
:param x_request_id:
:type x_request_id: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
Expand All @@ -543,8 +543,8 @@ def create_load_balancer_without_preload_content(

_param = self._create_load_balancer_serialize(
project_id=project_id,
x_request_id=x_request_id,
create_load_balancer_payload=create_load_balancer_payload,
x_request_id=x_request_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
Expand All @@ -565,8 +565,8 @@ def create_load_balancer_without_preload_content(
def _create_load_balancer_serialize(
self,
project_id,
x_request_id,
create_load_balancer_payload,
x_request_id,
_request_auth,
_content_type,
_headers,
Expand Down Expand Up @@ -1377,7 +1377,7 @@ def _disable_service_serialize(
def enable_service(
self,
project_id: StrictStr,
x_request_id: StrictStr,
x_request_id: Optional[StrictStr] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -1394,7 +1394,7 @@ def enable_service(

:param project_id: (required)
:type project_id: str
:param x_request_id: (required)
:param x_request_id:
:type x_request_id: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
Expand Down Expand Up @@ -1446,7 +1446,7 @@ def enable_service(
def enable_service_with_http_info(
self,
project_id: StrictStr,
x_request_id: StrictStr,
x_request_id: Optional[StrictStr] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -1463,7 +1463,7 @@ def enable_service_with_http_info(

:param project_id: (required)
:type project_id: str
:param x_request_id: (required)
:param x_request_id:
:type x_request_id: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
Expand Down Expand Up @@ -1515,7 +1515,7 @@ def enable_service_with_http_info(
def enable_service_without_preload_content(
self,
project_id: StrictStr,
x_request_id: StrictStr,
x_request_id: Optional[StrictStr] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
Expand All @@ -1532,7 +1532,7 @@ def enable_service_without_preload_content(

:param project_id: (required)
:type project_id: str
:param x_request_id: (required)
:param x_request_id:
:type x_request_id: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
Expand Down
Loading