コード例 #1
0
ファイル: test_packs.py プロジェクト: ulakarapu/st2
 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)
コード例 #2
0
ファイル: test_packs.py プロジェクト: lyandut/st2
 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)
コード例 #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)