Skip to content

test without destroy #2480

test without destroy

test without destroy #2480

GitHub Actions / Go Tests failed Dec 8, 2024 in 0s

202 passed, 1 failed and 12 skipped

Tests failed

❌ junit-test-summary.xml

215 tests were completed in 381s with 202 passed, 1 failed and 12 skipped.

Test suite Passed Failed Skipped Time
github.com/OctopusDeploy/terraform-provider-octopusdeploy 0ms
github.com/OctopusDeploy/terraform-provider-octopusdeploy/internal 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 91✅ 10⚪ 381s
github.com/OctopusDeploy/terraform-provider-octopusdeploy/octopusdeploy_framework 96✅ 1❌ 2⚪ 160s
github.com/OctopusDeploy/terraform-provider-octopusdeploy/octopusdeploy_framework/schemas 15✅ 6ms
github.com/OctopusDeploy/terraform-provider-octopusdeploy/octopusdeploy_framework/util 0ms

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

✅ TestAccDataSourceAccounts
✅ TestAccOctopusDeployAzureSubscriptionAccountBasic
✅ TestAccOctopusDeployDeploymentProcessBasic
✅ TestK8sPodAuthTargetResource
✅ TestAccSpaceBasic
✅ TestAccOctopusDeployWindowsServiceFeature
✅ TestFlattenDeploymentActionSlugPackages_EmptyFlattensToNil
⚪ TestAccOctopusDeployDeploymentProcessWithActionTemplate
✅ TestAccDataSourceChannels
✅ TestAccDataSourceSpaces
✅ TestAzureSubscriptionAccountResource
✅ TestKubernetesDeploymentTargetData
✅ TestSshTargetResource
✅ TestAccOctopusDeployManualInterventionAction
✅ TestFlattenDeploymentActionSlugPackages_IgnoresPrimaryPackages_NoPackagesAfterFlattening
✅ TestAccDataSourceProjects
✅ TestAccOctopusDeployAzureWebAppDeploymentTargetBasic
✅ TestAccOctopusDeployDeploymentProcessWithImpliedPrimaryPackage
✅ TestKubernetesDeploymentTargetResource
✅ TestSSHKeyBasic
✅ TestAccOctopusDeployRunKubectlScriptAction
✅ TestFlattenDeploymentActionSlugPackages_IgnoresPrimaryPackages_ArrayFlattensCorrectly
⚪ TestAccListeningTentacleDeploymentTarget
✅ TestAccDataSourceSpaces
✅ TestAzureWebAppTargetResource
✅ TestDeploymentProcessWithGitDependency
✅ TestSshAccountResource
✅ TestExpandRunScriptAction
✅ TestFlattenDeploymentActionSlugPrimaryPackages_NilFlattensToNil
✅ TestAccDataSourceWorkerPools
✅ TestAccOctopusDeployCertificateBasic
✅ TestTerraformApplyStepWithWorkerPool
✅ TestListeningTargetResource
✅ TestAccOctopusDeployStaticWorkerPoolBasic
✅ TestAccRunScriptAction
✅ TestFlattenDeploymentActionSlugPrimaryPackages_EmptyFlattensToNil
⚪ TestAccOctopusDeployDynamicWorkerPoolBasic
✅ TestProvider
✅ TestCertificateResource
✅ TestMachinePolicyResource
✅ TestWorkerPoolResource
✅ TestExpandDeploymentActionContainer
✅ TestFlattenDeploymentActionSlugPrimaryPackages_IgnoresPackages_NoPrimaryPackagesAfterFlattening
✅ TestProvider_impl
✅ TestAccOctopusDeployChannelBasic
✅ TestPackageFeedCreateReleaseTriggerResources
✅ TestOfflineDropTargetResource
✅ TestAccTeamBasic
✅ TestExpandDeploymentActionPackage
✅ TestFlattenDeploymentActionSlugPrimaryPackages_IgnoresPackages_ArrayFlattensCorrectly
⚪ TestAccTeamUserRole
✅ TestAwsAccountExport
✅ TestAccOctopusDeployChannelBasicWithUpdate
✅ TestGcpAccountResource
✅ TestPollingSubscriptionIdResource
✅ TestFlattenDeploymentActionPackage
✅ TestExpandDeploymentAction
⚪ TestAccOctopusDeployChannelWithOneRule
✅ TestAccAWSAccountBasic
✅ TestAccGcpAccountBasic
✅ TestPollingTargetResource
✅ TestTokenAccountBasic
✅ TestExpandDeploymentActionSlugPackages_NilExpandsToNil
✅ TestFlattenDeploymentAction
⚪ TestAccAWSOIDCAccountBasic
⚪ TestAccOctopusDeployChannelWithOneRuleWithUpdate
✅ TestKubernetesAgentWorkerResource
✅ TestProjectTriggerResource
✅ TestTokenAccountResource
✅ TestExpandDeploymentActionSlugPackages_EmptyExpandsToEmpty
✅ TestGetSliceFromTerraformTypeList
⚪ TestAccOctopusDeployChannelWithTwoRules
✅ TestAzureCloudServiceTargetResource
✅ TestAccKubernetesClusterDeploymentTargetBasic
✅ TestAccProjectGroup
✅ TestAccUserRoleBasic
✅ TestExpandDeploymentActionSlugPackages_ArrayExpandsCorrectly
⚪ TestAccOctopusDeployAzureOpenIDConnectAccountBasic
✅ TestProjectChannelResource
✅ TestAccKubernetesClusterDeploymentTargetAws
✅ TestProjectScheduledTriggerResources
✅ TestAccUserRolePermissions
✅ TestExpandDeploymentActionSlugPrimaryPackages_NilExpandsToNil
⚪ TestAccScopedUserRole
✅ TestAzureServiceFabricTargetResource
✅ TestAccCloudRegionDeploymentTargetImportBasic
✅ TestAccKubernetesClusterDeploymentTargetGcp
✅ TestAccOctopusDeployApplyTerraformAction
✅ TestExpandDeploymentActionSlugPrimaryPackages_EmptyExpandsToEmpty
✅ TestAzureAccountResource
✅ TestAccCloudRegionDeploymentTargetBasic
✅ TestK8sTargetResource
✅ TestSpaceResource
✅ TestAccOctopusDeployDeployKubernetesSecretAction
✅ TestExpandDeploymentActionSlugPrimaryPackages_ArrayExpandsCorrectly
✅ TestAccOctopusDeployAzureServicePrincipalAccountBasic
✅ TestCloudRegionTargetResource
✅ TestK8sTargetWithCertResource
✅ TestAccSpaceImportBasic
✅ TestAccOctopusDeployDeployWindowsServiceAction
✅ TestFlattenDeploymentActionSlugPackages_NilFlattensToNil

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

