From 857cc80bcc894a892cd572c397cff40f0fbde131 Mon Sep 17 00:00:00 2001 From: david22swan Date: Tue, 2 Jul 2024 12:42:11 +0100 Subject: [PATCH] Test10 --- .github/workflows/windows-ci.yml | 5 ++--- Gemfile | 1 + spec/spec_helper_acceptance.rb | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/windows-ci.yml b/.github/workflows/windows-ci.yml index e2b83603f..214ca7d38 100644 --- a/.github/workflows/windows-ci.yml +++ b/.github/workflows/windows-ci.yml @@ -49,12 +49,11 @@ jobs: EOF - curl -X POST -H "Authorization:bearer $TOKEN" https://facade-main-6f3kfepqcq-uc.a.run.app/v1/provision --data @test_machines.json > inventory.yaml + curl -X POST -H "Authorization:bearer $TOKEN" https://facade-main-6f3kfepqcq-uc.a.run.app/v1/provision --data @test_machines.json > ./spec/fixtures/litmus_inventory.yaml - name: "print inventory" run: | - cat ./inventory.yaml - sleep 600s + cat ./spec/fixtures/litmus_inventory.yaml - name: "run acceptance" run: | diff --git a/Gemfile b/Gemfile index db64ff676..6ddda151e 100644 --- a/Gemfile +++ b/Gemfile @@ -31,6 +31,7 @@ group :acceptance do gem 'minitar-cli' gem 'rspec-xsd' gem 'serverspec' + gem 'puppet_litmus', '= 0.36.2' end group :acceptance_ci do diff --git a/spec/spec_helper_acceptance.rb b/spec/spec_helper_acceptance.rb index 8a80661a7..d67ddd3b7 100644 --- a/spec/spec_helper_acceptance.rb +++ b/spec/spec_helper_acceptance.rb @@ -6,6 +6,9 @@ require 'pdk/util/template_uri' require 'tempfile' require 'json' +require 'puppet_litmus' + +PuppetLitmus.configure! # Sets default puppet/ruby versions to be used within the tests # Duplicates of this are found within spec_helper.rb and spec_helper_package.rb and should be updated simultaneously.