1
0
mirror of synced 2026-02-01 22:01:57 -05:00

Standard source incremental tests (#1175)

This commit is contained in:
Sherif A. Nada
2020-12-04 09:54:10 -08:00
committed by GitHub
parent b9fbf24ea6
commit e8a332ae65
69 changed files with 2178 additions and 1679 deletions

View File

@@ -35,7 +35,8 @@ from .test_iface import StandardSourceTestIface
class TestAction(Enum):
GET_SPEC = "get_spec"
GET_CONFIG = "get_config"
GET_CATALOG = "get_catalog"
GET_CONFIGURED_CATALOG = "get_configured_catalog"
GET_STATE = "get_state"
GET_REGEX_TESTS = "get_regex_tests"
SETUP = "setup"
TEARDOWN = "teardown"
@@ -74,8 +75,10 @@ class StandardSourceTestRunner(StandardSourceTestIface):
output = self.test.get_spec().json(exclude_unset=True)
elif cmd == TestAction.GET_CONFIG:
output = json.dumps(self.test.get_config())
elif cmd == TestAction.GET_CATALOG:
elif cmd == TestAction.GET_CONFIGURED_CATALOG:
output = self.test.get_catalog().json(exclude_unset=True)
elif cmd == TestAction.GET_STATE:
output = json.dumps(self.test.get_state())
elif cmd == TestAction.SETUP:
self.test.setup()
elif cmd == TestAction.TEARDOWN: