From fb8c07ec15bfba33398b7c0e238681ad2dfd8335 Mon Sep 17 00:00:00 2001 From: Lourens de Jager <165963988+lourens-octopus@users.noreply.github.com> Date: Mon, 9 Dec 2024 14:07:26 +1300 Subject: [PATCH] test update --- .../resource_git_trigger_test.go | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/octopusdeploy_framework/resource_git_trigger_test.go b/octopusdeploy_framework/resource_git_trigger_test.go index af31c1f5..13ab0e78 100644 --- a/octopusdeploy_framework/resource_git_trigger_test.go +++ b/octopusdeploy_framework/resource_git_trigger_test.go @@ -53,35 +53,35 @@ func TestAccOctopusDeployGitTrigger(t *testing.T) { }, }, } - //updateData := gitTriggerTestData{ - // name: createData.name + "-updated", - // description: createData.description + "-updated", - // projectId: createData.projectId, - // channelId: createData.channelId, - // spaceId: createData.spaceId, - // isDisabled: true, - // sources: []gitTriggerSourcesTestData{ - // { - // deploymentActionSlug: createData.sources[0].deploymentActionSlug + "-updated", - // gitDependencyName: createData.sources[0].gitDependencyName + "-updated", - // includeFilePaths: []string{createData.sources[0].includeFilePaths[0] + "-updated"}, - // excludeFilePaths: []string{createData.sources[0].excludeFilePaths[0] + "-updated"}, - // }, - // }, - //} + updateData := gitTriggerTestData{ + name: createData.name + "-updated", + description: createData.description + "-updated", + projectId: createData.projectId, + channelId: createData.channelId, + spaceId: createData.spaceId, + isDisabled: true, + sources: []gitTriggerSourcesTestData{ + { + deploymentActionSlug: createData.sources[0].deploymentActionSlug + "-updated", + gitDependencyName: createData.sources[0].gitDependencyName + "-updated", + includeFilePaths: []string{createData.sources[0].includeFilePaths[0] + "-updated"}, + excludeFilePaths: []string{createData.sources[0].excludeFilePaths[0] + "-updated"}, + }, + }, + } resource.Test(t, resource.TestCase{ PreCheck: func() { TestAccPreCheck(t) }, ProtoV6ProviderFactories: ProtoV6ProviderFactories(), Steps: []resource.TestStep{ - { - Config: testGitTriggerBasic(createData, localName), - Check: testAssertGitTriggerAttributes(createData, prefix), - }, //{ - // Config: testGitTriggerBasic(updateData, localName), - // Check: testAssertGitTriggerAttributes(updateData, prefix), + // Config: testGitTriggerBasic(createData, localName), + // Check: testAssertGitTriggerAttributes(createData, prefix), //}, + { + Config: testGitTriggerBasic(updateData, localName), + Check: testAssertGitTriggerAttributes(updateData, prefix), + }, }, }) }