Граф коммитов

20 Коммитов

Автор SHA1 Сообщение Дата
Chi Song 2b15949653 environment remove allow_create flag
if there is predefined environment in runbook, it doesn't allow to
create environment automatically. For the usage scenarios, if there is
predefined environment, it's confusing to have generated environments.
This change force to use predefined environment for all test cases.

Improved UTs, add checks on case names
2021-06-02 18:22:36 -07:00
Chi Song 159678dacd fix failed case on local run
disallow create env in default run, so it won't faield on creating env.
2021-03-11 18:29:18 +08:00
Chi Song a3a4701646 implement html report 2021-02-28 11:12:45 +08:00
Chi Song 5c630d1a6c Fix extensions to use new schema 2021-02-23 12:59:54 +08:00
Chi Song 787c60d204 Yaml: change Camel case to snake_case in yaml
The camelCase is recommended in yaml, but it's different with Python
style. The trouble is when searching in yaml, it's hard to find Python
schema, and versus. So change to use snake_case, for easier searching.
2021-02-02 07:00:00 +08:00
Chi Song 98ef17cf58 implement sample console notifier 2020-10-03 07:11:02 +08:00
Chi Song c9f23c1271 update example runbooks
add azure runbook
remove confused local_dev, local dev can use hello_world
2020-09-17 07:32:15 +08:00
Chi Song 6bd5f6c2a3 fix conflict on import same name folders
add a prefix module name, and change the approach to import package.

other updates,
1. simplify hello_world runbook
2. fix words
2020-09-17 07:32:15 +08:00
Chi Song 75ce9d66d2 support test case requirement flow
1. add work flow to create env from cases.
2. add capability on environment and node.
3. add EnvironmentSpace for requirement and capability.
4. add prepare_environment method to match capability and requirements
5. use delay node schema nodes replace ugly package instrument.
6. move some test only code to test file.
7. add create factory to support windows tools.
8. support test case settings like retry, times, and so on.
9. other minor improvements.
2020-09-17 07:32:15 +08:00
Chi Song 6385e90ddc add operating_system and initialable mixin
1. add operating system package for os information
2. add initialable mixin for reusing code
3. improve test suite message
4. other minor improvements
2020-09-17 07:32:15 +08:00
Chi Song 5822277899 unify names to runbook
change most config, schema, data to runbook for clearer term
2020-09-01 10:02:58 +08:00
Chi Song db1170f433 Add schema validation
1. add cerberus to validate schema.
2. remove full.yml, and add schema.yml as schema
3. fix schema due to new schema
2020-08-19 11:58:03 +08:00
Chi Song 7f6f6be987
Implement custom script (#965)
* Implement custom script

1. Implement custom script. As it's same type with different data, so it's different with tools. CustomScriptBuilder to create an instance of script on Node.
2. rename method and variables to follow pep8 guidaline.
3. rename [Suite/Case]Metadata to [TestSuite/TestCase]Metadata
4. create LisaException to all internal exceptions
5. other minor improvements
2020-08-13 15:33:58 +08:00
Chi Song e83bd25842 implement simple tools: echo, uname 2020-08-07 16:49:53 +08:00
Chi Song 9300e145bd use base path from config file
it's easier to put all things together.
2020-08-06 15:14:17 +08:00
Chi Song 8b1226ea1c change to multiple envs, and strict typing
1. fixed most format and typing
2. update yaml schema as feedback
3. fix some file names
4. Add environments factory to manage multiple environments
. move environment request logic to runner, but will be flow part later.
. other minor improvements.
2020-08-05 17:54:27 +08:00
Chi Song 4ba1f0c100 Implement load environment and platform
1. Add Config class to hold config data and helper methods.
2. Add RuntimeObject, hold running objects.
3. Improve schema of platform and environment.
4. Rename decorators
5. Load node, environment, platform from config
6. Implement Ready env.
7. Add connection class to manage ssh session of node.
8. other minor improvements.
2020-08-04 17:00:45 +08:00
Chi Song c0e8def98c add argparser and load yml file
1. add argparser
2. load yaml file to data
3. load platform subclasses
4. rename yaml to yml as common practice
5. optimize log and log format
6. add executable base for future usage.
7. other small improvements
2020-08-04 09:27:01 +08:00
Chi Song 48623d2258 implement test case flow
1. Add decorators for test class and methods
2. Add base class for test process.
3. Add a simple example for test suite.
4. Move local platform type to ready, as it's kind of ready.
5. Add async/await for key methods.
6. Add basic code for environment, node.
7. Add basic methods for Platform.
8. Add test factory to collect test info.
9. Add function for import_module
10. process can stop child processes.
11. Add basic parameter parser.
2020-08-04 09:27:01 +08:00
Chi Song 170085df03 add placeholder files
1. review yaml schema
2. fix process output, it can be in log now.
3. update folder structure like design.
2020-08-04 09:27:01 +08:00