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 some aceptance tests for the pipeline resource #99

Merged
merged 1 commit into from
Feb 18, 2021

Conversation

yob
Copy link
Contributor

@yob yob commented Feb 16, 2021

This resource had no acceptance tests, and we were nervous about the risk of regressions.

This adds a few initial test cases:

  • creating a pipeline with only the required attributes set
  • creating a pipeline with all attributes set
  • updating a pipeline
  • importing an existing pipeline

Pipeline deletion is tested implicitly when the terraform testing sdk cleans up after a test.

We assume there's potential for more tests that exercise specific combinations (for example, exposing this teams related bug in pipeline creation #84), but this is a good start

@chloeruka chloeruka marked this pull request as ready for review February 17, 2021 02:32
@yob yob force-pushed the acceptance-test-pipelines branch 2 times, most recently from c42478f to 6d881a5 Compare February 18, 2021 01:46
@yob yob changed the title WIP aceptance tests for the pipeline resource Add some aceptance tests for the pipeline resource Feb 18, 2021
This resource had no acceptance tests, and we were nervous about the
risk of regressions.

This adds a few initial test cases:

* creating a pipeline with only the required attributes set
* creating a pipeline with all attributes set
* updating a pipeline
* importing an existing pipeline

Pipeline deletion is tested implicitly when the terraform testing sdk
cleans up after a test.

We assume there's potential for more tests that exercise specific
combinations (for example, exposing this teams related bug in pipeline
creation #84), but this is a good start.

Co-authored-by: Chloe <chloe@buildkite.com>
@yob
Copy link
Contributor Author

yob commented Feb 18, 2021

I've run the full acceptance test suite locally and confirmed it is green 👍

@chloeruka chloeruka merged commit 119f031 into main Feb 18, 2021
@chloeruka chloeruka deleted the acceptance-test-pipelines branch February 18, 2021 02:47
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.

2 participants