cancelling actions works now
This commit is contained in:
@@ -42,6 +42,7 @@ async fn test_create_execution_basic() {
|
||||
parent: None,
|
||||
enforcement: None,
|
||||
executor: None,
|
||||
worker: None,
|
||||
status: ExecutionStatus::Requested,
|
||||
result: None,
|
||||
workflow_task: None,
|
||||
@@ -76,6 +77,7 @@ async fn test_create_execution_without_action() {
|
||||
parent: None,
|
||||
enforcement: None,
|
||||
executor: None,
|
||||
worker: None,
|
||||
status: ExecutionStatus::Requested,
|
||||
result: None,
|
||||
workflow_task: None,
|
||||
@@ -110,6 +112,7 @@ async fn test_create_execution_with_all_fields() {
|
||||
parent: None,
|
||||
enforcement: None,
|
||||
executor: None, // Don't reference non-existent identity
|
||||
worker: None,
|
||||
status: ExecutionStatus::Scheduled,
|
||||
result: Some(json!({"status": "ok"})),
|
||||
workflow_task: None,
|
||||
@@ -146,6 +149,7 @@ async fn test_create_execution_with_parent() {
|
||||
parent: None,
|
||||
enforcement: None,
|
||||
executor: None,
|
||||
worker: None,
|
||||
status: ExecutionStatus::Running,
|
||||
result: None,
|
||||
workflow_task: None,
|
||||
@@ -164,6 +168,7 @@ async fn test_create_execution_with_parent() {
|
||||
parent: Some(parent.id),
|
||||
enforcement: None,
|
||||
executor: None,
|
||||
worker: None,
|
||||
status: ExecutionStatus::Requested,
|
||||
result: None,
|
||||
workflow_task: None,
|
||||
@@ -203,6 +208,7 @@ async fn test_find_execution_by_id() {
|
||||
parent: None,
|
||||
enforcement: None,
|
||||
executor: None,
|
||||
worker: None,
|
||||
status: ExecutionStatus::Requested,
|
||||
result: None,
|
||||
workflow_task: None,
|
||||
@@ -257,6 +263,7 @@ async fn test_list_executions() {
|
||||
parent: None,
|
||||
enforcement: None,
|
||||
executor: None,
|
||||
worker: None,
|
||||
status: ExecutionStatus::Requested,
|
||||
result: None,
|
||||
workflow_task: None,
|
||||
@@ -303,6 +310,7 @@ async fn test_list_executions_ordered_by_created_desc() {
|
||||
parent: None,
|
||||
enforcement: None,
|
||||
executor: None,
|
||||
worker: None,
|
||||
status: ExecutionStatus::Requested,
|
||||
result: None,
|
||||
workflow_task: None,
|
||||
@@ -354,6 +362,7 @@ async fn test_update_execution_status() {
|
||||
parent: None,
|
||||
enforcement: None,
|
||||
executor: None,
|
||||
worker: None,
|
||||
status: ExecutionStatus::Requested,
|
||||
result: None,
|
||||
workflow_task: None,
|
||||
@@ -399,6 +408,7 @@ async fn test_update_execution_result() {
|
||||
parent: None,
|
||||
enforcement: None,
|
||||
executor: None,
|
||||
worker: None,
|
||||
status: ExecutionStatus::Running,
|
||||
result: None,
|
||||
workflow_task: None,
|
||||
@@ -445,6 +455,7 @@ async fn test_update_execution_executor() {
|
||||
parent: None,
|
||||
enforcement: None,
|
||||
executor: None,
|
||||
worker: None,
|
||||
status: ExecutionStatus::Requested,
|
||||
result: None,
|
||||
workflow_task: None,
|
||||
@@ -489,6 +500,7 @@ async fn test_update_execution_status_transitions() {
|
||||
parent: None,
|
||||
enforcement: None,
|
||||
executor: None,
|
||||
worker: None,
|
||||
status: ExecutionStatus::Requested,
|
||||
result: None,
|
||||
workflow_task: None,
|
||||
@@ -580,6 +592,7 @@ async fn test_update_execution_failed_status() {
|
||||
parent: None,
|
||||
enforcement: None,
|
||||
executor: None,
|
||||
worker: None,
|
||||
status: ExecutionStatus::Running,
|
||||
result: None,
|
||||
workflow_task: None,
|
||||
@@ -625,6 +638,7 @@ async fn test_update_execution_no_changes() {
|
||||
parent: None,
|
||||
enforcement: None,
|
||||
executor: None,
|
||||
worker: None,
|
||||
status: ExecutionStatus::Requested,
|
||||
result: None,
|
||||
workflow_task: None,
|
||||
@@ -669,6 +683,7 @@ async fn test_delete_execution() {
|
||||
parent: None,
|
||||
enforcement: None,
|
||||
executor: None,
|
||||
worker: None,
|
||||
status: ExecutionStatus::Completed,
|
||||
result: None,
|
||||
workflow_task: None,
|
||||
@@ -736,6 +751,7 @@ async fn test_find_executions_by_status() {
|
||||
parent: None,
|
||||
enforcement: None,
|
||||
executor: None,
|
||||
worker: None,
|
||||
status: *status,
|
||||
result: None,
|
||||
workflow_task: None,
|
||||
@@ -783,6 +799,7 @@ async fn test_find_executions_by_enforcement() {
|
||||
parent: None,
|
||||
enforcement: None,
|
||||
executor: None,
|
||||
worker: None,
|
||||
status: ExecutionStatus::Requested,
|
||||
result: None,
|
||||
workflow_task: None,
|
||||
@@ -801,6 +818,7 @@ async fn test_find_executions_by_enforcement() {
|
||||
parent: None,
|
||||
enforcement: None, // Can't reference non-existent enforcement
|
||||
executor: None,
|
||||
worker: None,
|
||||
status: ExecutionStatus::Requested,
|
||||
result: None,
|
||||
workflow_task: None,
|
||||
@@ -845,6 +863,7 @@ async fn test_parent_child_execution_hierarchy() {
|
||||
parent: None,
|
||||
enforcement: None,
|
||||
executor: None,
|
||||
worker: None,
|
||||
status: ExecutionStatus::Running,
|
||||
result: None,
|
||||
workflow_task: None,
|
||||
@@ -865,6 +884,7 @@ async fn test_parent_child_execution_hierarchy() {
|
||||
parent: Some(parent.id),
|
||||
enforcement: None,
|
||||
executor: None,
|
||||
worker: None,
|
||||
status: ExecutionStatus::Requested,
|
||||
result: None,
|
||||
workflow_task: None,
|
||||
@@ -909,6 +929,7 @@ async fn test_nested_execution_hierarchy() {
|
||||
parent: None,
|
||||
enforcement: None,
|
||||
executor: None,
|
||||
worker: None,
|
||||
status: ExecutionStatus::Running,
|
||||
result: None,
|
||||
workflow_task: None,
|
||||
@@ -927,6 +948,7 @@ async fn test_nested_execution_hierarchy() {
|
||||
parent: Some(grandparent.id),
|
||||
enforcement: None,
|
||||
executor: None,
|
||||
worker: None,
|
||||
status: ExecutionStatus::Running,
|
||||
result: None,
|
||||
workflow_task: None,
|
||||
@@ -945,6 +967,7 @@ async fn test_nested_execution_hierarchy() {
|
||||
parent: Some(parent.id),
|
||||
enforcement: None,
|
||||
executor: None,
|
||||
worker: None,
|
||||
status: ExecutionStatus::Requested,
|
||||
result: None,
|
||||
workflow_task: None,
|
||||
@@ -987,6 +1010,7 @@ async fn test_execution_timestamps() {
|
||||
parent: None,
|
||||
enforcement: None,
|
||||
executor: None,
|
||||
worker: None,
|
||||
status: ExecutionStatus::Requested,
|
||||
result: None,
|
||||
workflow_task: None,
|
||||
@@ -1058,6 +1082,7 @@ async fn test_execution_config_json() {
|
||||
parent: None,
|
||||
enforcement: None,
|
||||
executor: None,
|
||||
worker: None,
|
||||
status: ExecutionStatus::Requested,
|
||||
result: None,
|
||||
workflow_task: None,
|
||||
@@ -1091,6 +1116,7 @@ async fn test_execution_result_json() {
|
||||
parent: None,
|
||||
enforcement: None,
|
||||
executor: None,
|
||||
worker: None,
|
||||
status: ExecutionStatus::Running,
|
||||
result: None,
|
||||
workflow_task: None,
|
||||
|
||||
Reference in New Issue
Block a user