Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initial mock tests examples and pipelines #1983

Merged
merged 3 commits into from
May 24, 2024
Merged

Add initial mock tests examples and pipelines #1983

merged 3 commits into from
May 24, 2024

Conversation

arnaudlh
Copy link
Member

1949

Closing 1949.

Summary

This pull request includes several changes to improve the testing workflows and documentation of the project. The most significant changes include the addition of new GitHub workflow files for dispatching pull requests and running tests, modifications to the instructions for running workflows locally, and the introduction of Terraform test commands.

Outline

GitHub workflows:

  • .github/workflows/pr_dispatch.yaml: Added a new GitHub workflow for dispatching pull requests. This workflow triggers on pull request events and runs a job that dispatches a repository event with a client payload containing the scenario to run.
  • .github/workflows/pr_workflow.yaml: Added a new GitHub workflow for running PR tests. This workflow triggers on repository dispatch and workflow dispatch events, and runs jobs to load test scenarios, run mock plan scenarios, perform Terraform integration tests, and purge the integration environment if the previous jobs fail or are cancelled.

Terraform test commands and mock data:

Local configuration:

  • locals.tf: Modified the client_config local to use the tomap function instead of the map function.

Documentation:

  • .github/workflows/developer.md: Improved the instructions for installing Act and running GitHub workflows locally, including the addition of a link to the Act GitHub repository and the use of the gh auth token command to authenticate with GitHub.

@arnaudlh arnaudlh added enhancement New feature or request tooling labels May 24, 2024
@arnaudlh arnaudlh added this to the 5.7.12 milestone May 24, 2024
@arnaudlh arnaudlh requested a review from LaurentLesle May 24, 2024 03:32
@arnaudlh arnaudlh self-assigned this May 24, 2024
@arnaudlh arnaudlh linked an issue May 24, 2024 that may be closed by this pull request
1 task
@arnaudlh arnaudlh merged commit e051ada into main May 24, 2024
7 checks passed
@arnaudlh arnaudlh deleted the AL-mocktests branch May 24, 2024 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request tooling
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Feature request- Add Terraform tests examples with mock provider and pipelines
2 participants