Beispiel #1
0
 def test_verify_wrong_execution_application(self):
     template = self.useFixture(ep.ExPlanApplication()).execution_plan
     template['Files']['ID1'] = {
         'Name': 'tomcat.git',
         'Type': 'Downloadable',
         'URL': 'https://github.com/tomcat.git'
     }
     template['FormatVersion'] = '2.0.0'
     self.assertRaises(exc.IncorrectFormat, self.agent._verify_plan,
                       template)
Beispiel #2
0
 def test_verify_execution_application(self):
     template = self.useFixture(ep.ExPlanApplication()).execution_plan
     self.agent._verify_plan(template)
Beispiel #3
0
 def test_verify_over_max_execution_plan(self):
     template = self.useFixture(ep.ExPlanApplication()).execution_plan
     template['FormatVersion'] = '1000.0.0'
     self.assertRaises(exc.IncorrectFormat, self.agent._verify_plan,
                       template)