✅ TestAccDataSourceProjectGroups
✅ TestAccOctopusDeployDockerContainerRegistry
✅ TestAccOctopusDeployLibraryVariableSetBasic
✅ TestAccOctopusDeployListeningTentacleWorker
✅ TestProjectTerraformPackageScriptExport
✅ TestTenantVariablesResource
✅ TestVariableSetResource
✅ TestAccDataSourceSpaces
✅ TestDockerFeedResource
✅ TestAccOctopusDeployLibraryVariableSetComplex
✅ TestAccMachineProxyBasic
✅ TestProjectWithScriptActions
✅ TestTenantResource_UpgradeFromSDK_ToPluginFramework
✅ TestVariableResource
⚪ TestRunbookResource_UpgradeFromSDK_ToPluginFramework
✅ TestAccDataSourceTagSets
✅ TestEnvironmentResource_UpgradeFromSDK_ToPluginFramework
✅ TestAccOctopusDeployLibraryVariableSetWithUpdate
✅ TestAccOctopusDeployMavenFeed
✅ TestTenantProjectResource_UpgradeFromSDK_ToPluginFramework
✅ TestSpaceResource_UpgradeFromSDK_ToPluginFramework
✅ TestAccDataSourceSpaces
✅ TestAccDataSourceTenants
✅ TestAccOctopusDeployEnvironmentBasic
✅ TestAccOctopusDeployLibraryVariableSetWithVariable
✅ TestMavenFeedResource
✅ TestRunbookResource
✅ TestAccTenantProjectVariableBasic
✅ TestAccDataSourceUsers
✅ TestAccOctopusDeployEnvironmentMinimum
✅ TestExpandLifecycleWithNil
✅ TestAccOctopusDeployNuGetFeedBasic
✅ TestAccOctopusDeployS3Feed
✅ TestAccTenantBasic
✅ TestAccDataSourceWorkers
✅ TestEnvironmentResource
✅ TestExpandLifecycle
✅ TestNugetFeedResource
✅ TestAccOctopusDeployScriptModuleBasic
✅ TestTenantsResource
✅ TestAccPreCheck
✅ TestAccGenericOidcAccountBasic
✅ TestExpandPhasesWithEmptyInput
✅ TestAccOctopusDeployOCIRegistryFeed
✅ TestScriptModuleResource
✅ TestTentacleCertificateResource
✅ TestGitHubFeed_UpgradeFromSDK_ToPluginFramework
✅ TestGitCredentialBasic
✅ TestExpandPhasesWithNullInput
✅ TestProjectGroupResource
✅ TestAccOctopusDeployServiceAccountOIDCIdentity
✅ TestAccUserImportBasic
✅ TestHelmFeedResource_UpgradeFromSDK_ToPluginFramework
✅ TestGitCredentialsResource
✅ TestExpandPhasesWithUnknownInput
✅ TestAccProjectBasic
✅ TestAccOctopusDeploySSHConnectionWorker
✅ TestAccUserBasic
❌ TestAccOctopusDeployGitTrigger
	=== RUN   TestAccOctopusDeployGitTrigger
