Skip to content

Commit

Permalink
Add plugins installation test
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-clerc committed Jan 31, 2024
1 parent 4a1dbf7 commit 72df887
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/fixtures/cookbooks/nexus3_test/attributes/default.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
default['nexus3']['api']['username'] = 'admin'
default['nexus3']['api']['password'] = 'admin123'
default['nexus3']['api']['endpoint'] = 'http://localhost:8081/service/rest/v1/'

default['nexus3']['plugins']['repository_cargo']['name'] = 'nexus-repository-cargo'
default['nexus3']['plugins']['repository_cargo']['action'] = 'create'
default['nexus3']['plugins']['repository_cargo']['source'] = 'https://github.com/jeremy-clerc/nexus-repository-cargo/releases/download/' \
'v0.0.8/nexus-repository-cargo-0.0.8-bundle.kar'
default['nexus3']['plugins']['repository_cargo']['checksum'] = '8e88aafc8b44eaf9d3ddb4350b943e37379119dab631deb52f3cf027a134b81d'
5 changes: 5 additions & 0 deletions test/integration/default/inspec/default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@
its('content') { should match(%r{nexus-context-path=/}) }
end

describe file('/opt/nexus3/deploy/nexus-repository-cargo-bundle.kar') do
it { should be_file }
it { should be_owned_by 'nexus' }
end

describe user('nexusbar') do
it { should exist }
its('uid') { should eq 1234 }
Expand Down

0 comments on commit 72df887

Please sign in to comment.