diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f94e44139..76ee2a3bc 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/Makefile b/Makefile index 782ada543..34c00d989 100644 --- a/Makefile +++ b/Makefile @@ -12,13 +12,13 @@ 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 @@ -26,6 +26,14 @@ lint: # 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 diff --git a/services/objectstorage/src/stackit/objectstorage/configuration.py b/services/objectstorage/src/stackit/objectstorage/configuration.py index 7eecafd92..ea5c61b5c 100644 --- a/services/objectstorage/src/stackit/objectstorage/configuration.py +++ b/services/objectstorage/src/stackit/objectstorage/configuration.py @@ -32,7 +32,7 @@ def __init__( ) """Constructor """ - self._base_path = "https://object-storage.api.eu01.stackit.cloud" + self._base_path = "https://object-storage.api.stackit.cloud" """Default Base url """ self.server_index = 0 if server_index is None else server_index @@ -56,13 +56,12 @@ def get_host_settings(self): """ return [ { - "url": "https://object-storage.api.{region}stackit.cloud", + "url": "https://object-storage.api.stackit.cloud", "description": "No description provided", "variables": { "region": { "description": "No description provided", - "default_value": "eu01.", - "enum_values": ["eu01.", "eu02."], + "default_value": "global", } }, }