From 040e65b906b3f42a054f43f86d0b86f3cdf03a92 Mon Sep 17 00:00:00 2001 From: Matt Low Date: Mon, 10 Jun 2019 01:05:50 +0400 Subject: [PATCH] Acceptance test: works with == in pkgname --- spec/acceptance/virtualenv_spec.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/spec/acceptance/virtualenv_spec.rb b/spec/acceptance/virtualenv_spec.rb index 5bbb6dbd..f9866372 100644 --- a/spec/acceptance/virtualenv_spec.rb +++ b/spec/acceptance/virtualenv_spec.rb @@ -128,6 +128,29 @@ class { 'python' : } EOS + # Run it twice and test for idempotency + apply_manifest(pp, catch_failures: true) + apply_manifest(pp, catch_changes: true) + end + it 'works with == in pkgname' do + pp = <<-EOS + 'python' : + version => 'system', + pip => 'present', + virtualenv => 'present', + } + -> python::virtualenv { 'venv' : + ensure => 'present', + systempkgs => false, + venv_dir => '/opt/venv6', + owner => 'root', + group => 'root', + } + -> python::pip { 'rpyc==4.1.0' : + virtualenv => '/opt/venv6', + } + EOS + # Run it twice and test for idempotency apply_manifest(pp, catch_failures: true) apply_manifest(pp, catch_changes: true)