Skip to content

Commit

Permalink
Merge pull request #14 from aerostitch/fix_rspec_errors
Browse files Browse the repository at this point in the history
Preparing release 1.1.1
  • Loading branch information
aerostitch authored Jul 19, 2016
2 parents 2f46810 + 5aff1ac commit 642b81a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ env:
- PUPPET_VERSION="~> 4.1.0" STRICT_VARIABLES=yes
- PUPPET_VERSION="~> 4.2.0" STRICT_VARIABLES=yes
- PUPPET_VERSION="~> 4.3.0" STRICT_VARIABLES=yes
- PUPPET_VERSION="~> 4.4.0" STRICT_VARIABLES=yes
- PUPPET_VERSION="~> 4.5.0" STRICT_VARIABLES=yes
rvm:
- 1.9.3
- 2.0
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2016-07-19 Release 1.1.1:
- Addded notify to refresh service after creating/modifying XDR credential file
- Added tests for puppet 4.4 and 4.5
- Fixed a puppet-lint warning
2016-07-18 Release 1.1.0:
- adding support for credential files on XDR
2016-03-02 Release 1.0.1:
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "TubeMogul-aerospike",
"version": "1.1.0",
"version": "1.1.1",
"author": "TubeMogul Inc.",
"summary": "Aerospike servers management via Puppet",
"license": "Apache-2.0",
Expand Down
8 changes: 4 additions & 4 deletions spec/classes/aerospike_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

# Tests related to the aerospike base class content
it { should create_class('aerospike') }
it { should contain_class('aerospike::install').that_comes_before('aerospike::config') }
it { should contain_class('aerospike::install').that_comes_before('Class[aerospike::config]') }
it { should contain_class('aerospike::config') }
it { should contain_class('aerospike::service').that_subscribes_to('aerospike::config') }
it { should contain_class('aerospike::service').that_subscribes_to('Class[aerospike::config]') }

# Tests related to the aerospike::install class
it { should contain_class('archive') }
Expand Down Expand Up @@ -180,9 +180,9 @@

# Tests related to the aerospike base class content
it { should create_class('aerospike') }
it { should contain_class('aerospike::install').that_comes_before('aerospike::config') }
it { should contain_class('aerospike::install').that_comes_before('Class[aerospike::config]') }
it { should contain_class('aerospike::config') }
it { should contain_class('aerospike::service').that_subscribes_to('aerospike::config') }
it { should contain_class('aerospike::service').that_subscribes_to('Class[aerospike::config]') }

# Tests related to the aerospike::install class
it do
Expand Down
12 changes: 6 additions & 6 deletions spec/defines/xdr_credentials_file_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
}

it do
should contain_file('/etc/aerospike/security-credentials_DC1.txt').with({
'ensure' => 'present',
'mode' => '0600',
'owner' => 'root',
'group' => 'root',
})\
should contain_file('/etc/aerospike/security-credentials_DC1.txt')\
.with_ensure('present')\
.with_mode('0600')\
.with_owner('root')\
.with_group('root')\
.with_notify('Service[aerospike]')\
.with_content(/^credentials$/)\
.with_content(/username xdr_user_DC1$/)\
.with_content(/password xdr_password_DC1$/)
Expand Down

0 comments on commit 642b81a

Please sign in to comment.