Skip to content

Commit f0168cf

Browse files
authored
Ft/rework acceptance tests (#675)
* Rework IaaS acceptance tests Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> * Rework mongodb acceptance tests Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> * Rework observability acceptance tests Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> * Rework secretsmanager acceptance tests Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> * Rework loadbalancer acceptance tests Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> * Rework ske acceptance tests Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> * Update documentation Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de> --------- Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
1 parent ada9e09 commit f0168cf

9 files changed

Lines changed: 323 additions & 444 deletions

File tree

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ Terraform acceptance tests are run using the command `make test-acceptance-tf`.
179179
- The env var `TF_ACC_PROJECT_ID` must be set with the ID of the STACKIT test project to test it.
180180
- Authentication is set as usual.
181181
- Optionally, the env var `TF_ACC_XXXXXX_CUSTOM_ENDPOINT` (where `XXXXXX` is the uppercase name of the service) can be set to use endpoints other than the default value.
182+
- There are some acceptance test where it is needed to provide additional parameters, some of them have default values in order to run normally without manual interaction. Those default values can be overwritten (see testutils.go for a full list.)
182183

183184
Additionally:
184185

@@ -187,12 +188,6 @@ Additionally:
187188
- The env var `TF_ACC_TEST_PROJECT_SERVICE_ACCOUNT_EMAIL` must be set as the email of the service account
188189
- The env var `TF_ACC_TEST_PROJECT_SERVICE_ACCOUNT_TOKEN` must be set as a valid token of the service account. Can also be set in the credentials file used by authentication (see [Authentication](#authentication) for more details)
189190
- The env var `TF_ACC_PROJECT_ID` is ignored
190-
- For the Load Balancer service:
191-
- OpenStack credentials are required, as the acceptance tests use the OpenStack provider to set up the supporting infrastructure
192-
- These can be obtained after creating a user token through the [STACKIT Portal](https://portal.stackit.cloud/), in your project's Infrastructure API page
193-
- The env var `TF_ACC_OS_USER_DOMAIN_NAME` must be set as the OpenStack user domain name
194-
- The env var `TF_ACC_OS_USER_NAME` must be set as the OpenStack username
195-
- The env var `TF_ACC_OS_PASSWORD` must be set as the OpenStack password
196191

197192
**WARNING:** Acceptance tests will create real resources, which may incur in costs.
198193

stackit/internal/services/argus/argus_acc_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import (
2020
var instanceResource = map[string]string{
2121
"project_id": testutil.ProjectId,
2222
"name": testutil.ResourceNameWithDateTime("argus"),
23-
"plan_name": "Monitoring-Basic-EU01",
24-
"new_plan_name": "Monitoring-Medium-EU01",
23+
"plan_name": "Observability-Monitoring-Basic-EU01",
24+
"new_plan_name": "Observability-Monitoring-Medium-EU01",
2525
"acl-0": "1.2.3.4/32",
2626
"acl-1": "111.222.111.222/32",
2727
"acl-1-updated": "111.222.111.125/32",

0 commit comments

Comments
 (0)