Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore!: Move from TestMain to Test Suites #695

Open
wants to merge 22 commits into
base: main
Choose a base branch
from

Re skip test

93ecd91
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

Chore!: Move from TestMain to Test Suites #695

Re skip test
93ecd91
Select commit
Loading
Failed to load commit list.
GitHub Actions / Go Tests failed Aug 1, 2024 in 0s

175 passed, 2 failed and 16 skipped

Tests failed

❌ junit-test-summary.xml

193 tests were completed in 517s with 175 passed, 2 failed and 16 skipped.

Test suite Passed Failed Skipped Time
github.com/OctopusDeploy/terraform-provider-octopusdeploy 0ms
github.com/OctopusDeploy/terraform-provider-octopusdeploy/internal/environments 0ms
github.com/OctopusDeploy/terraform-provider-octopusdeploy/internal/errors 0ms
github.com/OctopusDeploy/terraform-provider-octopusdeploy/internal/projects 0ms
github.com/OctopusDeploy/terraform-provider-octopusdeploy/internal/test 0ms
github.com/OctopusDeploy/terraform-provider-octopusdeploy/octopusdeploy 132✅ 2❌ 13⚪ 517s
github.com/OctopusDeploy/terraform-provider-octopusdeploy/octopusdeploy_framework 43✅ 3⚪ 209s
github.com/OctopusDeploy/terraform-provider-octopusdeploy/octopusdeploy_framework/schemas 0ms
github.com/OctopusDeploy/terraform-provider-octopusdeploy/octopusdeploy_framework/util 0ms

❌ github.com/OctopusDeploy/terraform-provider-octopusdeploy/octopusdeploy

❌ TestSdkIntegrationTestSuite/TestVariableResource
	=== RUN   TestSdkIntegrationTestSuite/TestVariableResource
❌ TestSdkIntegrationTestSuite
	=== RUN   TestSdkIntegrationTestSuite
⚪ TestSdkIntegrationTestSuite/TestAccAWSOIDCAccountBasic
⚪ TestSdkIntegrationTestSuite/TestAccListeningTentacleDeploymentTarget
⚪ TestSdkIntegrationTestSuite/TestAccOctopusDeployAzureOpenIDConnectAccountBasic
⚪ TestSdkIntegrationTestSuite/TestAccOctopusDeployChannelWithOneRule
⚪ TestSdkIntegrationTestSuite/TestAccOctopusDeployChannelWithOneRuleWithUpdate
⚪ TestSdkIntegrationTestSuite/TestAccOctopusDeployChannelWithTwoRules
⚪ TestSdkIntegrationTestSuite/TestAccOctopusDeployDeploymentProcessWithActionTemplate
⚪ TestSdkIntegrationTestSuite/TestAccOctopusDeployDynamicWorkerPoolBasic
⚪ TestSdkIntegrationTestSuite/TestAccOctopusDeployTagSetBasic
⚪ TestSdkIntegrationTestSuite/TestAccOctopusDeployVariableBasic
⚪ TestSdkIntegrationTestSuite/TestAccScopedUserRole
⚪ TestSdkIntegrationTestSuite/TestAccTeamUserRole
⚪ TestSdkIntegrationTestSuite/TestTagSetResource
✅ TestProvider
✅ TestProvider_impl
✅ TestExpandRunScriptAction
✅ TestExpandDeploymentActionContainer
✅ TestExpandDeploymentActionPackage
✅ TestFlattenDeploymentActionPackage
✅ TestExpandDeploymentActionSlugPackages_NilExpandsToNil
✅ TestExpandDeploymentActionSlugPackages_EmptyExpandsToEmpty
✅ TestExpandDeploymentActionSlugPackages_ArrayExpandsCorrectly
✅ TestExpandDeploymentActionSlugPrimaryPackages_NilExpandsToNil
✅ TestExpandDeploymentActionSlugPrimaryPackages_EmptyExpandsToEmpty
✅ TestExpandDeploymentActionSlugPrimaryPackages_ArrayExpandsCorrectly
✅ TestFlattenDeploymentActionSlugPackages_NilFlattensToNil
✅ TestFlattenDeploymentActionSlugPackages_EmptyFlattensToNil
✅ TestFlattenDeploymentActionSlugPackages_IgnoresPrimaryPackages_NoPackagesAfterFlattening
✅ TestFlattenDeploymentActionSlugPackages_IgnoresPrimaryPackages_ArrayFlattensCorrectly
✅ TestFlattenDeploymentActionSlugPrimaryPackages_NilFlattensToNil
✅ TestFlattenDeploymentActionSlugPrimaryPackages_EmptyFlattensToNil
✅ TestFlattenDeploymentActionSlugPrimaryPackages_IgnoresPackages_NoPrimaryPackagesAfterFlattening
✅ TestFlattenDeploymentActionSlugPrimaryPackages_IgnoresPackages_ArrayFlattensCorrectly
✅ TestExpandDeploymentAction
✅ TestFlattenDeploymentAction
✅ TestExpandTag
✅ TestFlattenTenant
✅ TestExpandPromptedDisplaySettingsWithNilInput
✅ TestExpandPromptedDisplaySettingsWithEmptyInput
✅ TestExpandPromptedDisplaySettingsWithCheckbox
✅ TestExpandPromptedDisplaySettingsWithSelect
✅ TestExpandPromptedVariableSettingsWithNilInput
✅ TestExpandPromptedVariableSettingsWithEmptyInput
✅ TestExpandSelectOptionsWithNilInput
✅ TestExpandSelectOptionsWithEmptyInput
✅ TestFlattenPromptedVariableDisplaySettingsWithNilInput
✅ TestFlattenPromptedVariableSettingsWithNilInput
✅ TestFlattenSelectOptionsWithNilInput
✅ TestExpandVariableScope
✅ TestFlattenVariableScope
✅ TestSdkIntegrationTestSuite/TestAccAWSAccountBasic
✅ TestSdkIntegrationTestSuite/TestAccCloudRegionDeploymentTargetBasic
✅ TestSdkIntegrationTestSuite/TestAccCloudRegionDeploymentTargetImportBasic
✅ TestSdkIntegrationTestSuite/TestAccDataSourceAccounts
✅ TestSdkIntegrationTestSuite/TestAccDataSourceChannels
✅ TestSdkIntegrationTestSuite/TestAccDataSourceProjects
✅ TestSdkIntegrationTestSuite/TestAccDataSourceScriptModules
✅ TestSdkIntegrationTestSuite/TestAccDataSourceSpaces
✅ TestSdkIntegrationTestSuite/TestAccDataSourceTagSets
✅ TestSdkIntegrationTestSuite/TestAccDataSourceTenants
✅ TestSdkIntegrationTestSuite/TestAccDataSourceUsers
✅ TestSdkIntegrationTestSuite/TestAccDataSourceWorkerPools
✅ TestSdkIntegrationTestSuite/TestAccGcpAccountBasic
✅ TestSdkIntegrationTestSuite/TestAccKubernetesClusterDeploymentTargetAws
✅ TestSdkIntegrationTestSuite/TestAccKubernetesClusterDeploymentTargetBasic
✅ TestSdkIntegrationTestSuite/TestAccKubernetesClusterDeploymentTargetGcp
✅ TestSdkIntegrationTestSuite/TestAccOctopusDeployApplyTerraformAction
✅ TestSdkIntegrationTestSuite/TestAccOctopusDeployAzureServicePrincipalAccountBasic
✅ TestSdkIntegrationTestSuite/TestAccOctopusDeployAzureSubscriptionAccountBasic
✅ TestSdkIntegrationTestSuite/TestAccOctopusDeployAzureWebAppDeploymentTargetBasic
✅ TestSdkIntegrationTestSuite/TestAccOctopusDeployCertificateBasic
✅ TestSdkIntegrationTestSuite/TestAccOctopusDeployChannelBasic
✅ TestSdkIntegrationTestSuite/TestAccOctopusDeployChannelBasicWithUpdate
✅ TestSdkIntegrationTestSuite/TestAccOctopusDeployDeployKubernetesSecretAction
✅ TestSdkIntegrationTestSuite/TestAccOctopusDeployDeployWindowsServiceAction
✅ TestSdkIntegrationTestSuite/TestAccOctopusDeployDeploymentProcessBasic
✅ TestSdkIntegrationTestSuite/TestAccOctopusDeployDeploymentProcessWithImpliedPrimaryPackage
✅ TestSdkIntegrationTestSuite/TestAccOctopusDeployDockerContainerRegistry
✅ TestSdkIntegrationTestSuite/TestAccOctopusDeployManualInterventionAction
✅ TestSdkIntegrationTestSuite/TestAccOctopusDeployRunKubectlScriptAction
✅ TestSdkIntegrationTestSuite/TestAccOctopusDeployScriptModuleBasic
✅ TestSdkIntegrationTestSuite/TestAccOctopusDeployStaticWorkerPoolBasic
✅ TestSdkIntegrationTestSuite/TestAccOctopusDeployWindowsServiceFeature
✅ TestSdkIntegrationTestSuite/TestAccProjectBasic
✅ TestSdkIntegrationTestSuite/TestAccProjectGroup
✅ TestSdkIntegrationTestSuite/TestAccProjectWithUpdate
✅ TestSdkIntegrationTestSuite/TestAccRunScriptAction
✅ TestSdkIntegrationTestSuite/TestAccSpaceBasic
✅ TestSdkIntegrationTestSuite/TestAccSpaceImportBasic
✅ TestSdkIntegrationTestSuite/TestAccTeamBasic
✅ TestSdkIntegrationTestSuite/TestAccTenantBasic
✅ TestSdkIntegrationTestSuite/TestAccUserBasic
✅ TestSdkIntegrationTestSuite/TestAccUserImportBasic
✅ TestSdkIntegrationTestSuite/TestAccUserRoleBasic
✅ TestSdkIntegrationTestSuite/TestAccUserRolePermissions
✅ TestSdkIntegrationTestSuite/TestAccUsernamePasswordBasic
✅ TestSdkIntegrationTestSuite/TestAwsAccountExport
✅ TestSdkIntegrationTestSuite/TestAzureAccountResource
✅ TestSdkIntegrationTestSuite/TestAzureCloudServiceTargetResource
✅ TestSdkIntegrationTestSuite/TestAzureServiceFabricTargetResource
✅ TestSdkIntegrationTestSuite/TestAzureSubscriptionAccountResource
✅ TestSdkIntegrationTestSuite/TestAzureWebAppTargetResource
✅ TestSdkIntegrationTestSuite/TestCertificateResource
✅ TestSdkIntegrationTestSuite/TestCloudRegionTargetResource
✅ TestSdkIntegrationTestSuite/TestDeploymentProcessWithGitDependency
✅ TestSdkIntegrationTestSuite/TestDockerFeedResource
✅ TestSdkIntegrationTestSuite/TestGcpAccountResource
✅ TestSdkIntegrationTestSuite/TestK8sPodAuthTargetResource
✅ TestSdkIntegrationTestSuite/TestK8sTargetResource
✅ TestSdkIntegrationTestSuite/TestK8sTargetWithCertResource
✅ TestSdkIntegrationTestSuite/TestKubernetesDeploymentTargetData
✅ TestSdkIntegrationTestSuite/TestKubernetesDeploymentTargetResource
✅ TestSdkIntegrationTestSuite/TestListeningTargetResource
✅ TestSdkIntegrationTestSuite/TestMachinePolicyResource
✅ TestSdkIntegrationTestSuite/TestOfflineDropTargetResource
✅ TestSdkIntegrationTestSuite/TestPackageFeedCreateReleaseTriggerResources
✅ TestSdkIntegrationTestSuite/TestPollingSubscriptionIdResource
✅ TestSdkIntegrationTestSuite/TestPollingTargetResource
✅ TestSdkIntegrationTestSuite/TestProjectChannelResource
✅ TestSdkIntegrationTestSuite/TestProjectInSpaceResource
✅ TestSdkIntegrationTestSuite/TestProjectResource
✅ TestSdkIntegrationTestSuite/TestProjectScheduledTriggerResources
✅ TestSdkIntegrationTestSuite/TestProjectTerraformInlineScriptExport
✅ TestSdkIntegrationTestSuite/TestProjectTerraformPackageScriptExport
✅ TestSdkIntegrationTestSuite/TestProjectTriggerResource
✅ TestSdkIntegrationTestSuite/TestProjectWithDollarSignsExport
✅ TestSdkIntegrationTestSuite/TestProjectWithGitUsernameExport
✅ TestSdkIntegrationTestSuite/TestProjectWithScriptActions
✅ TestSdkIntegrationTestSuite/TestRunbookResource
✅ TestSdkIntegrationTestSuite/TestSSHKeyBasic
✅ TestSdkIntegrationTestSuite/TestScriptModuleResource
✅ TestSdkIntegrationTestSuite/TestSpaceResource
✅ TestSdkIntegrationTestSuite/TestSshAccountResource
✅ TestSdkIntegrationTestSuite/TestSshTargetResource
✅ TestSdkIntegrationTestSuite/TestTenantsResource
✅ TestSdkIntegrationTestSuite/TestTentacleCertificateResource
✅ TestSdkIntegrationTestSuite/TestTerraformApplyStepWithWorkerPool
✅ TestSdkIntegrationTestSuite/TestTokenAccountBasic
✅ TestSdkIntegrationTestSuite/TestTokenAccountResource
✅ TestSdkIntegrationTestSuite/TestUsernamePasswordAccountResource
✅ TestSdkIntegrationTestSuite/TestUsernamePasswordVariableResource
✅ TestSdkIntegrationTestSuite/TestUsersAndTeams
✅ TestSdkIntegrationTestSuite/TestVariableSetResource
✅ TestSdkIntegrationTestSuite/TestWorkerPoolResource
✅ TestGetSliceFromTerraformTypeList

