Skip to content

Commit

Permalink
test update
Browse files Browse the repository at this point in the history
  • Loading branch information
lourens-octopus committed Dec 9, 2024
1 parent 47613bb commit fb8c07e
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions octopusdeploy_framework/resource_git_trigger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
},
},
})
}
Expand Down

0 comments on commit fb8c07e

Please sign in to comment.