Smoke test OS X packages of puppet-agent 1.2.0
Verify that packages are signed
Steps
1. Download dmg file 2. Mount dmg 3. Double click *.pkg file
Accepance criteria
Install prompt appears and *DOES NOT* contain a warning about "...from an unidentified developer".
Verify functionality on OS X 10.9 and 10.10
Install procedure
1. Download dmg 2. Mount dmg 3. Install *.pkg 4. Unmount dmg
Command line example
curl -O http://builds.puppetlabs.lan/puppet-agent/1.2.0/artifacts/apple/PC1/puppet-agent-1.2.0-osx-10.10-x86_64.dmg
|
hdiutil attach puppet-agent-1.2.0-osx-10.10-x86_64.dmg
|
installer -pkg /Volumes/puppet-agent-1.2.0/puppet-agent-1.2.0-installer.pkg -target /
|
hdiutil detach /Volumes/puppet-agent-1.2.0
|
Verify that there are no dependencies on homebrew
Steps
1. Verify that homebrew is not installed on system 2. Run each of the following commands
/opt/puppetlabs/bin/facter --version
|
/opt/puppetlabs/bin/hiera --version
|
/opt/puppetlabs/bin/mco --version
|
/opt/puppetlabs/bin/puppet --version
|
Acceptance Criteria
1. The `brew` command should not be present on the system. 2. All commands should return version without error
Verify that a user can be created and is idempotent
Steps
1. Create user manifest
user { 'foobar':
|
ensure => 'present',
|
comment => 'Test User',
|
groups => ['wheel'],
|
home => '/home/foobar',
|
shell => '/bin/sh',
|
}
|
2. Apply manifest to create user 3. Use puppet resource to inspect user 3. Apply manifest again
Acceptance Criteria
1. User should be created without error in step 1. 2. User resource should be complete in step 2. 3. No changes should be triggered by step 3.
Verify facts using facter
Steps
1. Run following command
/opt/puppetlabs/facter os
|
Acceptance criteria
Data structure for os should be returned.
Example
{
|
architecture => "x86_64",
|
family => "Darwin",
|
hardware => "x86_64",
|
macosx => {
|
build => "14C1514",
|
product => "Mac OS X",
|
version => {
|
full => "10.10.2",
|
major => "10.10",
|
minor => "2"
|
}
|
},
|
name => "Darwin",
|
release => {
|
full => "14.1.0"
|
}
|
}
|
|