File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8484 end
8585 end
8686
87- context 'and repo_priority set to 1010 ' do
87+ context 'and repo_priority set to 10 ' do
8888 let :params do
89- default_params . merge! ( repo_priority : '1010 ' )
89+ default_params . merge! ( repo_priority : '10 ' )
9090 end
9191
92- it 'the repo apt::pin resource should contain priority = 1010 ' do
93- is_expected . to contain_apt__pin ( 'nodesource' ) . with ( 'priority' => '1010 ' )
92+ it 'the repo apt::source resource should contain pin = 10 ' do
93+ is_expected . to contain_apt__pin ( 'nodesource' ) . with ( 'priority' => '10 ' )
9494 end
9595 end
9696
9999 default_params . merge! ( repo_priority : :undef )
100100 end
101101
102- it 'the repo apt::source resource should contain priority = undef ' do
103- is_expected . to contain_apt__source ( 'nodesource' ) . with ( 'priority' => nil )
102+ it 'the repo apt::source resource should contain priority = 990 ' do
103+ is_expected . to contain_apt__pin ( 'nodesource' ) . with ( 'priority' => 990 )
104104 end
105105 end
106106
109109 default_params . merge! ( repo_version : '9' )
110110 end
111111
112- it 'the repo apt::source resource should contain location = https://deb.nodesource.com/node_9.x' do
112+ it 'the repo apt::source resource should contain location = [ https://deb.nodesource.com/node_9.x] ' do
113113 is_expected . to contain_apt__source ( 'nodesource' ) . with ( 'location' => [ 'https://deb.nodesource.com/node_9.x' ] )
114114 end
115115 end
You can’t perform that action at this time.
0 commit comments