-
Notifications
You must be signed in to change notification settings - Fork 6
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 provider examples and integration tests #62
Conversation
I changed the PR into |
@aharter can you use local login to keep Pulumi state when running tests? https://www.pulumi.com/docs/reference/cli/pulumi_login/#options |
3f8a208
to
3cc96ce
Compare
I'm forced to set |
@aharter should I configure this as a bogus Github Actions secret in this repo? |
@ringods I prefer to have the value hard wired. Since we also overwrite the "API endpoint" variable it is less confusing. |
@aharter I mentioned this yesterday to some engineering colleagues and they came up with this: |
This commit builds on top of the test setup of terraform-provider-unifi. Running the tests of the terraform provider, I experienced issues like the controller not being properly setup with a user. By using compose V2 to start the unifi controller and python and urllib for user setup, I hope to mitigate these issues.
Signed-off-by: Ringo De Smet <ringo@de-smet.name>
3cc96ce
to
c3f2f6d
Compare
FYI I found a simpler method that doesn't require the HTTP bootstrapping: paultyng/terraform-provider-unifi#320 |
@joshuaspence Thanks for letting us know. I will look into it. |
This adds a similar setup as the wrapped terraform provider.
Bootstraps a unifi controller during test setup and executes the examples.
Closes #39