Comments (3)
did some checking together with 'ashp' on IRC.
Puppet 2.7 and 3.1 are returning exit code 2. Puppet 3.2 and up returning exit code 6.
Any idea's on resolving this?
from beaker.
Solved it for now by limiting tests based on the puppetversion fact.
Im guessing that's the only way for now?
from beaker.
From the apply_manifest code:
if opts[:catch_changes]
args << '--detailed-exitcodes'
# We're after idempotency so allow exit code 0 only.
on_options[:acceptable_exit_codes] |= [0]
elsif opts[:catch_failures]
args << '--detailed-exitcodes'
# We're after only complete success so allow exit codes 0 and 2 only.
on_options[:acceptable_exit_codes] |= [0, 2]
elsif opts[:expect_failures]
args << '--detailed-exitcodes'
# We're after failures specifically so allow exit codes 1, 4, and 6 only.
on_options[:acceptable_exit_codes] |= [1, 4, 6]
elsif opts[:expect_changes]
args << '--detailed-exitcodes'
# We're after changes specifically so allow exit code 2 only.
on_options[:acceptable_exit_codes] |= [2]
else
# Either use the provided acceptable_exit_codes or default to [0]
on_options[:acceptable_exit_codes] |= [0]
end
From our code, a return value on failure is 1,4,6 while a return value of 2 indicates a change was made to the machine configuration.
from beaker.
Related Issues (20)
- The beaker reboot needs to cross minute boundaries based on the method used HOT 6
- retry_on says that it can take an Array of hosts, but it will fail if one is passed
- beaker is failing to run acceptance tests on existing node HOT 2
- Rsync may not be able to use a provided password for the SSH connection HOT 2
- (BKR-1690) Rm -rf not working when path has spaces and logging on localhost
- (BKR-1675) Update net-scp to version 3.0.0 HOT 1
- Add support for opensuse? HOT 3
- The get_ip method should match on any vagrant-backed hypervisor
- ssh_config file not used by default HOT 3
- EL 9 error - /sbin/service: No such file or directory
- Failed to exec 'vagrant up' (rbenv, ruby 2.7.6, bundler 2.3.19, virtualbox) HOT 11
- Ruby 3.1/Psych 4 compatibility issues HOT 3
- 4.39.0 breaks beaker-puppet tests HOT 1
- Consider setting defaults to systemctl/systemd commands
- beaker master scp issue HOT 1
- Support installing modules from git branches HOT 4
- puppet_module_install excludes too much HOT 4
- having error finding my class using beaker HOT 1
- how can i test hiera roles using beaker? HOT 2
- Better Openstack IP address assignment HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beaker.