Exemplo n.º 1
0
 def test_packs_register_endpoint_resource_register_order(self):
     # Verify that resources are registered in the same order as they are inside
     # st2-register-content.
     # Note: Sadly there is no easier / better way to test this
     resource_types = list(ENTITIES.keys())
     expected_order = [
         'trigger', 'sensor', 'action', 'rule', 'alias', 'policy', 'config'
     ]
     self.assertEqual(resource_types, expected_order)
Exemplo n.º 2
0
 def test_packs_register_endpoint_resource_register_order(self):
     # Verify that resources are registered in the same order as they are inside
     # st2-register-content.
     # Note: Sadly there is no easier / better way to test this
     resource_types = list(ENTITIES.keys())
     expected_order = [
         'trigger',
         'sensor',
         'action',
         'rule',
         'alias',
         'policy',
         'config'
     ]
     self.assertEqual(resource_types, expected_order)
Exemplo n.º 3
0
 def test_packs_register_endpoint_resource_register_order(self):
     # Verify that resources are registered in the same order as they are inside
     # st2-register-content.
     # Note: Sadly there is no easier / better way to test this
     resource_types = list(ENTITIES.keys())
     expected_order = [
         "trigger",
         "sensor",
         "action",
         "rule",
         "alias",
         "policy",
         "config",
     ]
     self.assertEqual(resource_types, expected_order)