Skip to content

Add support for integration testing of cloud features #15891

@jsoriano

Description

@jsoriano

We need to add support for better integration testing of cloud features, mainly to avoid regressions while further changes are introduced.

Some cloud features already have integration testing, but tests are skipped if no configuration is provided, so they are useful for local development, but they don't run in CI. Also there is no way to reproduce scenarios where these tests should pass.

As an initial step, add integration testing functionality to some AWS feature.

  • Formalize some general way of defining, deploying and destroying testing scenarios (probably using terraform).
  • Add build tags on the test files for each one of the cloud features, and make existing tests fail if the tag is provided but without credentials, so we can detect misconfigurations in CI environments.
  • Add job to the Jenkinsfile, that obtains valid credentials, starts an scenario in a cloud provider, runs the tests related to this provider and destroys the scenario.

Additional considerations.

  • We should be able to deploy the same scenario several times in the same account without conflicts.
  • We should be able to detect and clean leftovers.

Related issues:

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions