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

create integration test framework for coderd provider #1

Closed
johnstcn opened this issue Jun 7, 2024 · 1 comment
Closed

create integration test framework for coderd provider #1

johnstcn opened this issue Jun 7, 2024 · 1 comment
Assignees
Milestone

Comments

@johnstcn
Copy link
Member

johnstcn commented Jun 7, 2024

Create an integration test framework for the provider.

It should do the following:

Given:

  • A specific version of Coder (overridable by environment variable)
  • An input main.tf
  • An expected state of the Coder instance resulting after terraform apply

Then:

  • Stand up a Coder instance of that given version using Docker (using in-memory database is fine)
  • Set up required overrides to use the local version of the provider,
  • Read the input main.tf and execute terraform plan against the Coder instance,
  • Validate the expected state against the actual state

Note: "state" here is intentionally left open; it could be derived from the codersdk.Client or actually inspect the tfstate.

It will likely look similar to https://github.com/coder/terraform-provider-coder/blob/main/integration/

@johnstcn johnstcn added this to the MVP milestone Jun 7, 2024
@johnstcn johnstcn self-assigned this Jun 7, 2024
@johnstcn
Copy link
Member Author

johnstcn commented Jun 7, 2024

@johnstcn johnstcn closed this as completed Jun 7, 2024
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

No branches or pull requests

1 participant