-
How to separate nodes, platforms and drivers when writing a test plan? See https://groups.google.com/a/puppet.com/d/msg/dept-quality-engineering-archive/r7q179wG-s0/q51jJmeqEwAJ for background
-
declarativesystems/puppet_vagrant is a good starting point for vagrant support
- how to extract connection info from resource?
-
See this example and this function to check out how more nodes can be added to the inventory dynamically.
-
The core
get_targets
call traces through to inventory.rb#L85 and creates [bolt's target.rb](https://github.com/puppet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe 'something' do | |
let(:route) { instance_double('Net::IP::Route', 'route') } | |
before(:each) do | |
allow(Net::IP::Route).to receive(:new).with({ test: 'data' }).and_return(route) | |
end | |
it 'doesn't suck' do | |
expect(Net::IP).to receive(:routes).with(route) | |
provider.create(context, name, {input: 'foo'}) | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
david@davids:~/tmp$ pdk new module --template-url https://github.com/DavidS/modulesync_config/ --template-ref test --skip-interview foo-foo | |
pdk (INFO): Creating new module: foo-foo | |
[✔] Installing missing Gemfile dependencies. | |
pdk (INFO): Module 'foo' generated at path '/home/david/tmp/foo', from template 'https://github.com/DavidS/modulesync_config/'. | |
pdk (INFO): In your module directory, add classes with the 'pdk new class' command. | |
david@davids:~/tmp$ find foo/ | |
foo/ | |
foo/metadata.json | |
foo/templates | |
foo/manifests |
OlderNewer