예제 #1
0
 def test_none_stack_update_nochange(self):
     self._create_none_stack()
     before_refid = self.rsrc.FnGetRefId()
     self.assertIsNotNone(before_refid)
     utils.update_stack(self.stack, self.t)
     self.assertEqual((self.stack.UPDATE, self.stack.COMPLETE),
                      self.stack.state)
     self.assertEqual(before_refid, self.stack['none'].FnGetRefId())
예제 #2
0
 def test_none_stack_update_nochange(self):
     self._create_none_stack()
     before_refid = self.rsrc.FnGetRefId()
     self.assertIsNotNone(before_refid)
     utils.update_stack(self.stack, self.t)
     self.assertEqual((self.stack.UPDATE, self.stack.COMPLETE),
                      self.stack.state)
     self.assertEqual(before_refid, self.stack['none'].FnGetRefId())
예제 #3
0
 def test_none_stack_update_del_prop(self):
     self._create_none_stack()
     before_refid = self.rsrc.FnGetRefId()
     self.assertIsNotNone(before_refid)
     new_t = self.t.copy()
     del(new_t['resources']['none']['properties']['ignored'])
     utils.update_stack(self.stack, new_t)
     self.assertEqual((self.stack.UPDATE, self.stack.COMPLETE),
                      self.stack.state)
     self.assertEqual(before_refid, self.stack['none'].FnGetRefId())
예제 #4
0
 def test_none_stack_update_del_prop(self):
     self._create_none_stack()
     before_refid = self.rsrc.FnGetRefId()
     self.assertIsNotNone(before_refid)
     new_t = self.t.copy()
     del (new_t['resources']['none']['properties']['ignored'])
     utils.update_stack(self.stack, new_t)
     self.assertEqual((self.stack.UPDATE, self.stack.COMPLETE),
                      self.stack.state)
     self.assertEqual(before_refid, self.stack['none'].FnGetRefId())