From 2806290092a6638ef6d12a8ee158217f4130d867 Mon Sep 17 00:00:00 2001 From: Ben Pearce Date: Mon, 2 Dec 2024 16:25:36 +1000 Subject: [PATCH] test for fixing test --- .../resource_deployment_freeze_test.go | 30 ++----------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/octopusdeploy_framework/resource_deployment_freeze_test.go b/octopusdeploy_framework/resource_deployment_freeze_test.go index b2a62f77..6cd3236d 100644 --- a/octopusdeploy_framework/resource_deployment_freeze_test.go +++ b/octopusdeploy_framework/resource_deployment_freeze_test.go @@ -50,42 +50,16 @@ func TestNewDeploymentFreezeResource(t *testing.T) { func testDeploymentFreezeBasic(localName string, freezeName string, start string, end string, spaceName string, environmentName string, projectName string, projectGroupName string, lifecycleName string) string { spaceLocalName := fmt.Sprintf("space_%s", localName) - projectScopeLocalName := fmt.Sprintf("project_scope_%s", localName) - projectLocalName := fmt.Sprintf("project_%s", localName) - lifecycleLocalName := fmt.Sprintf("lifecycle_%s", localName) - projectGroupLocalName := fmt.Sprintf("project_group_%s", localName) - environmentLocalName := fmt.Sprintf("environment_%s", localName) - - projectScopes := fmt.Sprintf(`resource "octopusdeploy_deployment_freeze_project" "%s" { - deploymentfreeze_id = octopusdeploy_deployment_freeze.%s.id - project_id = octopusdeploy_project.%s.id - environment_ids = [ %s ] - }`, projectScopeLocalName, localName, projectLocalName, fmt.Sprintf("octopusdeploy_environment.%s.id", environmentLocalName)) return fmt.Sprintf(` %s - %s - - %s - - %s - - %s - resource "octopusdeploy_deployment_freeze" "%s" { name = "%s" start = "%s" end = "%s" - } - - %s`, - createSpace(spaceLocalName, spaceName), - createEnvironment(spaceLocalName, environmentLocalName, environmentName), - createLifecycle(spaceLocalName, lifecycleLocalName, lifecycleName), - createProjectGroup(spaceLocalName, projectGroupLocalName, projectGroupName), - createProject(spaceLocalName, projectLocalName, projectName, lifecycleLocalName, projectGroupLocalName), - localName, freezeName, start, end, projectScopes) + }`, + createSpace(spaceLocalName, spaceName), localName, freezeName, start, end) } //func testDeploymentFreezeBasic(localName string, freezeName string, start string, end string, spaceName string, environments []string, projectName string, projectGroupName string, lifecycleName string) string {