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

ci(*): add cli test #39

Merged
merged 2 commits into from
Jul 8, 2020
Merged

ci(*): add cli test #39

merged 2 commits into from
Jul 8, 2020

Conversation

vdice
Copy link
Member

@vdice vdice commented Jul 6, 2020

  • Port the terraform cli test from the main Porter repo to this one.
  • Formally deprecate usage of Brigade CI and defer to the az devops pipeline for PR checks

Note: publishing of the terraform bundle used in the cli test has been removed in this PR. I deemed this bundle trivial enough (only really useful for testing basic functionality) that we don't need to publish it any longer. (Note that all of the non-trivial examples in the main Porter repo are continually validated/published.) Thoughts?

Ref getporter/porter#1079 and getporter/porter#1118

vdice added 2 commits July 6, 2020 13:25
Signed-off-by: Vaughn Dice <vadice@microsoft.com>
Signed-off-by: Vaughn Dice <vadice@microsoft.com>
Copy link
Member

@carolynvs carolynvs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's great to see this in the proper repo finally!

echo "Verifying instance output(s) via 'porter instance output show' after upgrade"
${PORTER_HOME}/porter instance output show file_contents | grep -q "bar!"

cat ${PORTER_HOME}/claims/terraform.json
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heads up that this is going to break as soon as claims is redone. Once it's merged, we should switch to porter installation show terraform

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@carolynvs oh good call. Will the other instance commands break then as well? (Like porter instance output show above). Or will there be a deprecation period for instance commands once installation is introduced?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll merge for now and we can tend to the cli tests once needed; or perhaps we'll be ready to convert to integration tests and api usage instead.

@vdice vdice merged commit d773ef4 into getporter:main Jul 8, 2020
@vdice vdice deleted the ci/add-cli-test branch July 8, 2020 21:27
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.

None yet

2 participants