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

terraform-azure-aks-example unit test failure. #1484

Closed
james03160927 opened this issue Dec 9, 2024 · 0 comments · Fixed by #1489
Closed

terraform-azure-aks-example unit test failure. #1484

james03160927 opened this issue Dec 9, 2024 · 0 comments · Fixed by #1489
Assignees
Labels
bug Something isn't working

Comments

@james03160927
Copy link
Contributor

=== RUN   TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:20Z retry.go:91: terraform [init -upgrade=false]
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:20Z logger.go:67: Running command terraform with args [init -upgrade=false]
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:20Z logger.go:67: 
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:20Z logger.go:67: �[0m�[1mInitializing the backend...�[0m
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:20Z logger.go:67: 
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:20Z logger.go:67: �[0m�[1mInitializing provider plugins...�[0m
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:20Z logger.go:67: - Finding latest version of hashicorp/azurerm...
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:20Z logger.go:67: - Finding latest version of hashicorp/local...
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:20Z logger.go:67: - Installing hashicorp/azurerm v4.13.0...
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:22Z logger.go:67: - Installed hashicorp/azurerm v4.13.0 (signed by HashiCorp)
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:22Z logger.go:67: - Installing hashicorp/local v2.5.2...
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:22Z logger.go:67: - Installed hashicorp/local v2.5.2 (signed by HashiCorp)
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:22Z logger.go:67: 
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:22Z logger.go:67: Terraform has created a lock file �[1m.terraform.lock.hcl�[0m to record the provider
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:22Z logger.go:67: selections it made above. Include this file in your version control repository
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:22Z logger.go:67: so that Terraform can guarantee to make the same selections by default when
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:22Z logger.go:67: you run "terraform init" in the future.�[0m
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:22Z logger.go:67: 
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:22Z logger.go:67: �[0m�[1m�[32mTerraform has been successfully initialized!�[0m�[32m�[0m
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:22Z logger.go:67: �[0m�[32m
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:22Z logger.go:67: You may now begin working with Terraform. Try running "terraform plan" to see
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:22Z logger.go:67: any changes that are required for your infrastructure. All Terraform commands
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:22Z logger.go:67: should now work.
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:22Z logger.go:67: 
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:22Z logger.go:67: If you ever set or change modules or backend configuration for Terraform,
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:22Z logger.go:67: rerun this command to reinitialize your working directory. If you forget, other
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:22Z logger.go:67: commands will detect it and remind you to do so if necessary.�[0m
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:22Z retry.go:91: terraform [validate]
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:22Z logger.go:67: Running command terraform with args [validate]
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:24Z logger.go:67: �[31m╷�[0m�[0m
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:24Z logger.go:67: �[31m│�[0m �[0m�[1m�[31mError: �[0m�[0m�[1mUnsupported argument�[0m
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:24Z logger.go:67: �[31m│�[0m �[0m
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:24Z logger.go:67: �[31m│�[0m �[0m�[0m  on main.tf line 61, in resource "azurerm_kubernetes_cluster" "k8s":
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:24Z logger.go:67: �[31m│�[0m �[0m  61:   �[4mautomatic_channel_upgrade�[0m = "stable"�[0m
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:24Z logger.go:67: �[31m│�[0m �[0m
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:24Z logger.go:67: �[31m│�[0m �[0mAn argument named "automatic_channel_upgrade" is not expected here.
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:24Z logger.go:67: �[31m╵�[0m�[0m
TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example 2024-12-07T01:59:24Z retry.go:99: Returning due to fatal error: FatalError{Underlying: error while running command: exit status 1; �[31m╷�[0m�[0m
�[31m│�[0m �[0m�[1m�[31mError: �[0m�[0m�[1mUnsupported argument�[0m
�[31m│�[0m �[0m
�[31m│�[0m �[0m�[0m  on main.tf line 61, in resource "azurerm_kubernetes_cluster" "k8s":
�[31m│�[0m �[0m  61:   �[4mautomatic_channel_upgrade�[0m = "stable"�[0m
�[31m│�[0m �[0m
�[31m│�[0m �[0mAn argument named "automatic_channel_upgrade" is not expected here.
�[31m╵�[0m�[0m}
    validate.go:39: 
        	Error Trace:	/home/circleci/project/modules/terraform/validate.go:39
        	            				/home/circleci/project/modules/test-structure/test_structure.go:163
        	            				/home/circleci/project/modules/test-structure/test_structure.go:223
        	Error:      	Received unexpected error:
        	            	FatalError{Underlying: error while running command: exit status 1; �[31m╷�[0m�[0m
        	            	�[31m│�[0m �[0m�[1m�[31mError: �[0m�[0m�[1mUnsupported argument�[0m
        	            	�[31m│�[0m �[0m
        	            	�[31m│�[0m �[0m�[0m  on main.tf line 61, in resource "azurerm_kubernetes_cluster" "k8s":
        	            	�[31m│�[0m �[0m  61:   �[4mautomatic_channel_upgrade�[0m = "stable"�[0m
        	            	�[31m│�[0m �[0m
        	            	�[31m│�[0m �[0mAn argument named "automatic_channel_upgrade" is not expected here.
        	            	�[31m╵�[0m�[0m}
        	Test:       	TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example
    --- FAIL: TestValidateAllTerraformModulesOnTerratest/tmp/TestValidateAllTerraformModulesOnTerratest171682234/project/examples/azure/terraform-azure-aks-example (3.41s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant