Skip to content

Add tests for built-in trigger #526

Add tests for built-in trigger

Add tests for built-in trigger #526

GitHub Actions / Go Tests failed Dec 27, 2024 in 1s

204 passed, 1 failed and 12 skipped

Tests failed

❌ junit-test-summary.xml

217 tests were completed in 418s with 204 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⚪ 418s
github.com/OctopusDeploy/terraform-provider-octopusdeploy/octopusdeploy_framework 98✅ 1❌ 2⚪ 158s
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
✅ TestAzureSubscriptionAccountResource
✅ TestKubernetesDeploymentTargetData
✅ TestSshTargetResource
✅ TestAccOctopusDeployManualInterventionAction
✅ TestFlattenDeploymentActionSlugPackages_IgnoresPrimaryPackages_NoPackagesAfterFlattening
✅ TestAccDataSourceProjects
✅ TestAccDataSourceSpaces
✅ 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

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

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

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

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 ► TestAccResourceBuiltInTrigger

Failed test found in:
  junit-test-summary.xml
Error:
  === RUN   TestAccResourceBuiltInTrigger
Raw output
=== RUN   TestAccResourceBuiltInTrigger
    resource_built_in_trigger_test.go:18: Step 1/2 error: After applying this test step, the non-refresh plan was not empty.
        stdout:
        
        
        Terraform used the selected providers to generate the following execution
        plan. Resource actions are indicated with the following symbols:
          ~ update in-place
        
        Terraform will perform the following actions:
        
          # octopusdeploy_deployment_process.test will be updated in-place
          ~ resource "octopusdeploy_deployment_process" "test" {
                id               = "deploymentprocess-Projects-1"
                # (5 unchanged attributes hidden)
        
              ~ step {
                    id                   = "9815f000-e178-4eb4-a173-bce8797fb360"
                    name                 = "Step One"
                    # (7 unchanged attributes hidden)
        
                  ~ run_script_action {
                        id                                 = "fc107cb4-2b5a-43a1-aa3f-be5039505eae"
                        name                               = "Action One"
                      ~ sort_order                         = 1 -> -1
                        # (21 unchanged attributes hidden)
        
                        # (2 unchanged blocks hidden)
                    }
                }
              ~ step {
                    id                   = "4e10a0f1-f055-400e-bfc0-bb59ddf8eb96"
                    name                 = "Step Two"
                    # (7 unchanged attributes hidden)
        
                  ~ run_script_action {
                        id                                 = "a480b2d3-304e-4d15-b174-d1c9caa38e35"
                        name                               = "Action Two"
                      ~ sort_order                         = 1 -> -1
                        # (21 unchanged attributes hidden)
        
                        # (2 unchanged blocks hidden)
                    }
                }
            }
        
        Plan: 0 to add, 1 to change, 0 to destroy.
--- FAIL: TestAccResourceBuiltInTrigger (6.54s)