Comments (5)
This also appears to mean that any parameter that already existed that didn't have an equals before (--parseonly, --verbose etc.) don't work anymore?
from beaker.
Hm, if we can't come up with a fix reasonably quickly we should probably back out the original PR.
from beaker.
By the looks of it, when it doesn't have a value ( no key=value ) the value should be 'nil' like here
@petems can you extend your test to see if '--verbose=' exits or not?
Looking at here it automatically moves an option to a flag instead of an option when the value is nil.
from beaker.
Ok, I've fixed the first part of it to use nil now: PR #313
However, when I tried to add a test to specifically check that --noop=true
was absent, the test failed, even though it looked just like the future parser test:
it 'can set the --noops flag' do
subject.should_receive( :create_remote_file ).and_return( true )
expect( subject ).to receive( :on ).with {|h, command, opts|
cmdline = command.cmd_line( h )
expect( h ).to be == agent
expect( cmdline ).to include('puppet apply')
expect( cmdline ).to include('--detailed-exitcodes')
expect( cmdline ).to include('--verbose')
expect( cmdline ).to include('--noop')
expect( cmdline ).to_not include('--noop=')
}
subject.apply_manifest_on(
agent,
'class { "boo": }',
:acceptable_exit_codes => (1..5),
:noop => true,
:expect_failures => true,
)
end
from beaker.
@electrical suggests it doesnt support the to_not include?
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
- SSH Timeouts on Centos 6 tests HOT 3
- 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.