Skip to content

Commit

Permalink
Update spec tests
Browse files Browse the repository at this point in the history
Signed-off-by: Lance Albertson <lance@osuosl.org>
  • Loading branch information
ramereth committed Aug 3, 2024
1 parent 737fd5b commit b144dfa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec/docker_test/installation_package_spec.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
require 'spec_helper'

describe 'docker_test::installation_package' do
platform 'ubuntu', '18.04'
platform 'ubuntu'
step_into :docker_installation_package
cached(:subject) { chef_run }

context 'Ubuntu: testing default action, default properties' do
it 'installs docker' do
expect(chef_run).to create_docker_installation_package('default').with(version: '20.10.11')
expect(chef_run).to create_docker_installation_package('default')
end

it do
Expand All @@ -23,7 +23,7 @@
context 'Ubuntu (aarch64): testing default action, default properties' do
automatic_attributes['kernel']['machine'] = 'aarch64'
it 'installs docker' do
expect(chef_run).to create_docker_installation_package('default').with(version: '20.10.11')
expect(chef_run).to create_docker_installation_package('default')
end

it do
Expand All @@ -39,7 +39,7 @@
context 'Ubuntu (ppc64le): testing default action, default properties' do
automatic_attributes['kernel']['machine'] = 'ppc64le'
it 'installs docker' do
expect(chef_run).to create_docker_installation_package('default').with(version: '20.10.11')
expect(chef_run).to create_docker_installation_package('default')
end

it do
Expand All @@ -53,10 +53,10 @@
end

context 'CentOS: testing default action, default properties' do
platform 'centos', '8'
platform 'centos'
cached(:subject) { chef_run }
it 'installs docker' do
expect(chef_run).to create_docker_installation_package('default').with(version: '3:20.10.11')
expect(chef_run).to create_docker_installation_package('default')
end
it do
expect(chef_run).to create_yum_repository('Docker').with(
Expand All @@ -75,7 +75,7 @@
automatic_attributes['kernel']['machine'] = 's390x'

it 'installs docker' do
expect(chef_run).to create_docker_installation_package('default').with(version: '3:20.10.11')
expect(chef_run).to create_docker_installation_package('default')
end
it do
expect(chef_run).to create_yum_repository('Docker').with(
Expand Down

0 comments on commit b144dfa

Please sign in to comment.