@@ -66,9 +66,7 @@ def log_output_errors(result)
6666 # puppet_8_collection = 'puppet8-nightly'
6767 # else
6868 puppet_7_collection = 'puppet7'
69- # We currently only have nightly builds of puppet8 available. Update
70- # this to the normal collection once we have a release.
71- puppet_8_collection = 'puppet8-nightly'
69+ puppet_8_collection = 'puppet8'
7270 # end
7371
7472 # We can only test puppet 7 -> 7 upgrades if multiple Puppet releases
@@ -203,29 +201,13 @@ def log_output_errors(result)
203201
204202 # Verify that it upgraded
205203 installed_version = nil
206- # With prerelease puppet8, the puppet_agent::version task returns the wrong
207- # output. To temporarily work around this, we'll run puppet --version.
208- # Revert this change once Puppet 8.0.0 has been released.
209- # results = run_task('puppet_agent::version', 'target', {})
210- results = if %r{win} . match? ( target_platform )
211- run_command ( 'c:/"program files"/"puppet labs"/puppet/bin/puppet --version' , 'target' )
212- else
213- run_command ( '/opt/puppetlabs/bin/puppet --version' , 'target' )
214- end
204+ results = run_task ( 'puppet_agent::version' , 'target' , { } )
215205 results . each do |res |
216206 expect ( res ) . to include ( 'status' => 'success' )
217- installed_version = res [ 'value' ] [ 'stdout ' ]
207+ installed_version = res [ 'value' ] [ 'version ' ]
218208 expect ( installed_version ) . not_to match ( %r{^7\. \d +\. \d +} )
219209 expect ( installed_version ) . to match ( %r{^8\. \d +\. \d +} )
220- # We don't get the expected output with prerelease puppet8
221- # expect(res['value']['source']).to be
222- end
223-
224- # More prerelease puppet8 workarounds, this block can also be deleted
225- # once Puppet 8.0.0 has been released.
226- results = run_task ( 'puppet_agent::version' , 'target' , { } )
227- results . each do |res |
228- installed_version = res [ 'value' ] [ 'version' ]
210+ expect ( res [ 'value' ] [ 'source' ] ) . to be
229211 end
230212
231213 # Try installing the same version again
0 commit comments