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

Update specs and fix FM-1361 #145

Merged
merged 1 commit into from
May 22, 2014
Merged

Conversation

hunner
Copy link

@hunner hunner commented May 21, 2014

  • Add install.rb for pre-suite
  • Add catches for failures/changes to manifest application
  • Correct root ssh key copying
  • Add sleeps for killing processes releasing ports
  • Fix FM-1361

@@ -22,7 +22,8 @@
}
EOS

apply_manifest_on(host, pp)
apply_manifest_on(host, pp, :catch_failures => true)

Choose a reason for hiding this comment

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

This is a negative test. The manifest should fail to create the repo when a revision is specified in conjunction with the bare command. Please change to

apply_manifest_on(host, pp, :expect_failures => true)

Copy link
Author

Choose a reason for hiding this comment

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

Well it doesn't fail then either.
The first run gives: Notice: /Stage[main]/Main/Vcsrepo[/tmp/vcsrepo.a4VbnV/testrepo_bare.git]/ensure: created
The second run gives: Error: /Stage[main]/Main/Vcsrepo[/tmp/vcsrepo.a4VbnV/testrepo_bare.git]: Could not evaluate: Execution of '/usr/bin/git config remote.origin.url' returned 1:

So is the provider supposed to fail to create a repo, or supposed to ignore the revision on bare repos?

Choose a reason for hiding this comment

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

The expectation is that the provider should fail to create a repo because these parameters are incompatible.
Add the expect_failures. I will open a ticket that we should not be failing silently.

Choose a reason for hiding this comment

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

See FM-1361

- Add install.rb for pre-suite
- Add catches for failures/changes to manifest application
- Correct root ssh key copying
- Add sleeps for killing processes releasing ports
- Fix FM-1361
@hunner hunner changed the title Update specs Update specs and fix FM-1361 May 22, 2014
johnduarte pushed a commit that referenced this pull request May 22, 2014
Update specs and fix FM-1361
@johnduarte johnduarte merged commit 2f87583 into puppetlabs:master May 22, 2014
@hunner hunner deleted the fix_beaker_tests branch May 29, 2014 00:27
cegeka-jenkins pushed a commit to cegeka/puppet-vcsrepo that referenced this pull request Jan 3, 2018
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.

3 participants