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

[Bug]: Tests for vapp are not working #407

Closed
valentin-dubreuil opened this issue Jul 24, 2023 · 0 comments · Fixed by #420
Closed

[Bug]: Tests for vapp are not working #407

valentin-dubreuil opened this issue Jul 24, 2023 · 0 comments · Fixed by #420
Labels
bug Something isn't working

Comments

@valentin-dubreuil
Copy link
Contributor

Terraform Core Version

1.3.7

Cloud Avenue Provider Version

/

Affected Resource(s)

No response

Expected Behavior

Tests should be completed fine

Actual Behavior

Tests are failing

Relevant Error/Panic Output Snippet

=== RUN   TestAccACLResource
    acl_resource_test.go:76: Step 1/4 error: Error running pre-apply refresh: exit status 1
        
        Error: Missing required argument
        
          on terraform_plugin_test.tf line 2, in resource "cloudavenue_iam_user" "example":
           2: resource "cloudavenue_iam_user" "example" {
        
        The argument "name" is required, but no definition was found.
        
        Error: Missing required argument
        
          on terraform_plugin_test.tf line 2, in resource "cloudavenue_iam_user" "example":
           2: resource "cloudavenue_iam_user" "example" {
        
        The argument "role_name" is required, but no definition was found.
        
        Error: Unsupported argument
        
          on terraform_plugin_test.tf line 3, in resource "cloudavenue_iam_user" "example":
           3:   user_name   = "exampleuser"
        
        An argument named "user_name" is not expected here.
        
        Error: Unsupported argument
        
          on terraform_plugin_test.tf line 4, in resource "cloudavenue_iam_user" "example":
           4:   description = "An example user"
        
        An argument named "description" is not expected here.
        
        Error: Unsupported argument
        
          on terraform_plugin_test.tf line 5, in resource "cloudavenue_iam_user" "example":
           5:   role        = "Organization Administrator"
        
        An argument named "role" is not expected here.
        
        Error: Invalid resource type
        
          on terraform_plugin_test.tf line 9, in resource "cloudavenue_iam_group" "example":
           9: resource "cloudavenue_iam_group" "example" {
        
        The provider hashicorp/cloudavenue does not support resource type
        "cloudavenue_iam_group".
--- FAIL: TestAccACLResource (0.17s)

=== RUN   TestAccOrgNetworkDataSource - TestAccIsolatedNetworkResource - TestAccVappDataSource - TestAccIsolatedNetworkResource
    org_network_datasource_test.go:67: Step 1/1 error: Error running apply: exit status 1
        
        Error: Error creating vApp
        
          with cloudavenue_vapp.example,
          on terraform_plugin_test.tf line 32, in resource "cloudavenue_vapp" "example":
          32: resource "cloudavenue_vapp" "example" {
        
        error executing task request: error instantiating a new vApp:: API Error:
        400: [ XXXX ] The VMware Cloud Director
        entity MyVapp already exists.

=== RUN   TestAccVappResource
    vapp_resource_test.go:40: Step 1/3 error: Error running pre-apply refresh: exit status 1
        
        Error: Unsupported argument
        
          on terraform_plugin_test.tf line 5, in resource "cloudavenue_vapp" "example":
           5:   power_on = true
        
        An argument named "power_on" is not expected here.
--- FAIL: TestAccVappResource (0.15s)

Terraform Configuration Files

/

Steps to Reproduce

Launch the tests

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

@valentin-dubreuil valentin-dubreuil added the bug Something isn't working label Jul 24, 2023
@azrod azrod linked a pull request Jul 24, 2023 that will close this issue
3 tasks
@azrod azrod removed a link to a pull request Jul 24, 2023
3 tasks
@azrod azrod linked a pull request Jul 25, 2023 that will close this issue
3 tasks
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
1 participant