Skip to content

Commit

Permalink
Test version attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfischer-ch committed Dec 11, 2024
1 parent 4318ed0 commit 2214a09
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions internal/provider/orchestrator_workflow_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ resource "aria_orchestrator_workflow" "test" {
name = "Test Workflow"
description = "Workflow generated by the acceptance tests of Aria provider."
category_id = aria_orchestrator_category.root.id
version = "0.0.0" # TODO test versioning
version = "0.1.0"
position = { x = 100, y = 50 }
Expand All @@ -66,7 +66,7 @@ resource "aria_orchestrator_workflow" "test" {
resource.TestCheckResourceAttrSet("aria_orchestrator_workflow.test", "id"),
resource.TestCheckResourceAttr("aria_orchestrator_workflow.test", "name", "Test Workflow"),
resource.TestCheckResourceAttr("aria_orchestrator_workflow.test", "description", "Workflow generated by the acceptance tests of Aria provider."),
resource.TestCheckResourceAttr("aria_orchestrator_workflow.test", "version", "0.0.0"),
resource.TestCheckResourceAttr("aria_orchestrator_workflow.test", "version", "0.1.0"),
resource.TestMatchResourceAttr("aria_orchestrator_workflow.test", "version_id", regexp.MustCompile("[0-9a-f]{40}")),
resource.TestCheckResourceAttr("aria_orchestrator_workflow.test", "position.x", "100"),
resource.TestCheckResourceAttr("aria_orchestrator_workflow.test", "position.y", "50"),
Expand Down Expand Up @@ -114,7 +114,7 @@ resource "aria_orchestrator_workflow" "test" {
name = "Test Workflow Renamed"
description = "Workflow generated by the acceptance tests of Aria provider (updated)."
category_id = aria_orchestrator_category.root.id
version = "0.0.0" # TODO test versioning
version = "0.2.0"
position = { x = 60, y = 10 }
Expand Down Expand Up @@ -143,7 +143,7 @@ resource "aria_orchestrator_workflow" "test" {
resource.TestCheckResourceAttrSet("aria_orchestrator_workflow.test", "id"),
resource.TestCheckResourceAttr("aria_orchestrator_workflow.test", "name", "Test Workflow Renamed"),
resource.TestCheckResourceAttr("aria_orchestrator_workflow.test", "description", "Workflow generated by the acceptance tests of Aria provider (updated)."),
resource.TestCheckResourceAttr("aria_orchestrator_workflow.test", "version", "0.0.0"),
resource.TestCheckResourceAttr("aria_orchestrator_workflow.test", "version", "0.2.0"),
resource.TestMatchResourceAttr("aria_orchestrator_workflow.test", "version_id", regexp.MustCompile("[0-9a-f]{40}")),
resource.TestCheckResourceAttr("aria_orchestrator_workflow.test", "position.x", "60"),
resource.TestCheckResourceAttr("aria_orchestrator_workflow.test", "position.y", "10"),
Expand Down Expand Up @@ -197,7 +197,7 @@ resource "aria_orchestrator_workflow" "test" {
name = "Test Workflow Renamed"
description = "Workflow generated by the acceptance tests of Aria provider (updated)."
category_id = aria_orchestrator_category.test.id
version = "0.0.0" # TODO test versioning
version = "0.2.0"
position = { x = 60, y = 10 }
Expand Down Expand Up @@ -226,7 +226,7 @@ resource "aria_orchestrator_workflow" "test" {
resource.TestCheckResourceAttrSet("aria_orchestrator_workflow.test", "id"),
resource.TestCheckResourceAttr("aria_orchestrator_workflow.test", "name", "Test Workflow Renamed"),
resource.TestCheckResourceAttr("aria_orchestrator_workflow.test", "description", "Workflow generated by the acceptance tests of Aria provider (updated)."),
resource.TestCheckResourceAttr("aria_orchestrator_workflow.test", "version", "0.0.0"),
resource.TestCheckResourceAttr("aria_orchestrator_workflow.test", "version", "0.2.0"),
resource.TestMatchResourceAttr("aria_orchestrator_workflow.test", "version_id", regexp.MustCompile("[0-9a-f]{40}")),
resource.TestCheckResourceAttr("aria_orchestrator_workflow.test", "position.x", "60"),
resource.TestCheckResourceAttr("aria_orchestrator_workflow.test", "position.y", "10"),
Expand Down Expand Up @@ -280,7 +280,7 @@ resource "aria_orchestrator_workflow" "test" {
name = "Test Workflow Renamed"
description = "Workflow generated by the acceptance tests of Aria provider (updated)."
category_id = aria_orchestrator_category.test.id
version = "0.0.0" # TODO test versioning
version = "1.0.0"
position = { x = 60, y = 10 }
Expand Down Expand Up @@ -372,7 +372,7 @@ resource "aria_orchestrator_workflow" "test" {
resource.TestCheckResourceAttrSet("aria_orchestrator_workflow.test", "id"),
resource.TestCheckResourceAttr("aria_orchestrator_workflow.test", "name", "Test Workflow Renamed"),
resource.TestCheckResourceAttr("aria_orchestrator_workflow.test", "description", "Workflow generated by the acceptance tests of Aria provider (updated)."),
resource.TestCheckResourceAttr("aria_orchestrator_workflow.test", "version", "0.0.0"),
resource.TestCheckResourceAttr("aria_orchestrator_workflow.test", "version", "1.0.0"),
resource.TestMatchResourceAttr("aria_orchestrator_workflow.test", "version_id", regexp.MustCompile("[0-9a-f]{40}")),
resource.TestCheckResourceAttr("aria_orchestrator_workflow.test", "position.x", "60"),
resource.TestCheckResourceAttr("aria_orchestrator_workflow.test", "position.y", "10"),
Expand Down Expand Up @@ -862,7 +862,7 @@ resource "aria_orchestrator_workflow" "test" {
name = local.workflow_data["workflowSchema"]["display-name"]
description = "Workflow generated by the acceptance tests of Aria provider."
category_id = aria_orchestrator_category.root.id
version = "0.0.0" # TODO test versioning
version = "0.0.0"
allowed_operations = local.workflow_data["workflowSchema"]["allowed-operations"]
attrib = jsonencode(local.workflow_data["workflowSchema"]["attrib"])
Expand Down

0 comments on commit 2214a09

Please sign in to comment.