forked from cleveragents/cleveragents-core
28 lines
1.3 KiB
Plaintext
28 lines
1.3 KiB
Plaintext
*** Settings ***
|
|
Library OperatingSystem
|
|
Library Collections
|
|
Library Process
|
|
|
|
*** Variables ***
|
|
${PYTHON} python
|
|
|
|
*** Test Cases ***
|
|
Actor Registry Lists Actors With YAML Metadata
|
|
${result}= Run Process ${PYTHON} robot/helper_actor_registry_persistence.py list_yaml_metadata stdout=PIPE stderr=PIPE
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
${payload}= Evaluate __import__('json').loads('''${result.stdout.strip()}''')
|
|
Should Be Equal ${payload['name']} local/test
|
|
Should Be Equal ${payload['schema_version']} 1.0
|
|
Should Be True ${payload['has_yaml']}
|
|
Should Be True ${payload['has_meta']}
|
|
|
|
Actor Registry Schema Version Defaults To 1.0
|
|
${result}= Run Process ${PYTHON} robot/helper_actor_registry_persistence.py schema_version_default stdout=PIPE stderr=PIPE
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Be Equal ${result.stdout.strip()} 1.0
|
|
|
|
Actor Namespaced Name Validation
|
|
${result}= Run Process ${PYTHON} robot/helper_actor_registry_persistence.py namespaced_name stdout=PIPE stderr=PIPE
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
Should Be Equal ${result.stdout.strip()} local/valid-name
|