adjust more output_schema tests
@@ -180,8 +180,15 @@ ACTION_WITH_OUTPUT_SCHEMA_WITH_SECRET_PARAMS = {
"runner_type": "python-script",
"parameters": {},
"output_schema": {
- "secret_param_1": {"type": "string", "required": True, "secret": True},
- "secret_param_2": {"type": "string", "required": True, "secret": True},
+ "type": "object",
+ "properties": {
+ "secret_param_1": {
+ "type": "string", "required": True, "secret": True
+ },
+ "secret_param_2": {
+ "type": "string", "required": True, "secret": True
+ },
+ },
},
}
@@ -194,9 +201,12 @@ ACTION_WITH_OUTPUT_SCHEMA_WITHOUT_SECRET_PARAMS = {
"runner_type": "python-script",
"parameters": {},
"output_schema": {
+ "type": "object",
+ "properties": {
"non_secret_param_1": {"type": "string", "required": True},
"non_secret_param_2": {"type": "string", "required": True},
},
+ },
}
ACTION_DEFAULT_ENCRYPT_AND_BOOL = {
"name": "st2.dummy.default_encrypted_and_bool",
