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

(GH-808) Implement pdk release prep and publish subcommands #813

Merged
merged 2 commits into from
Dec 9, 2019

Conversation

glennsarti
Copy link
Contributor

@glennsarti glennsarti commented Dec 5, 2019

Previously the pdk release command was added. This commit adds the prep and
publish subcommands as per PDK RFC 003.

This commit also adds tests for new subcommands.

The pdk release build sub command needs more work, specifically around the tagging component.

Closes #808

@glennsarti glennsarti requested a review from a team as a code owner December 5, 2019 06:15
@coveralls
Copy link

coveralls commented Dec 5, 2019

Coverage Status

Coverage increased (+0.2%) to 91.402% when pulling 2959840 on glennsarti:enhance-pdk-release into 19f5eea on puppetlabs:master.

Previously the pdk release command was added.  This commit adds the prep and
publish subcommands as per PDK RFC 003.

This commit also adds tests for new subcommands.
@glennsarti glennsarti changed the title {WIP} (GH-808) Add pdk release subcommands (GH-808) Implement pdk release prep and publish subcommands Dec 6, 2019
end

it 'does not start an interview when --force is used' do
expect(PDK::CLI::Util::Interview).to receive(:new).never
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
expect(PDK::CLI::Util::Interview).to receive(:new).never
expect(PDK::CLI::Util::Interview).not_to receive(:new)

nit: use a negative expectation rather than a negative matcher for consistency (here and in the other specs in this PR)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoops. Good catch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added an extra commit as I found a bunch of other tests that should be changed as well.

Previously there were many cases of using a negative matcher instead of using
a negative expectation.  This commit changes use of `.never` to `.not_to` to
be consistent with the rest of the test suite.
@glennsarti glennsarti merged commit bd5e6ce into puppetlabs:master Dec 9, 2019
@rodjek rodjek added the feature label Dec 13, 2019
@glennsarti glennsarti deleted the enhance-pdk-release branch March 5, 2020 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement pdk release command as per RFC (part 1)
3 participants