✅ github.com/OctopusDeploy/terraform-provider-octopusdeploy/octopusdeploy_framework

⚪ TestAccPreCheck
⚪ TestFrameworkIntegrationTestSuite/TestAccTenantCommonVariableBasic
⚪ TestFrameworkIntegrationTestSuite/TestAccTenantProjectVariableBasic
✅ TestExpandLifecycleWithNil
✅ TestExpandPhasesWithEmptyInput
✅ TestExpandPhasesWithNullInput
✅ TestExpandPhasesWithUnknownInput
✅ TestFrameworkIntegrationTestSuite/TestAccDataSourceEnvironments
✅ TestFrameworkIntegrationTestSuite/TestAccDataSourceFeeds
✅ TestFrameworkIntegrationTestSuite/TestAccDataSourceProjectGroups
✅ TestFrameworkIntegrationTestSuite/TestAccLifecycleBasic
✅ TestFrameworkIntegrationTestSuite/TestAccLifecycleComplex
✅ TestFrameworkIntegrationTestSuite/TestAccLifecycleWithUpdate
✅ TestFrameworkIntegrationTestSuite/TestAccOctopusDeployArtifactoryGenericFeed
✅ TestFrameworkIntegrationTestSuite/TestAccOctopusDeployEnvironmentBasic
✅ TestFrameworkIntegrationTestSuite/TestAccOctopusDeployEnvironmentMinimum
✅ TestFrameworkIntegrationTestSuite/TestAccOctopusDeployHelmFeed
✅ TestFrameworkIntegrationTestSuite/TestAccOctopusDeployLibraryVariableSetBasic
✅ TestFrameworkIntegrationTestSuite/TestAccOctopusDeployLibraryVariableSetComplex
✅ TestFrameworkIntegrationTestSuite/TestAccOctopusDeployLibraryVariableSetWithUpdate
✅ TestFrameworkIntegrationTestSuite/TestAccOctopusDeployMavenFeed
✅ TestFrameworkIntegrationTestSuite/TestAccOctopusDeployNuGetFeedBasic
✅ TestFrameworkIntegrationTestSuite/TestArtifactoryGenericFeedResource_UpgradeFromSDK_ToPluginFramework
✅ TestFrameworkIntegrationTestSuite/TestEcrFeedResource
✅ TestFrameworkIntegrationTestSuite/TestEnvironmentResource
✅ TestFrameworkIntegrationTestSuite/TestEnvironmentResource_UpgradeFromSDK_ToPluginFramework
✅ TestFrameworkIntegrationTestSuite/TestExpandAndFlattenMultiplePhasesWithSensibleDefaults
✅ TestFrameworkIntegrationTestSuite/TestExpandAndFlattenPhasesWithSensibleDefaults
✅ TestFrameworkIntegrationTestSuite/TestExpandLifecycle
✅ TestFrameworkIntegrationTestSuite/TestGitCredentialBasic
✅ TestFrameworkIntegrationTestSuite/TestGitCredentialsResource
✅ TestFrameworkIntegrationTestSuite/TestGitHubFeed_UpgradeFromSDK_ToPluginFramework
✅ TestFrameworkIntegrationTestSuite/TestGitHubRepositoryFeed
✅ TestFrameworkIntegrationTestSuite/TestGithubFeedResource
✅ TestFrameworkIntegrationTestSuite/TestHelmFeedResource
✅ TestFrameworkIntegrationTestSuite/TestHelmFeedResource_UpgradeFromSDK_ToPluginFramework
✅ TestFrameworkIntegrationTestSuite/TestLifecycleResource
✅ TestFrameworkIntegrationTestSuite/TestMavenFeedResource
✅ TestFrameworkIntegrationTestSuite/TestMavenResource_UpgradeFromSDK_ToPluginFramework
✅ TestFrameworkIntegrationTestSuite/TestNugetFeedResource
✅ TestFrameworkIntegrationTestSuite/TestNugetFeed_UpgradeFromSDK_ToPluginFramework
✅ TestFrameworkIntegrationTestSuite/TestProjectGroupResource
✅ TestFrameworkIntegrationTestSuite/TestSpaceResource_UpgradeFromSDK_ToPluginFramework
✅ TestFrameworkIntegrationTestSuite/TestTenantProjectResource_UpgradeFromSDK_ToPluginFramework
✅ TestFrameworkIntegrationTestSuite/TestTenantVariablesResource
✅ TestFrameworkIntegrationTestSuite

