From 8829dd49cd564ad3484c2fdbf65e85510bd622da Mon Sep 17 00:00:00 2001 From: Rocky Date: Thu, 11 Jan 2018 13:48:32 +1100 Subject: [PATCH] Add apt-get update in application deployment apt-get update should be performed first before installing the debian packages, otherwise it may breaks during the application script execution in tests. Change-Id: I0c2e35fe1c05182ab7a9db094f787df9a8df1248 --- .../Classes/ApacheHttpServer.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/murano_tempest_tests/extras/io.murano.apps.test.ApacheHttpServerCustom/Classes/ApacheHttpServer.yaml b/murano_tempest_tests/extras/io.murano.apps.test.ApacheHttpServerCustom/Classes/ApacheHttpServer.yaml index cd13ff9..31eefd8 100644 --- a/murano_tempest_tests/extras/io.murano.apps.test.ApacheHttpServerCustom/Classes/ApacheHttpServer.yaml +++ b/murano_tempest_tests/extras/io.murano.apps.test.ApacheHttpServerCustom/Classes/ApacheHttpServer.yaml @@ -58,6 +58,7 @@ Methods: - $resources: new(sys:Resources) - $linux: new(conf:Linux) + - $linux.runCommand($.instance.agent, 'apt-get update') - $linux.runCommand($.instance.agent, 'apt-get -y install apache2') - $linux.runCommand($.instance.agent, 'iptables -I INPUT 1 -p tcp --dport 443 -j ACCEPT') - $linux.runCommand($.instance.agent, 'iptables -I INPUT 1 -p tcp --dport 80 -j ACCEPT')