✅ TestMavenResource_UpgradeFromSDK_ToPluginFramework
✅ TestExpandAndFlattenPhasesWithSensibleDefaults
✅ TestAccProjectWithUpdate
✅ TestAccOctopusStepTemplateBasic
✅ TestUsersAndTeams
✅ TestArtifactoryGenericFeedResource_UpgradeFromSDK_ToPluginFramework
✅ TestNugetFeed_UpgradeFromSDK_ToPluginFramework
✅ TestGitHubRepositoryFeed
✅ TestExpandAndFlattenMultiplePhasesWithSensibleDefaults
✅ TestProjectResource
✅ TestTagSetAndTag
✅ TestUsernamePasswordAccountResource
✅ TestAccDataSourceScriptModules
✅ TestAccOctopusDeployArtifactoryGenericFeed
✅ TestGithubFeedResource
✅ TestAccLifecycleBasic
✅ TestProjectInSpaceResource
✅ TestTagSetResource
✅ TestAccUsernamePasswordBasic
✅ TestAccDataSourceEnvironments
✅ TestEcrFeedResource
✅ TestAccOctopusDeployGoogleFeed
✅ TestAccLifecycleWithUpdate
✅ TestProjectWithGitUsernameExport
✅ TestExpandTagSet
✅ TestUsernamePasswordVariableResource
✅ TestAccDataSourceFeeds
✅ TestAccOctopusDeployAzureFeed
✅ TestAccOctopusDeployHelmFeed
✅ TestAccLifecycleComplex
✅ TestProjectWithDollarSignsExport
✅ TestAccTag
✅ TestAccUsernamePasswordAccountImport
⚪ TestAccOctopusDeployVariableBasic
✅ TestAccDataSourceLifecycles
✅ TestNewDeploymentFreezeResource
✅ TestHelmFeedResource
✅ TestLifecycleResource
✅ TestProjectTerraformInlineScriptExport
✅ TestAccTenantCommonVariableBasic

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

✅ TestFlattenSelectOptionsWithNilInput
✅ TestExpandVariableScope
✅ TestFlattenVariableScope
✅ TestDatasourceSchemaDefinitionIsUsingCorrectTypes
✅ TestResourceSchemaDefinitionIsUsingCorrectTypes
✅ TestExpandPromptedDisplaySettingsWithNilInput
✅ TestExpandPromptedDisplaySettingsWithEmptyInput
✅ TestExpandPromptedDisplaySettingsWithCheckbox
✅ TestExpandPromptedDisplaySettingsWithSelect
✅ TestExpandPromptedVariableSettingsWithNilInput
✅ TestExpandPromptedVariableSettingsWithEmptyInput
✅ TestExpandSelectOptionsWithNilInput
✅ TestExpandSelectOptionsWithEmptyInput
✅ TestFlattenPromptedVariableDisplaySettingsWithNilInput
✅ TestFlattenPromptedVariableSettingsWithNilInput

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_framework ► TestAccOctopusDeployGitTrigger

Failed test found in:
  junit-test-summary.xml
Error:
  === RUN   TestAccOctopusDeployGitTrigger
