Skip to content

Comments

test: add integration setup step#986

Open
Kirdock wants to merge 1 commit intomainfrom
test/e2e-setup
Open

test: add integration setup step#986
Kirdock wants to merge 1 commit intomainfrom
test/e2e-setup

Conversation

@Kirdock
Copy link
Collaborator

@Kirdock Kirdock commented Feb 17, 2026

This adds a setup step to the pipeline before the integration tests are executed, ensuring that long-running resources are created before the tests run.

Why this PR?

Some E2E tests (e.g., examples) refer to existing objects (e.g., management zones, request attributes, process groups, etc.). As this can easily break if someone just deletes something in the environment, we need to remove hardcoded IDs and create the needed dependencies on demand.
Because some resources take a long time to create, it's not feasible to create them in each example/test.
Therefore ,we need a setup that creates them once, before the actual tests run.

What has changed?

Required resources are created before the integration tests start.

How does it do it?

By using our the latest published provider to create the needed resources on demand.
If they don't exist, they will be created and if they exist, the step will be ignored.
The current implementation doesn't need a state file. It's either "import" or "create".

How is it tested?

Manual tests and verified the pipeline

How does it affect users?

N/A

Issue: CA-18113

@Kirdock Kirdock marked this pull request as ready for review February 17, 2026 15:27
This adds a setup step to the pipeline before the integration tests are executed, ensuring that long-running resources are created before the tests run.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant