|
281 | 281 | it "should use legacy-resolver argument" do
|
282 | 282 | p = StringIO.new(
|
283 | 283 | <<-EOS
|
284 |
| - Collecting real-package==versionplease |
285 |
| - Could not find a version that satisfies the requirement real-package==versionplease (from versions: 1.1.3, 1.0, 1.9b1) |
286 |
| - No matching distribution found for real-package==versionplease |
| 284 | + Collecting real-package==9!0dev0+x |
| 285 | + Could not find a version that satisfies the requirement real-package==9!0dev0+x (from versions: 1.1.3, 1.0, 1.9b1) |
| 286 | + No matching distribution found for real-package==9!0dev0+x |
287 | 287 | EOS
|
288 | 288 | )
|
289 |
| - expect(Puppet::Util::Execution).to receive(:execpipe).with(["/fake/bin/pip", "install", "real_package==versionplease", |
| 289 | + expect(Puppet::Util::Execution).to receive(:execpipe).with(["/fake/bin/pip", "install", "real_package==9!0dev0+x", |
290 | 290 | "--use-deprecated=legacy-resolver"]).and_yield(p).once
|
291 | 291 | @resource[:name] = "real_package"
|
292 | 292 | @provider.latest
|
|
300 | 300 | it "should not use legacy-resolver argument" do
|
301 | 301 | p = StringIO.new(
|
302 | 302 | <<-EOS
|
303 |
| - Collecting real-package==versionplease |
304 |
| - Could not find a version that satisfies the requirement real-package==versionplease (from versions: 1.1.3, 1.0, 1.9b1) |
305 |
| - No matching distribution found for real-package==versionplease |
| 303 | + Collecting real-package==9!0dev0+x |
| 304 | + Could not find a version that satisfies the requirement real-package==9!0dev0+x (from versions: 1.1.3, 1.0, 1.9b1) |
| 305 | + No matching distribution found for real-package==9!0dev0+x |
306 | 306 | EOS
|
307 | 307 | )
|
308 |
| - expect(Puppet::Util::Execution).to receive(:execpipe).with(["/fake/bin/pip", "install", "real_package==versionplease"]).and_yield(p).once |
| 308 | + expect(Puppet::Util::Execution).to receive(:execpipe).with(["/fake/bin/pip", "install", "real_package==9!0dev0+x"]).and_yield(p).once |
309 | 309 | @resource[:name] = "real_package"
|
310 | 310 | @provider.latest
|
311 | 311 | end
|
|
314 | 314 | it "should find a version number for real_package" do
|
315 | 315 | p = StringIO.new(
|
316 | 316 | <<-EOS
|
317 |
| - Collecting real-package==versionplease |
318 |
| - Could not find a version that satisfies the requirement real-package==versionplease (from versions: 1.1.3, 1.2, 1.9b1) |
319 |
| - No matching distribution found for real-package==versionplease |
| 317 | + Collecting real-package==9!0dev0+x |
| 318 | + Could not find a version that satisfies the requirement real-package==9!0dev0+x (from versions: 1.1.3, 1.2, 1.9b1) |
| 319 | + No matching distribution found for real-package==9!0dev0+x |
320 | 320 | EOS
|
321 | 321 | )
|
322 |
| - expect(Puppet::Util::Execution).to receive(:execpipe).with(["/fake/bin/pip", "install", "real_package==versionplease"]).and_yield(p).once |
| 322 | + expect(Puppet::Util::Execution).to receive(:execpipe).with(["/fake/bin/pip", "install", "real_package==9!0dev0+x"]).and_yield(p).once |
323 | 323 | @resource[:name] = "real_package"
|
324 | 324 | latest = @provider.latest
|
325 | 325 | expect(latest).to eq('1.9b1')
|
|
328 | 328 | it "should not find a version number for fake_package" do
|
329 | 329 | p = StringIO.new(
|
330 | 330 | <<-EOS
|
331 |
| - Collecting fake-package==versionplease |
332 |
| - Could not find a version that satisfies the requirement fake-package==versionplease (from versions: ) |
333 |
| - No matching distribution found for fake-package==versionplease |
| 331 | + Collecting fake-package==9!0dev0+x |
| 332 | + Could not find a version that satisfies the requirement fake-package==9!0dev0+x (from versions: ) |
| 333 | + No matching distribution found for fake-package==9!0dev0+x |
334 | 334 | EOS
|
335 | 335 | )
|
336 |
| - expect(Puppet::Util::Execution).to receive(:execpipe).with(["/fake/bin/pip", "install", "fake_package==versionplease"]).and_yield(p).once |
| 336 | + expect(Puppet::Util::Execution).to receive(:execpipe).with(["/fake/bin/pip", "install", "fake_package==9!0dev0+x"]).and_yield(p).once |
337 | 337 | @resource[:name] = "fake_package"
|
338 | 338 | expect(@provider.latest).to eq(nil)
|
339 | 339 | end
|
340 | 340 |
|
341 | 341 | it "should handle out-of-order version numbers for real_package" do
|
342 | 342 | p = StringIO.new(
|
343 | 343 | <<-EOS
|
344 |
| - Collecting real-package==versionplease |
345 |
| - Could not find a version that satisfies the requirement real-package==versionplease (from versions: 1.11, 13.0.3, 1.6, 1!1.2.rev33+123456, 1.9, 1.3.2, 14.0.1, 12.0.7, 13.0.3, 1.7.2, 1.8.4, 1.2+123abc456, 1.6.1, 0.9.2, 1.3, 1.8.3, 12.1.1, 1.1, 1.11.6, 1.2+123456, 1.4.8, 1.6.3, 1!1.0b2.post345.dev456, 1.10.1, 14.0.2, 1.11.3, 14.0.3, 1.4rc1, 1.0b2.post345.dev456, 0.8.4, 1.0, 1!1.0.post456, 12.0.5, 14.0.6, 1.11.5, 1.0rc2, 1.7.1.1, 1.11.4, 13.0.1, 13.1.2, 1.3.3, 0.8.2, 14.0.0, 12.0, 1.8, 1.3.4, 12.0, 1.2, 12.0.6, 0.9.1, 13.1.1, 2!2.3.4.alpha5.rev6.dev7+abc89, 14.0.5, 15.0.2, 15.0.0, 1.4.5, 1.4.3, 13.1.1, 1.11.2, 13.1.2, 1.2+abc123def, 1.3.1, 13.1.0, 12.0.2, 1.11.1, 12.0.1, 12.1.0, 0.9, 1.4.4, 1.2+abc123, 13.0.0, 1.4.9, 1.1.dev1, 12.1.0, 1.7.1, 1.4.2, 14.0.5, 0.8.1, 1.4.6, 0.8.3, 1.11.3, 1.5.1, 1.4.7, 13.0.2, 12.0.7, 1!13.0, 0!13.0, 1.9.1, 1.0.post456.dev34, 1.8.2, 14.0.1, 14.0.0, 1.2.rev33+123456, 14.0.4, 1.6.2, 15.0.1, 13.1.0, 0.8, 1.2+1234.abc, 1.7, 15.0.2, 12.0.5, 13.0.1, 1.8.1, 1.11.6, 15.0.1, 12.0.4, 1.2+123abc, 12.1.1, 13.0.2, 1.11.4, 1.10, 1.2.r32+123456, 14.0.4, 14.0.6, 1.4.1, 1.4, 1.5.2, 12.0.2, 12.0.1, 14.0.3, 14.0.2, 1.11.1, 1.7.1.2, 15.0.0, 12.0.4, 1.6.4, 1.11.2, 1.5, 0.1, 0.10, 0.10.1, 0.10.1.0.1, 1.0.dev456, 1.0a1, 1.0a2.dev456, 1.0a12.dev456, 1.0a12, 1.0b1.dev456, 1.0b2, 1.0b2.post345, 1.0b2-346, 1.0c1.dev456, 1.0c1, 1.0c3, 1.0, 1.0.post456, 1.2+abc, 1!1.0, 1!1.0.post456.dev34) |
346 |
| - No distributions matching the version for real-package==versionplease |
| 344 | + Collecting real-package==9!0dev0+x |
| 345 | + Could not find a version that satisfies the requirement real-package==9!0dev0+x (from versions: 1.11, 13.0.3, 1.6, 1!1.2.rev33+123456, 1.9, 1.3.2, 14.0.1, 12.0.7, 13.0.3, 1.7.2, 1.8.4, 1.2+123abc456, 1.6.1, 0.9.2, 1.3, 1.8.3, 12.1.1, 1.1, 1.11.6, 1.2+123456, 1.4.8, 1.6.3, 1!1.0b2.post345.dev456, 1.10.1, 14.0.2, 1.11.3, 14.0.3, 1.4rc1, 1.0b2.post345.dev456, 0.8.4, 1.0, 1!1.0.post456, 12.0.5, 14.0.6, 1.11.5, 1.0rc2, 1.7.1.1, 1.11.4, 13.0.1, 13.1.2, 1.3.3, 0.8.2, 14.0.0, 12.0, 1.8, 1.3.4, 12.0, 1.2, 12.0.6, 0.9.1, 13.1.1, 2!2.3.4.alpha5.rev6.dev7+abc89, 14.0.5, 15.0.2, 15.0.0, 1.4.5, 1.4.3, 13.1.1, 1.11.2, 13.1.2, 1.2+abc123def, 1.3.1, 13.1.0, 12.0.2, 1.11.1, 12.0.1, 12.1.0, 0.9, 1.4.4, 1.2+abc123, 13.0.0, 1.4.9, 1.1.dev1, 12.1.0, 1.7.1, 1.4.2, 14.0.5, 0.8.1, 1.4.6, 0.8.3, 1.11.3, 1.5.1, 1.4.7, 13.0.2, 12.0.7, 1!13.0, 0!13.0, 1.9.1, 1.0.post456.dev34, 1.8.2, 14.0.1, 14.0.0, 1.2.rev33+123456, 14.0.4, 1.6.2, 15.0.1, 13.1.0, 0.8, 1.2+1234.abc, 1.7, 15.0.2, 12.0.5, 13.0.1, 1.8.1, 1.11.6, 15.0.1, 12.0.4, 1.2+123abc, 12.1.1, 13.0.2, 1.11.4, 1.10, 1.2.r32+123456, 14.0.4, 14.0.6, 1.4.1, 1.4, 1.5.2, 12.0.2, 12.0.1, 14.0.3, 14.0.2, 1.11.1, 1.7.1.2, 15.0.0, 12.0.4, 1.6.4, 1.11.2, 1.5, 0.1, 0.10, 0.10.1, 0.10.1.0.1, 1.0.dev456, 1.0a1, 1.0a2.dev456, 1.0a12.dev456, 1.0a12, 1.0b1.dev456, 1.0b2, 1.0b2.post345, 1.0b2-346, 1.0c1.dev456, 1.0c1, 1.0c3, 1.0, 1.0.post456, 1.2+abc, 1!1.0, 1!1.0.post456.dev34) |
| 346 | + No distributions matching the version for real-package==9!0dev0+x |
347 | 347 | EOS
|
348 | 348 | )
|
349 |
| - expect(Puppet::Util::Execution).to receive(:execpipe).with(["/fake/bin/pip", "install", "real_package==versionplease"]).and_yield(p).once |
| 349 | + expect(Puppet::Util::Execution).to receive(:execpipe).with(["/fake/bin/pip", "install", "real_package==9!0dev0+x"]).and_yield(p).once |
350 | 350 | @resource[:name] = "real_package"
|
351 | 351 | expect(@provider.latest).to eq('2!2.3.4.alpha5.rev6.dev7+abc89')
|
352 | 352 | end
|
|
0 commit comments