forked from sous-chefs/hashicorp-vault
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from Roblox/update_license_installation
Enable enterprise Vault upgrades
- Loading branch information
Showing
10 changed files
with
173 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
describe file('/opt/vault/1.8.5/vault') do | ||
it { should be_file } | ||
it { should be_executable } | ||
end | ||
|
||
describe group('vault') do | ||
it { should exist } | ||
end | ||
|
||
describe user('vault') do | ||
it { should exist } | ||
end | ||
|
||
describe file('/etc/vault/vault.json') do | ||
its('mode') { should eq 0640 } | ||
it { should be_file } | ||
it { should be_owned_by 'vault' } | ||
it { should be_grouped_into 'vault' } | ||
its('content') { should match /.*log_level.*/ } | ||
its('content') { should match /.*license_path.*/} | ||
end | ||
|
||
describe file('/etc/vault/vault_license.hclic') do | ||
it {should exist} | ||
it {should be_file} | ||
it { should be_owned_by 'vault' } | ||
it { should be_grouped_into 'vault' } | ||
end | ||
|
||
describe service('vault') do | ||
it { should be_installed } | ||
it { should be_enabled } | ||
it { should be_running } | ||
end |
34 changes: 34 additions & 0 deletions
34
test/integration/test_license_external_ent/inspec/default_spec.rb
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
describe file('/opt/vault/1.8.5/vault') do | ||
it { should be_file } | ||
it { should be_executable } | ||
end | ||
|
||
describe group('vault') do | ||
it { should exist } | ||
end | ||
|
||
describe user('vault') do | ||
it { should exist } | ||
end | ||
|
||
describe file('/etc/vault/vault.json') do | ||
its('mode') { should eq 0640 } | ||
it { should be_file } | ||
it { should be_owned_by 'vault' } | ||
it { should be_grouped_into 'vault' } | ||
its('content') { should match /.*log_level.*/ } | ||
its('content') { should match /.*license_path.*/} | ||
end | ||
|
||
describe file('/etc/vault/vault_license.hclic') do | ||
it {should exist} | ||
it {should be_file} | ||
it { should be_owned_by 'vault' } | ||
it { should be_grouped_into 'vault' } | ||
end | ||
|
||
describe service('vault') do | ||
it { should be_installed } | ||
it { should be_enabled } | ||
it { should be_running } | ||
end |
34 changes: 34 additions & 0 deletions
34
test/integration/test_license_internal_ent/inspec/default_spec.rb
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
describe file('/opt/vault/1.8.5/vault') do | ||
it { should be_file } | ||
it { should be_executable } | ||
end | ||
|
||
describe group('vault') do | ||
it { should exist } | ||
end | ||
|
||
describe user('vault') do | ||
it { should exist } | ||
end | ||
|
||
describe file('/etc/vault/vault.json') do | ||
its('mode') { should eq 0640 } | ||
it { should be_file } | ||
it { should be_owned_by 'vault' } | ||
it { should be_grouped_into 'vault' } | ||
its('content') { should match /.*log_level.*/ } | ||
its('content') { should match /.*license_path.*/} | ||
end | ||
|
||
describe file('/etc/vault/vault_license.hclic') do | ||
it {should exist} | ||
it {should be_file} | ||
it { should be_owned_by 'vault' } | ||
it { should be_grouped_into 'vault' } | ||
end | ||
|
||
describe service('vault') do | ||
it { should be_installed } | ||
it { should be_enabled } | ||
it { should be_running } | ||
end |
2 changes: 1 addition & 1 deletion
2
test/integration/test_unauthenticated_metrics/inspec/default_spec.rb
This file contains 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