@@ -68,7 +68,7 @@ $clientFactory->getEventsClient('xxx-xxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
6868 ` ` `
6969
7070- Set the following environment variables in ` set-env.sh` file (use ` set-env.template.sh` as sample):
71- - ` STORAGE_API_URL ` - Keboola Connection URL to arbitrary stack where the notification service is registered .
71+ - ` HOSTNAME_SUFFIX ` - Suffix for the hostname, e.g. ` eu-west-1.aws.keboola.dev ` .
7272 - ` TEST_STORAGE_API_TOKEN` - Token to a test project.
7373 - ` TEST_STORAGE_API_PROJECT_ID` - Project ID of the test project.
7474 - ` TEST_MANAGE_API_APPLICATION_TOKEN` - Application token with scope ` notifications:push-event` .
@@ -82,7 +82,6 @@ $clientFactory->getEventsClient('xxx-xxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
8282 - ` TEST_AWS_ACCESS_KEY` - The created security credentials for the ` JobQueueApiPhpClient` user.
8383 - ` TEST_AWS_SECRET_ACCESS_KEY` - The created security credentials for the ` JobQueueApiPhpClient` user.
8484 - ` AWS_REGION` - ` Region` output of the above stack.
85- - ` AWS_LOGS_S3_BUCKET` - ` S3LogsBucket` output of the above stackk.
8685
8786# ## Azure Setup
8887
@@ -123,18 +122,13 @@ $clientFactory->getEventsClient('xxx-xxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
123122 az storage account show-connection-string -g testing-notification-api-php-client -n mirontfcnacc2 --query " connectionString" --output tsv
124123 ` ` `
125124
126- Set the connection string and container name you provided as parameter to the create command to following environment variables in the ` set-env.sh` file:
127- - AZURE_LOGS_ABS_CONTAINER
128- - AZURE_LOGS_ABS_CONNECTION_STRING
129-
130125# # Generate environment configuration
131126
132127` ` ` bash
133128export DATABASE_URL_BASE64=$( printf " mysql://root:root@dev-mysql-service:3310/notifications?serverVersion=8.0" | base64 --wrap=0)
134129export DATABASE_PASSWORD_BASE64=$( printf " root" | base64 --wrap=0)
135130export TEST_AZURE_CLIENT_SECRET_BASE64=$( printf " %s" " $TEST_AZURE_CLIENT_SECRET " | base64 --wrap=0)
136131export TEST_AWS_SECRET_ACCESS_KEY_BASE64=$( printf " %s" " $TEST_AWS_SECRET_ACCESS_KEY " | base64 --wrap=0)
137- export AZURE_LOGS_ABS_CONNECTION_STRING_BASE64=$( printf " %s" " $AZURE_LOGS_ABS_CONNECTION_STRING " | base64 --wrap=0)
138132
139133./set-env.sh
140134envsubst < provisioning/environments.yaml.template > provisioning/environments.yaml
@@ -152,15 +146,15 @@ Store the result `TEST_NOTIFICATION_API_URL` in `set-env.sh`.
152146- With the above setup, you can run tests:
153147
154148 ` ` ` bash
155- docker- compose build
156- source ./set-env.sh && docker- compose run tests
149+ docker compose build
150+ source ./set-env.sh && docker compose run tests
157151 ` ` `
158152
159153- To run tests with local code use:
160154
161155 ` ` ` bash
162- docker- compose run tests-local composer install
163- source ./set-env.sh && docker- compose run tests-local
156+ docker compose run tests-local composer install
157+ source ./set-env.sh && docker compose run tests-local
164158 ` ` `
165159
166160# # License
0 commit comments