Annotations

Check failure on line 0 in junit-test-summary.xml

See this annotation in the file changed.

@github-actions github-actions / Go Tests

github.com/OctopusDeploy/terraform-provider-octopusdeploy/octopusdeploy ► TestSdkIntegrationTestSuite/TestVariableResource

Failed test found in:
  junit-test-summary.xml
Error:
  === RUN   TestSdkIntegrationTestSuite/TestVariableResource
Raw output
=== RUN   TestSdkIntegrationTestSuite/TestVariableResource
    octopus_container_test_framework.go:861: POPULATING TEST SPACE 82c7fdb7cd1e4ad98054
    octopus_container_test_framework.go:732: Working dir: /home/runner/work/terraform-provider-octopusdeploy/terraform-provider-octopusdeploy/octopusdeploy
    octopus_container_test_framework.go:638: 
        Warning: Provider development overrides are in effect
        
        The following provider development overrides are set in the CLI
        configuration:
         - octopusdeploylabs/octopusdeploy in /home/runner/work/terraform-provider-octopusdeploy/terraform-provider-octopusdeploy
        
        The behavior may therefore not match any released version of the provider and
        applying changes may cause the state to become incompatible with published
        releases.
        
        Terraform used the selected providers to generate the following execution
        plan. Resource actions are indicated with the following symbols:
          + create
        
        Terraform will perform the following actions:
        
          # octopusdeploy_space.octopus_space_test will be created
          + resource "octopusdeploy_space" "octopus_space_test" {
              + description                 = "TestSdkIntegrationTestSuite/TestVariableResource"
              + id                          = (known after apply)
              + is_default                  = false
              + is_task_queue_stopped       = false
              + name                        = "82c7fdb7cd1e4ad98054"
              + slug                        = (known after apply)
              + space_managers_team_members = (known after apply)
              + space_managers_teams        = [
                  + "teams-administrators",
                ]
            }
        
        Plan: 1 to add, 0 to change, 0 to destroy.
        
        Changes to Outputs:
          + octopus_space_id = (known after apply)
        octopusdeploy_space.octopus_space_test: Creating...
        octopusdeploy_space.octopus_space_test: Creation complete after 0s [id=Spaces-49]
        
        Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
        
        Outputs:
        
        octopus_space_id = "Spaces-49"
        
    octopus_container_test_framework.go:638: 
        Warning: Provider development overrides are in effect
        
        The following provider development overrides are set in the CLI
        configuration:
         - octopusdeploylabs/octopusdeploy in /home/runner/work/terraform-provider-octopusdeploy/terraform-provider-octopusdeploy
        
        The behavior may therefore not match any released version of the provider and
        applying changes may cause the state to become incompatible with published
        releases.
        data.octopusdeploy_machine_policies.default_machine_policy: Reading...
        data.octopusdeploy_lifecycles.lifecycle_default_lifecycle: Reading...
        data.octopusdeploy_machine_policies.default_machine_policy: Read complete after 0s [id=Machine Policies 2024-08-01 00:33:14.98039402 +0000 UTC]
        data.octopusdeploy_lifecycles.lifecycle_default_lifecycle: Read complete after 0s [id=Lifecycles 2024-08-01 00:33:14.982586677 +0000 UTC]
        
        Terraform used the selected providers to generate the following execution
        plan. Resource actions are indicated with the following symbols:
          + create
        
        Terraform will perform the following actions:
        
          # octopusdeploy_channel.test_channel will be created
          + resource "octopusdeploy_channel" "test_channel" {
              + description = "Test Channel"
              + id          = (known after apply)
              + name        = "Test Channel"
              + project_id  = (known after apply)
              + space_id    = (known after apply)
              + tenant_tags = (known after apply)
            }
        
          # octopusdeploy_cloud_region_deployment_target.test_target will be created
          + resource "octopusdeploy_cloud_region_deployment_target" "test_target" {
              + environments                      = (known after apply)
              + has_latest_calamari               = (known after apply)
              + health_status                     = "Healthy"
              + id                                = (known after apply)
              + is_disabled                       = false
              + is_in_process                     = (known after apply)
              + machine_policy_id                 = "MachinePolicies-62"
              + name                              = "Test"
              + operating_system                  = (known after apply)
              + roles                             = [
                  + "cloud",
                ]
              + shell_name                        = "Unknown"
              + shell_version                     = "Unknown"
              + space_id                          = (known after apply)
              + status                            = (known after apply)
              + status_summary                    = (known after apply)
              + tenant_tags                       = []
              + tenanted_deployment_participation = "Untenanted"
              + tenants                           = []
              + thumbprint                        = (known after apply)
              + uri                               = (known after apply)
                # (1 unchanged attribute hidden)
        
              + endpoint (known after apply)
            }
        
          # octopusdeploy_deployment_process.test_deployment_process will be created
          + resource "octopusdeploy_deployment_process" "test_deployment_process" {
              + branch     = (known after apply)
              + id         = (known after apply)
              + project_id = (known after apply)
              + space_id   = (known after apply)
              + version    = (known after apply)
        
              + step {
                  + condition            = "Success"
                  + condition_expression = (known after apply)
                  + id                   = (known after apply)
                  + name                 = "Hello world (using PowerShell)"
                  + package_requirement  = "LetOctopusDecide"
                  + properties           = (known after apply)
                  + start_trigger        = "StartAfterPrevious"
                  + target_roles         = (known after apply)
        
                  + run_script_action {
                      + can_be_used_for_project_versioning = false
                      + channels                           = (known after apply)
                      + condition                          = "Success"
                      + environments                       = (known after apply)
                      + excluded_environments              = (known after apply)
                      + features                           = (known after apply)
                      + id                                 = (known after apply)
                      + is_disabled                        = false
                      + is_required                        = true
                      + name                               = "Hello world (using PowerShell)"
                      + properties                         = (known after apply)
                      + run_on_server                      = true
                      + script_body                        = <<-EOT
                            Write-Host 'Hello world, using PowerShell'
                            #TODO: Experiment with steps of your own :)
                            Write-Host '[Learn more about the types of steps available in Octopus](https://g.octopushq.com/OnboardingAddStepsLearnMore)'
                        EOT
                      + script_source                      = (known after apply)
                      + script_syntax                      = (known after apply)
                      + slug                               = (known after apply)
                      + sort_order                         = -1
                      + tenant_tags                        = (known after apply)
        
                      + action_template (known after apply)
        
                      + container (known after apply)
        
                      + git_dependency (known after apply)
        
                      + package (known after apply)
        
                      + primary_package (known after apply)
                    }
                }
            }
        
          # octopusdeploy_environment.development_environment will be created
          + resource "octopusdeploy_environment" "development_environment" {
              + allow_dynamic_infrastructure = true
              + description                  = "A test environment"
              + id                           = (known after apply)
              + name                         = "Development"
              + slug                         = (known after apply)
              + sort_order                   = (known after apply)
              + space_id                     = (known after apply)
              + use_guided_failure           = false
            }
        
          # octopusdeploy_environment.production_environment will be created
          + resource "octopusdeploy_environment" "production_environment" {
              + allow_dynamic_infrastructure = true
              + description                  = "A test environment"
              + id                           = (known after apply)
              + name                         = "Production"
              + slug                         = (known after apply)
              + sort_order                   = (known after apply)
              + space_id                     = (known after apply)
              + use_guided_failure           = false
            }
        
          # octopusdeploy_environment.test_environment will be created
          + resource "octopusdeploy_environment" "test_environment" {
              + allow_dynamic_infrastructure = true
              + description                  = "A test environment"
              + id                           = (known after apply)
              + name                         = "Test"
              + slug                         = (known after apply)
              + sort_order                   = (known after apply)
              + space_id                     = (known after apply)
              + use_guided_failure           = false
            }
        
          # octopusdeploy_project.test_project will be created
          + resource "octopusdeploy_project" "test_project" {
              + auto_create_release                  = false
              + auto_deploy_release_overrides        = (known after apply)
              + cloned_from_project_id               = (known after apply)
              + default_guided_failure_mode          = "EnvironmentDefault"
              + default_to_skip_if_already_installed = false
              + deployment_changes_template          = (known after apply)
              + deployment_process_id                = (known after apply)
              + description                          = "Test project"
              + discrete_channel_release             = false
              + id                                   = (known after apply)
              + included_library_variable_sets       = []
              + is_disabled                          = false
              + is_discrete_channel_release          = false
              + is_version_controlled                = false
              + lifecycle_id                         = "Lifecycles-63"
              + name                                 = "Test"
              + project_group_id                     = (known after apply)
              + release_notes_template               = (known after apply)
              + slug                                 = (known after apply)
              + space_id                             = "Spaces-49"
              + tenanted_deployment_participation    = "Untenanted"
              + variable_set_id                      = (known after apply)
        
              + connectivity_policy {
                  + allow_deployments_to_no_targets = false
                  + exclude_unhealthy_targets       = false
                  + skip_machine_behavior           = "SkipUnavailableMachines"
                  + target_roles                    = (known after apply)
                }
        
              + release_creation_strategy (known after apply)
        
              + template {
                  + default_value    = "Test"
                  + display_settings = {
                      + "Octopus.ControlType" = "SingleLineText"
                    }
                  + id               = (known after apply)
                  + label            = "Test"
                  + name             = "Project Template Variable"
                }
        
              + versioning_strategy {
                  + donor_package_step_id = (known after apply)
                  + template              = "#{Octopus.Version.LastMajor}.#{Octopus.Version.LastMinor}.#{Octopus.Version.LastPatch}.#{Octopus.Version.NextRevision}"
        
                  + donor_package (known after apply)
                }
            }
        
          # octopusdeploy_project_group.project_group_test will be created
          + resource "octopusdeploy_project_group" "project_group_test" {
              + description         = "Test Description"
              + id                  = (known after apply)
              + name                = "Test"
              + retention_policy_id = (known after apply)
              + space_id            = (known after apply)
            }
        
          # octopusdeploy_variable.scoped_project_variable_action will be created
          + resource "octopusdeploy_variable" "scoped_project_variable_action" {
              + encrypted_value = (known after apply)
              + id              = (known after apply)
              + is_editable     = true
              + is_sensitive    = false
              + key_fingerprint = (known after apply)
              + name            = "ActionScopedVariable"
              + owner_id        = (known after apply)
              + space_id        = (known after apply)
              + type            = "String"
              + value           = "unscoped variable"
        
              + scope {
                  + actions = (known after apply)
                }
            }
        
          # octopusdeploy_variable.scoped_project_variable_channel will be created
          + resource "octopusdeploy_variable" "scoped_project_variable_channel" {
              + encrypted_value = (known after apply)
              + id              = (known after apply)
              + is_editable     = true
              + is_sensitive    = false
              + key_fingerprint = (known after apply)
              + name            = "ChannelScopedVariable"
              + owner_id        = (known after apply)
              + space_id        = (known after apply)
              + type            = "String"
              + value           = "ChannelScopedVariable"
        
              + scope {
                  + channels = (known after apply)
                }
            }
        
          # octopusdeploy_variable.scoped_project_variable_environment will be created
          + resource "octopusdeploy_variable" "scoped_project_variable_environment" {
              + encrypted_value = (known after apply)
              + id              = (known after apply)
              + is_editable     = true
              + is_sensitive    = false
              + key_fingerprint = (known after apply)
              + name            = "EnvironmentScopedVariable"
              + owner_id        = (known after apply)
              + space_id        = (known after apply)
              + type            = "String"
              + value           = "EnvironmentScopedVariable"
        
              + scope {
                  + environments = (known after apply)
                }
            }
        
          # octopusdeploy_variable.scoped_project_variable_machine will be created
          + resource "octopusdeploy_variable" "scoped_project_variable_machine" {
              + encrypted_value = (known after apply)
              + id              = (known after apply)
              + is_editable     = true
              + is_sensitive    = false
              + key_fingerprint = (known after apply)
              + name            = "MachineScopedVariable"
              + owner_id        = (known after apply)
              + space_id        = (known after apply)
              + type            = "String"
              + value           = "MachineScopedVariable"
        
              + scope {
                  + machines = (known after apply)
                }
            }
        
          # octopusdeploy_variable.scoped_project_variable_process will be created
          + resource "octopusdeploy_variable" "scoped_project_variable_process" {
              + encrypted_value = (known after apply)
              + id              = (known after apply)
              + is_editable     = true
              + is_sensitive    = false
              + key_fingerprint = (known after apply)
              + name            = "ProcessScopedVariable"
              + owner_id        = (known after apply)
              + space_id        = (known after apply)
              + type            = "String"
              + value           = "ProcessScopedVariable"
        
              + scope {
                  + processes = (known after apply)
                }
            }
        
          # octopusdeploy_variable.scoped_project_variable_role will be created
          + resource "octopusdeploy_variable" "scoped_project_variable_role" {
              + encrypted_value = (known after apply)
              + id              = (known after apply)
              + is_editable     = true
              + is_sensitive    = false
              + key_fingerprint = (known after apply)
              + name            = "RoleScopedVariable"
              + owner_id        = (known after apply)
              + space_id        = (known after apply)
              + type            = "String"
              + value           = "RoleScopedVariable"
        
              + scope {
                  + roles = [
                      + "role",
                    ]
                }
            }
        
          # octopusdeploy_variable.unscoped_project_variable will be created
          + resource "octopusdeploy_variable" "unscoped_project_variable" {
              + encrypted_value = (known after apply)
              + id              = (known after apply)
              + is_editable     = true
              + is_sensitive    = false
              + key_fingerprint = (known after apply)
              + name            = "UnscopedVariable"
              + owner_id        = (known after apply)
              + space_id        = (known after apply)
              + type            = "String"
              + value           = "UnscopedVariable"
            }
        
        Plan: 15 to add, 0 to change, 0 to destroy.
        
        Changes to Outputs:
          + octopus_space_id = "Spaces-49"
        octopusdeploy_environment.development_environment: Creating...
        octopusdeploy_environment.test_environment: Creating...
        octopusdeploy_environment.production_environment: Creating...
        octopusdeploy_project_group.project_group_test: Creating...
        octopusdeploy_project_group.project_group_test: Creation complete after 0s [id=ProjectGroups-82]
        octopusdeploy_project.test_project: Creating...
        octopusdeploy_environment.production_environment: Creation complete after 0s [id=Environments-53]
        octopusdeploy_environment.test_environment: Creation complete after 0s [id=Environments-54]
        octopusdeploy_environment.development_environment: Creation complete after 0s [id=Environments-55]
        octopusdeploy_cloud_region_deployment_target.test_target: Creating...
        octopusdeploy_cloud_region_deployment_target.test_target: Creation complete after 1s [id=Machines-23]
        octopusdeploy_project.test_project: Creation complete after 1s [id=Projects-33]
        octopusdeploy_deployment_process.test_deployment_process: Creating...
        octopusdeploy_variable.scoped_project_variable_role: Creating...
        octopusdeploy_variable.unscoped_project_variable: Creating...
        octopusdeploy_variable.scoped_project_variable_environment: Creating...
        octopusdeploy_variable.scoped_project_variable_machine: Creating...
        octopusdeploy_variable.scoped_project_variable_machine: Creation complete after 0s [id=e6f50021-2d24-4863-b24d-a0306676bcbd]
        octopusdeploy_deployment_process.test_deployment_process: Creation complete after 0s [id=deploymentprocess-Projects-33]
        octopusdeploy_variable.scoped_project_variable_process: Creating...
        octopusdeploy_channel.test_channel: Creating...
        octopusdeploy_variable.scoped_project_variable_action: Creating...
        octopusdeploy_variable.scoped_project_variable_role: Creation complete after 0s [id=616e8904-d2aa-4831-a0a7-4bf11fdbe39f]
        octopusdeploy_variable.unscoped_project_variable: Creation complete after 0s [id=38a25959-337b-49ed-9d60-bdc0dd923aa3]
        octopusdeploy_variable.scoped_project_variable_environment: Creation complete after 0s [id=47388001-247b-442d-a4ee-c6608dd45d53]
        octopusdeploy_channel.test_channel: Creation complete after 0s [id=Channels-41]
        octopusdeploy_variable.scoped_project_variable_channel: Creating...
        octopusdeploy_variable.scoped_project_variable_process: Creation complete after 1s [id=515515a1-65ff-425f-9d76-c41b32dd1845]
        octopusdeploy_variable.scoped_project_variable_action: Creation complete after 1s [id=6c43ef11-2183-4c3c-8287-25493c6dc68c]
        octopusdeploy_variable.scoped_project_variable_channel: Creation complete after 1s [id=a89d2133-a9d6-49fb-b355-3f7032a84ec1]
        
        Apply complete! Resources: 15 added, 0 changed, 0 destroyed.
        
        Outputs:
        
        octopus_space_id = "Spaces-49"
        
    resource_variable_test.go:323: Expected 7 variables to be created.
--- FAIL: TestSdkIntegrationTestSuite/TestVariableResource (3.39s)

Check failure on line 0 in junit-test-summary.xml

See this annotation in the file changed.

@github-actions github-actions / Go Tests

github.com/OctopusDeploy/terraform-provider-octopusdeploy/octopusdeploy ► TestSdkIntegrationTestSuite

Failed test found in:
  junit-test-summary.xml
Error:
  === RUN   TestSdkIntegrationTestSuite
Raw output
=== RUN   TestSdkIntegrationTestSuite
2024/08/01 00:25:19 Setting up network
2024/08/01 00:25:39 SQL Server IP: 172.18.0.2
2024/08/01 00:25:39 SQL Server Container Name: /mssql-decb663b-030d-4f9d-bf7b-cdecd32fbf0e
2024/08/01 00:25:39 Creating Octopus container
2024/08/01 00:29:19 Finished creating Octopus container
2024/08/01 00:29:19 Octopus IP: 172.18.0.3
2024/08/01 00:29:19 Octopus Container Name: /octopus-e78cdd2b-9b15-4325-b471-20249e188e7f
--- FAIL: TestSdkIntegrationTestSuite (516.93s)