From 32dbff0a15b5805e3b423ec68fef87012d717834 Mon Sep 17 00:00:00 2001
From: Leif Johansson <leifj@sunet.se>
Date: Thu, 16 May 2019 08:42:57 +0200
Subject: [PATCH] launch tests on start

---
 global/overlay/etc/puppet/manifests/cosmos-site.pp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/global/overlay/etc/puppet/manifests/cosmos-site.pp b/global/overlay/etc/puppet/manifests/cosmos-site.pp
index df0b5d1d..f47a7e6f 100644
--- a/global/overlay/etc/puppet/manifests/cosmos-site.pp
+++ b/global/overlay/etc/puppet/manifests/cosmos-site.pp
@@ -398,6 +398,12 @@ class eidastest($version="1.0.0", $hostname="locahost") {
       description  => 'eidastest service',
       compose_dir  => "${home}",
       content => inline_template("<%= @compose.to_yaml %>\n")
+   } ->
+   exec { 'launch_test_prod':
+      command      => "wget --no-check-certificate -qO- https://localhost/testid/prod/execution-start/7"
+   } ->
+   exec { 'launch_test_qa':
+      command      => "wget --no-check-certificate -qO- https://localhost/testid/qa/execution-start/27"
    }
    ensure_resource('class','webserver',{})
    ensure_resource('class','https_server',{})