Raw output
=== RUN   TestAccOctopusDeployGitTrigger
    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_lifecycles.lifecycle_default_lifecycle: Reading...
        data.octopusdeploy_lifecycles.lifecycle_default_lifecycle: Read complete after 1s [id=Lifecycles 2024-12-08 21:56:10.526102777 +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_1 will be created
          + resource "octopusdeploy_channel" "test_channel_1" {
              + id           = (known after apply)
              + lifecycle_id = "Lifecycles-1"
              + name         = "Test Channel 1"
              + project_id   = (known after apply)
              + space_id     = "Spaces-1"
              + tenant_tags  = (known after apply)
            }
        
          # octopusdeploy_deployment_process.deployment_process_project_noopterraform will be created
          + resource "octopusdeploy_deployment_process" "deployment_process_project_noopterraform" {
              + 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                 = "Git Dependency"
                  + package_requirement  = "LetOctopusDecide"
                  + properties           = (known after apply)
                  + start_trigger        = "StartAfterPrevious"
                  + target_roles         = [
                      + "bread",
                    ]
        
                  + action {
                      + action_type                        = "Octopus.KubernetesDeployRawYaml"
                      + can_be_used_for_project_versioning = false
                      + channels                           = []
                      + condition                          = "Success"
                      + environments                       = []
                      + excluded_environments              = []
                      + features                           = []
                      + id                                 = (known after apply)
                      + is_disabled                        = false
                      + is_required                        = true
                      + name                               = "Git Dependency"
                      + properties                         = {
                          + "Octopus.Action.GitRepository.Source"                            = "External"
                          + "Octopus.Action.Kubernetes.DeploymentTimeout"                    = "180"
                          + "Octopus.Action.Kubernetes.ResourceStatusCheck"                  = "True"
                          + "Octopus.Action.Kubernetes.ServerSideApply.Enabled"              = "True"
                          + "Octopus.Action.Kubernetes.ServerSideApply.ForceConflicts"       = "True"
                          + "Octopus.Action.KubernetesContainers.CustomResourceYamlFileName" = "test"
                          + "Octopus.Action.Script.ScriptSource"                             = "GitRepository"
                        }
                      + run_on_server                      = true
                      + slug                               = (known after apply)
                      + sort_order                         = 1
                      + tenant_tags                        = []
                        # (1 unchanged attribute hidden)
        
                      + action_template (known after apply)
        
                      + container (known after apply)
        
                      + git_dependency {
                          + default_branch      = "main"
                          + file_path_filters   = [
                              + "test",
                            ]
                          + git_credential_id   = "GitCredentials-1"
                          + git_credential_type = "Library"
                          + repository_uri      = "https://github.com/octopus/testing.git"
                        }
        
                      + package (known after apply)
        
                      + primary_package (known after apply)
                    }
                }
            }
        
          # octopusdeploy_project.deploy_frontend_project will be created
          + resource "octopusdeploy_project" "deploy_frontend_project" {
              + auto_create_release                  = false
              + 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-1"
              + name                                 = "Test"
              + project_group_id                     = (known after apply)
              + release_notes_template               = (known after apply)
              + slug                                 = (known after apply)
              + space_id                             = "Spaces-1"
              + 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)
                }
        
              + versioning_strategy {
                  + template = "#{Octopus.Version.LastMajor}.#{Octopus.Version.LastMinor}.#{Octopus.Version.LastPatch}.#{Octopus.Version.NextRevision}"
                }
            }
        
          # 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"
              + space_id    = (known after apply)
            }
        
        Plan: 4 to add, 0 to change, 0 to destroy.
        
        Changes to Outputs:
          + octopus_space_id = "Spaces-1"
        octopusdeploy_project_group.project_group_test: Creating...
        octopusdeploy_project_group.project_group_test: Creation complete after 0s [id=ProjectGroups-2]
        octopusdeploy_project.deploy_frontend_project: Creating...
        octopusdeploy_project.deploy_frontend_project: Creation complete after 1s [id=Projects-1]
        octopusdeploy_channel.test_channel_1: Creating...
        octopusdeploy_deployment_process.deployment_process_project_noopterraform: Creating...
        octopusdeploy_channel.test_channel_1: Creation complete after 0s [id=Channels-2]
        octopusdeploy_deployment_process.deployment_process_project_noopterraform: Creation complete after 1s [id=deploymentprocess-Projects-1]
        
        Warning: Block Deprecated
        
          with octopusdeploy_project.deploy_frontend_project,
          on project.tf line 9, in resource "octopusdeploy_project" "deploy_frontend_project":
           9: resource "octopusdeploy_project" "deploy_frontend_project" {
        
        versioning_strategy is deprecated in favor of resource project_versioning
        strategy
        
        (and 2 more similar warnings elsewhere)
        
        Apply complete! Resources: 4 added, 0 changed, 0 destroyed.
        
        Outputs:
        
        octopus_space_id = "Spaces-1"
        
    resource_git_trigger_test.go:74: Error running post-test destroy, there may be dangling resources: exit status 1
        
        Error: unable to delete Git Trigger 'Spaces-1' with space 'Spaces-1', count of triggers: 1, name: 'GitFilter'
        
        Octopus API error: The resource you requested was not found. [] 
--- FAIL: TestAccOctopusDeployGitTrigger (5.67s)