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

V1.2.0 fix testacc #241

Merged
merged 3 commits into from
Jan 27, 2021
Merged

V1.2.0 fix testacc #241

merged 3 commits into from
Jan 27, 2021

Conversation

marinsalinas
Copy link
Contributor

Here is the current output for the testing over the current version of prism.

==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test $(go list ./... |grep -v 'vendor' |grep -v 'utils') -v  -timeout 120m -coverprofile c.out
?   	github.com/terraform-providers/terraform-provider-nutanix	[no test files]
=== RUN   TestNewClient
--- PASS: TestNewClient (0.00s)
=== RUN   TestNewRequest
--- PASS: TestNewRequest (0.00s)
=== RUN   TestErrorResponse_Error
--- PASS: TestErrorResponse_Error (0.00s)
=== RUN   TestGetResponse
--- PASS: TestGetResponse (0.00s)
=== RUN   TestCheckResponse
--- PASS: TestCheckResponse (0.00s)
=== RUN   TestDo
--- PASS: TestDo (0.00s)
=== RUN   TestDo_httpError
--- PASS: TestDo_httpError (0.00s)
=== RUN   TestDo_redirectLoop
--- PASS: TestDo_redirectLoop (0.00s)
=== RUN   TestClient_NewRequest
--- PASS: TestClient_NewRequest (0.00s)
=== RUN   TestClient_NewUploadRequest
--- PASS: TestClient_NewUploadRequest (0.00s)
=== RUN   TestClient_OnRequestCompleted
--- PASS: TestClient_OnRequestCompleted (0.00s)
=== RUN   TestClient_Do
--- PASS: TestClient_Do (0.00s)
=== RUN   Test_fillStruct
--- PASS: Test_fillStruct (0.00s)
PASS
coverage: 54.8% of statements
ok  	github.com/terraform-providers/terraform-provider-nutanix/client	0.343s	coverage: 54.8% of statements
=== RUN   TestOperations_CreateVM
=== RUN   TestOperations_CreateVM/Test_CreateVM
--- PASS: TestOperations_CreateVM (0.00s)
    --- PASS: TestOperations_CreateVM/Test_CreateVM (0.00s)
=== RUN   TestOperations_DeleteVM
=== RUN   TestOperations_DeleteVM/Test_DeleteVM_OK
=== RUN   TestOperations_DeleteVM/Test_DeleteVM_Errored
--- PASS: TestOperations_DeleteVM (0.00s)
    --- PASS: TestOperations_DeleteVM/Test_DeleteVM_OK (0.00s)
    --- PASS: TestOperations_DeleteVM/Test_DeleteVM_Errored (0.00s)
=== RUN   TestOperations_GetVM
=== RUN   TestOperations_GetVM/Test_GetVM_OK
--- PASS: TestOperations_GetVM (0.00s)
    --- PASS: TestOperations_GetVM/Test_GetVM_OK (0.00s)
=== RUN   TestOperations_ListVM
=== RUN   TestOperations_ListVM/Test_ListVM_OK
--- PASS: TestOperations_ListVM (0.00s)
    --- PASS: TestOperations_ListVM/Test_ListVM_OK (0.00s)
=== RUN   TestOperations_UpdateVM
=== RUN   TestOperations_UpdateVM/Test_UpdateVM
--- PASS: TestOperations_UpdateVM (0.00s)
    --- PASS: TestOperations_UpdateVM/Test_UpdateVM (0.00s)
=== RUN   TestOperations_CreateSubnet
=== RUN   TestOperations_CreateSubnet/Test_CreateSubnet
--- PASS: TestOperations_CreateSubnet (0.00s)
    --- PASS: TestOperations_CreateSubnet/Test_CreateSubnet (0.00s)
=== RUN   TestOperations_DeleteSubnet
=== RUN   TestOperations_DeleteSubnet/Test_DeleteSubnet_OK
=== RUN   TestOperations_DeleteSubnet/Test_DeleteSubnet_Errored
--- PASS: TestOperations_DeleteSubnet (0.00s)
    --- PASS: TestOperations_DeleteSubnet/Test_DeleteSubnet_OK (0.00s)
    --- PASS: TestOperations_DeleteSubnet/Test_DeleteSubnet_Errored (0.00s)
=== RUN   TestOperations_GetSubnet
=== RUN   TestOperations_GetSubnet/Test_GetSubnet_OK
--- PASS: TestOperations_GetSubnet (0.00s)
    --- PASS: TestOperations_GetSubnet/Test_GetSubnet_OK (0.00s)
=== RUN   TestOperations_ListSubnet
=== RUN   TestOperations_ListSubnet/Test_ListSubnet_OK
--- PASS: TestOperations_ListSubnet (0.00s)
    --- PASS: TestOperations_ListSubnet/Test_ListSubnet_OK (0.00s)
=== RUN   TestOperations_UpdateSubnet
=== RUN   TestOperations_UpdateSubnet/Test_UpdateSubnet
--- PASS: TestOperations_UpdateSubnet (0.00s)
    --- PASS: TestOperations_UpdateSubnet/Test_UpdateSubnet (0.00s)
=== RUN   TestOperations_CreateImage
=== RUN   TestOperations_CreateImage/Test_CreateImage
--- PASS: TestOperations_CreateImage (0.00s)
    --- PASS: TestOperations_CreateImage/Test_CreateImage (0.00s)
=== RUN   TestOperations_UploadImageError
=== RUN   TestOperations_UploadImageError/Test_UploadImage_ERROR_(Cannot_Open_File)
--- PASS: TestOperations_UploadImageError (0.00s)
    --- PASS: TestOperations_UploadImageError/Test_UploadImage_ERROR_(Cannot_Open_File) (0.00s)
=== RUN   TestOperations_UploadImage
=== RUN   TestOperations_UploadImage/TestOperations_UploadImage_Upload_Image
--- PASS: TestOperations_UploadImage (0.00s)
    --- PASS: TestOperations_UploadImage/TestOperations_UploadImage_Upload_Image (0.00s)
=== RUN   TestOperations_DeleteImage
=== RUN   TestOperations_DeleteImage/Test_DeleteImage_OK
=== RUN   TestOperations_DeleteImage/Test_DeleteImage_Errored
--- PASS: TestOperations_DeleteImage (0.00s)
    --- PASS: TestOperations_DeleteImage/Test_DeleteImage_OK (0.00s)
    --- PASS: TestOperations_DeleteImage/Test_DeleteImage_Errored (0.00s)
=== RUN   TestOperations_GetImage
=== RUN   TestOperations_GetImage/Test_GetImage_OK
--- PASS: TestOperations_GetImage (0.00s)
    --- PASS: TestOperations_GetImage/Test_GetImage_OK (0.00s)
=== RUN   TestOperations_ListImage
=== RUN   TestOperations_ListImage/Test_ListImage_OK
--- PASS: TestOperations_ListImage (0.00s)
    --- PASS: TestOperations_ListImage/Test_ListImage_OK (0.00s)
=== RUN   TestOperations_UpdateImage
=== RUN   TestOperations_UpdateImage/Test_UpdateVM
--- PASS: TestOperations_UpdateImage (0.00s)
    --- PASS: TestOperations_UpdateImage/Test_UpdateVM (0.00s)
=== RUN   TestOperations_GetCluster
=== RUN   TestOperations_GetCluster/Test_GetCluster_OK
--- PASS: TestOperations_GetCluster (0.00s)
    --- PASS: TestOperations_GetCluster/Test_GetCluster_OK (0.00s)
=== RUN   TestOperations_ListCluster
=== RUN   TestOperations_ListCluster/Test_ListCLusters_OK
--- PASS: TestOperations_ListCluster (0.00s)
    --- PASS: TestOperations_ListCluster/Test_ListCLusters_OK (0.00s)
=== RUN   TestOperations_CreateOrUpdateCategoryKey
=== RUN   TestOperations_CreateOrUpdateCategoryKey/Test_CreateOrUpdateCaegoryKey_OK
--- PASS: TestOperations_CreateOrUpdateCategoryKey (0.00s)
    --- PASS: TestOperations_CreateOrUpdateCategoryKey/Test_CreateOrUpdateCaegoryKey_OK (0.00s)
=== RUN   TestOperations_ListCategories
=== RUN   TestOperations_ListCategories/Test_ListCategoryKey_OK
--- PASS: TestOperations_ListCategories (0.00s)
    --- PASS: TestOperations_ListCategories/Test_ListCategoryKey_OK (0.00s)
=== RUN   TestOperations_DeleteCategoryKey
=== RUN   TestOperations_DeleteCategoryKey/Test_DeleteSubnet_OK
=== RUN   TestOperations_DeleteCategoryKey/Test_SubnetVM_Errored
--- PASS: TestOperations_DeleteCategoryKey (0.00s)
    --- PASS: TestOperations_DeleteCategoryKey/Test_DeleteSubnet_OK (0.00s)
    --- PASS: TestOperations_DeleteCategoryKey/Test_SubnetVM_Errored (0.00s)
=== RUN   TestOperations_GetCategoryKey
=== RUN   TestOperations_GetCategoryKey/Test_GetCategory_OK
--- PASS: TestOperations_GetCategoryKey (0.00s)
    --- PASS: TestOperations_GetCategoryKey/Test_GetCategory_OK (0.00s)
=== RUN   TestOperations_ListCategoryValues
=== RUN   TestOperations_ListCategoryValues/Test_ListCategoryKey_OK
--- PASS: TestOperations_ListCategoryValues (0.00s)
    --- PASS: TestOperations_ListCategoryValues/Test_ListCategoryKey_OK (0.00s)
=== RUN   TestOperations_CreateOrUpdateCategoryValue
=== RUN   TestOperations_CreateOrUpdateCategoryValue/Test_CreateOrUpdateCategoryValue_OK
--- PASS: TestOperations_CreateOrUpdateCategoryValue (0.00s)
    --- PASS: TestOperations_CreateOrUpdateCategoryValue/Test_CreateOrUpdateCategoryValue_OK (0.00s)
=== RUN   TestOperations_GetCategoryValue
=== RUN   TestOperations_GetCategoryValue/Test_GetCategoryValue_OK
--- PASS: TestOperations_GetCategoryValue (0.00s)
    --- PASS: TestOperations_GetCategoryValue/Test_GetCategoryValue_OK (0.00s)
=== RUN   TestOperations_DeleteCategoryValue
=== RUN   TestOperations_DeleteCategoryValue/Test_DeleteSubnet_OK
=== RUN   TestOperations_DeleteCategoryValue/Test_SubnetVM_Errored
--- PASS: TestOperations_DeleteCategoryValue (0.00s)
    --- PASS: TestOperations_DeleteCategoryValue/Test_DeleteSubnet_OK (0.00s)
    --- PASS: TestOperations_DeleteCategoryValue/Test_SubnetVM_Errored (0.00s)
=== RUN   TestOperations_GetCategoryQuery
=== RUN   TestOperations_GetCategoryQuery/Test_Category_Query_OK
--- PASS: TestOperations_GetCategoryQuery (0.00s)
    --- PASS: TestOperations_GetCategoryQuery/Test_Category_Query_OK (0.00s)
=== RUN   TestOperations_CreateNetworkSecurityRule
=== RUN   TestOperations_CreateNetworkSecurityRule/Test_CreateNetwork
--- PASS: TestOperations_CreateNetworkSecurityRule (0.00s)
    --- PASS: TestOperations_CreateNetworkSecurityRule/Test_CreateNetwork (0.00s)
=== RUN   TestOperations_DeleteNetworkSecurityRule
=== RUN   TestOperations_DeleteNetworkSecurityRule/Test_DeleteNetwork_OK
=== RUN   TestOperations_DeleteNetworkSecurityRule/Test_DeleteNetowork_Errored
--- PASS: TestOperations_DeleteNetworkSecurityRule (0.00s)
    --- PASS: TestOperations_DeleteNetworkSecurityRule/Test_DeleteNetwork_OK (0.00s)
    --- PASS: TestOperations_DeleteNetworkSecurityRule/Test_DeleteNetowork_Errored (0.00s)
=== RUN   TestOperations_GetNetworkSecurityRule
=== RUN   TestOperations_GetNetworkSecurityRule/Test_GetNetworkSecurityRule_OK
--- PASS: TestOperations_GetNetworkSecurityRule (0.00s)
    --- PASS: TestOperations_GetNetworkSecurityRule/Test_GetNetworkSecurityRule_OK (0.00s)
=== RUN   TestOperations_ListNetworkSecurityRule
=== RUN   TestOperations_ListNetworkSecurityRule/Test_ListNetwork_OK
--- PASS: TestOperations_ListNetworkSecurityRule (0.00s)
    --- PASS: TestOperations_ListNetworkSecurityRule/Test_ListNetwork_OK (0.00s)
=== RUN   TestOperations_UpdateNetworkSecurityRule
=== RUN   TestOperations_UpdateNetworkSecurityRule/Test_UpdateNetwork
--- PASS: TestOperations_UpdateNetworkSecurityRule (0.00s)
    --- PASS: TestOperations_UpdateNetworkSecurityRule/Test_UpdateNetwork (0.00s)
=== RUN   TestOperations_CreateVolumeGroup
=== RUN   TestOperations_CreateVolumeGroup/Test_CreateVolumeGroup
--- PASS: TestOperations_CreateVolumeGroup (0.00s)
    --- PASS: TestOperations_CreateVolumeGroup/Test_CreateVolumeGroup (0.00s)
=== RUN   TestOperations_DeleteVolumeGroup
=== RUN   TestOperations_DeleteVolumeGroup/Test_DeleteVolumeGroup_OK
=== RUN   TestOperations_DeleteVolumeGroup/Test_DeleteVolumeGroup_Errored
--- PASS: TestOperations_DeleteVolumeGroup (0.00s)
    --- PASS: TestOperations_DeleteVolumeGroup/Test_DeleteVolumeGroup_OK (0.00s)
    --- PASS: TestOperations_DeleteVolumeGroup/Test_DeleteVolumeGroup_Errored (0.00s)
=== RUN   TestOperations_GetVolumeGroup
=== RUN   TestOperations_GetVolumeGroup/Test_GetVolumeGroup_OK
--- PASS: TestOperations_GetVolumeGroup (0.00s)
    --- PASS: TestOperations_GetVolumeGroup/Test_GetVolumeGroup_OK (0.00s)
=== RUN   TestOperations_ListVolumeGroup
=== RUN   TestOperations_ListVolumeGroup/Test_ListVolumeGroup_OK
--- PASS: TestOperations_ListVolumeGroup (0.00s)
    --- PASS: TestOperations_ListVolumeGroup/Test_ListVolumeGroup_OK (0.00s)
=== RUN   TestOperations_UpdateVolumeGroup
=== RUN   TestOperations_UpdateVolumeGroup/Test_UpdateVolumeGroup
--- PASS: TestOperations_UpdateVolumeGroup (0.00s)
    --- PASS: TestOperations_UpdateVolumeGroup/Test_UpdateVolumeGroup (0.00s)
=== RUN   TestOperations_GetHost
=== RUN   TestOperations_GetHost/Test_GetHost_OK
--- PASS: TestOperations_GetHost (0.00s)
    --- PASS: TestOperations_GetHost/Test_GetHost_OK (0.00s)
=== RUN   TestOperations_ListHost
=== RUN   TestOperations_ListHost/Test_ListSubnet_OK
--- PASS: TestOperations_ListHost (0.00s)
    --- PASS: TestOperations_ListHost/Test_ListSubnet_OK (0.00s)
=== RUN   TestOperations_CreateProject
=== RUN   TestOperations_CreateProject/Test_CreateProject
--- PASS: TestOperations_CreateProject (0.00s)
    --- PASS: TestOperations_CreateProject/Test_CreateProject (0.00s)
=== RUN   TestOperations_GetProject
=== RUN   TestOperations_GetProject/Test_GetProject_OK
--- PASS: TestOperations_GetProject (0.00s)
    --- PASS: TestOperations_GetProject/Test_GetProject_OK (0.00s)
=== RUN   TestOperations_ListProject
=== RUN   TestOperations_ListProject/Test_ListSubnet_OK
--- PASS: TestOperations_ListProject (0.00s)
    --- PASS: TestOperations_ListProject/Test_ListSubnet_OK (0.00s)
=== RUN   TestOperations_UpdateProject
=== RUN   TestOperations_UpdateProject/Test_CreateProject
--- PASS: TestOperations_UpdateProject (0.00s)
    --- PASS: TestOperations_UpdateProject/Test_CreateProject (0.00s)
=== RUN   TestOperations_DeleteProject
=== RUN   TestOperations_DeleteProject/Test_DeleteProject_OK
=== RUN   TestOperations_DeleteProject/Test_DeleteProject_Errored
--- PASS: TestOperations_DeleteProject (0.00s)
    --- PASS: TestOperations_DeleteProject/Test_DeleteProject_OK (0.00s)
    --- PASS: TestOperations_DeleteProject/Test_DeleteProject_Errored (0.00s)
=== RUN   TestOperations_CreateAccessControlPolicy
=== RUN   TestOperations_CreateAccessControlPolicy/Test_CreateAccessControlPolicy
--- PASS: TestOperations_CreateAccessControlPolicy (0.00s)
    --- PASS: TestOperations_CreateAccessControlPolicy/Test_CreateAccessControlPolicy (0.00s)
=== RUN   TestOperations_GetAccessControlPolicy
=== RUN   TestOperations_GetAccessControlPolicy/Test_GetAccessControlPolicy_OK
--- PASS: TestOperations_GetAccessControlPolicy (0.00s)
    --- PASS: TestOperations_GetAccessControlPolicy/Test_GetAccessControlPolicy_OK (0.00s)
=== RUN   TestOperations_ListAccessControlPolicy
=== RUN   TestOperations_ListAccessControlPolicy/Test_ListSubnet_OK
--- PASS: TestOperations_ListAccessControlPolicy (0.00s)
    --- PASS: TestOperations_ListAccessControlPolicy/Test_ListSubnet_OK (0.00s)
=== RUN   TestOperations_UpdateAccessControlPolicy
=== RUN   TestOperations_UpdateAccessControlPolicy/Test_CreateAccessControlPolicy
--- PASS: TestOperations_UpdateAccessControlPolicy (0.00s)
    --- PASS: TestOperations_UpdateAccessControlPolicy/Test_CreateAccessControlPolicy (0.00s)
=== RUN   TestOperations_DeleteAccessControlPolicy
=== RUN   TestOperations_DeleteAccessControlPolicy/Test_DeleteAccessControlPolicy_OK
=== RUN   TestOperations_DeleteAccessControlPolicy/Test_DeleteAccessControlPolicy_Errored
--- PASS: TestOperations_DeleteAccessControlPolicy (0.00s)
    --- PASS: TestOperations_DeleteAccessControlPolicy/Test_DeleteAccessControlPolicy_OK (0.00s)
    --- PASS: TestOperations_DeleteAccessControlPolicy/Test_DeleteAccessControlPolicy_Errored (0.00s)
=== RUN   TestOperations_CreateRole
=== RUN   TestOperations_CreateRole/Test_CreateRole
--- PASS: TestOperations_CreateRole (0.00s)
    --- PASS: TestOperations_CreateRole/Test_CreateRole (0.00s)
=== RUN   TestOperations_GetRole
=== RUN   TestOperations_GetRole/Test_GetRole_OK
--- PASS: TestOperations_GetRole (0.00s)
    --- PASS: TestOperations_GetRole/Test_GetRole_OK (0.00s)
=== RUN   TestOperations_ListRole
=== RUN   TestOperations_ListRole/Test_ListSubnet_OK
--- PASS: TestOperations_ListRole (0.00s)
    --- PASS: TestOperations_ListRole/Test_ListSubnet_OK (0.00s)
=== RUN   TestOperations_UpdateRole
=== RUN   TestOperations_UpdateRole/Test_CreateRole
--- PASS: TestOperations_UpdateRole (0.00s)
    --- PASS: TestOperations_UpdateRole/Test_CreateRole (0.00s)
=== RUN   TestOperations_DeleteRole
=== RUN   TestOperations_DeleteRole/Test_DeleteRole_OK
=== RUN   TestOperations_DeleteRole/Test_DeleteRole_Errored
--- PASS: TestOperations_DeleteRole (0.00s)
    --- PASS: TestOperations_DeleteRole/Test_DeleteRole_OK (0.00s)
    --- PASS: TestOperations_DeleteRole/Test_DeleteRole_Errored (0.00s)
=== RUN   TestOperations_CreateUser
=== RUN   TestOperations_CreateUser/Test_CreateUser
--- PASS: TestOperations_CreateUser (0.00s)
    --- PASS: TestOperations_CreateUser/Test_CreateUser (0.00s)
=== RUN   TestOperations_GetUser
=== RUN   TestOperations_GetUser/Test_GetUser_OK
--- PASS: TestOperations_GetUser (0.00s)
    --- PASS: TestOperations_GetUser/Test_GetUser_OK (0.00s)
=== RUN   TestOperations_ListUser
=== RUN   TestOperations_ListUser/Test_ListUser_OK
--- PASS: TestOperations_ListUser (0.00s)
    --- PASS: TestOperations_ListUser/Test_ListUser_OK (0.00s)
=== RUN   TestOperations_UpdateUser
=== RUN   TestOperations_UpdateUser/Test_CreateUser
--- PASS: TestOperations_UpdateUser (0.00s)
    --- PASS: TestOperations_UpdateUser/Test_CreateUser (0.00s)
=== RUN   TestOperations_DeleteUser
=== RUN   TestOperations_DeleteUser/Test_DeleteUser_OK
=== RUN   TestOperations_DeleteUser/Test_DeleteUser_Errored
--- PASS: TestOperations_DeleteUser (0.00s)
    --- PASS: TestOperations_DeleteUser/Test_DeleteUser_OK (0.00s)
    --- PASS: TestOperations_DeleteUser/Test_DeleteUser_Errored (0.00s)
=== RUN   TestNewV3Client
=== RUN   TestNewV3Client/test_one
=== RUN   TestNewV3Client/test_one#01
--- PASS: TestNewV3Client (0.00s)
    --- PASS: TestNewV3Client/test_one (0.00s)
    --- PASS: TestNewV3Client/test_one#01 (0.00s)
PASS
coverage: 54.2% of statements
ok  	github.com/terraform-providers/terraform-provider-nutanix/client/v3	0.495s	coverage: 54.2% of statements
=== RUN   TestResourceNutanixCategoriesteUpgradeV0
2021/01/26 09:26:32 [DEBUG] meta: <nil>
2021/01/26 09:26:32 [DEBUG] Attributes before migration: map[string]interface {}{"categories":[]interface {}{map[string]interface {}{"name":"os_type", "value":"ubuntu"}, map[string]interface {}{"name":"os_version", "value":"18.04"}, map[string]interface {}{"name":"tier", "value":"application"}}}
2021/01/26 09:26:32 [DEBUG] Attributes after migration: map[string]interface {}{"categories":[]interface {}{map[string]interface {}{"name":"os_type", "value":"ubuntu"}, map[string]interface {}{"name":"os_version", "value":"18.04"}, map[string]interface {}{"name":"tier", "value":"application"}}}
2021/01/26 09:26:32 [DEBUG] meta: <nil>
2021/01/26 09:26:32 [DEBUG] Attributes before migration: map[string]interface {}{"categories":map[string]interface {}{"os_type":"", "os_version":"", "test":"", "tier":""}}
2021/01/26 09:26:32 [DEBUG] Attributes after migration: map[string]interface {}{"categories":[]interface {}{map[string]interface {}{"name":"os_type", "value":""}, map[string]interface {}{"name":"os_version", "value":""}, map[string]interface {}{"name":"test", "value":""}, map[string]interface {}{"name":"tier", "value":""}}}
2021/01/26 09:26:32 [DEBUG] meta: <nil>
2021/01/26 09:26:32 [DEBUG] Attributes before migration: map[string]interface {}{"categories":map[string]interface {}{}}
2021/01/26 09:26:32 [DEBUG] Attributes after migration: map[string]interface {}{"categories":[]interface {}{}}
2021/01/26 09:26:32 [DEBUG] meta: <nil>
2021/01/26 09:26:32 [DEBUG] Attributes before migration: map[string]interface {}{"categories":map[string]interface {}{"os_type":"ubuntu", "os_version":"18.04"}}
2021/01/26 09:26:32 [DEBUG] Attributes after migration: map[string]interface {}{"categories":[]interface {}{map[string]interface {}{"name":"os_type", "value":"ubuntu"}, map[string]interface {}{"name":"os_version", "value":"18.04"}}}
2021/01/26 09:26:32 [DEBUG] meta: <nil>
2021/01/26 09:26:32 [DEBUG] Attributes before migration: map[string]interface {}{"name":"test-name"}
2021/01/26 09:26:32 [DEBUG] Attributes after migration: map[string]interface {}{"name":"test-name"}
2021/01/26 09:26:32 [DEBUG] meta: <nil>
2021/01/26 09:26:32 [DEBUG] Attributes before migration: map[string]interface {}{"categories":map[string]interface {}{"os_type":"ubuntu", "os_version":"18.04", "test":"test-value", "tier":"application"}}
2021/01/26 09:26:32 [DEBUG] Attributes after migration: map[string]interface {}{"categories":[]interface {}{map[string]interface {}{"name":"os_type", "value":"ubuntu"}, map[string]interface {}{"name":"os_version", "value":"18.04"}, map[string]interface {}{"name":"test", "value":"test-value"}, map[string]interface {}{"name":"tier", "value":"application"}}}
--- PASS: TestResourceNutanixCategoriesteUpgradeV0 (0.00s)
=== RUN   TestConfig_Client
=== RUN   TestConfig_Client/new_client
--- PASS: TestConfig_Client (0.00s)
    --- PASS: TestConfig_Client/new_client (0.00s)
=== RUN   TestAccNutanixAccessControlPoliciesDataSource_basic
--- PASS: TestAccNutanixAccessControlPoliciesDataSource_basic (5.05s)
=== RUN   TestAccNutanixAccessControlPolicyDataSource_basic
--- PASS: TestAccNutanixAccessControlPolicyDataSource_basic (46.41s)
=== RUN   TestAccNutanixCategoryKeyDataSource_basic
--- PASS: TestAccNutanixCategoryKeyDataSource_basic (3.20s)
=== RUN   TestAccNutanixCategoryKeyDataSource_withValues
--- PASS: TestAccNutanixCategoryKeyDataSource_withValues (6.10s)
=== RUN   TestAccNutanixClusterDataSource_basic
--- PASS: TestAccNutanixClusterDataSource_basic (4.09s)
=== RUN   TestAccNutanixClusterDataSource_ByName
--- PASS: TestAccNutanixClusterDataSource_ByName (3.18s)
=== RUN   TestAccNutanixClusterDataSource_ByNameNotExisting
--- PASS: TestAccNutanixClusterDataSource_ByNameNotExisting (0.58s)
=== RUN   TestAccNutanixClusterDataSource_NameUuidConflict
--- PASS: TestAccNutanixClusterDataSource_NameUuidConflict (0.54s)
=== RUN   TestAccNutanixClustersDataSource_basic
--- PASS: TestAccNutanixClustersDataSource_basic (3.54s)
=== RUN   TestAccNutanixHostDataSource_basic
=== PAUSE TestAccNutanixHostDataSource_basic
=== RUN   TestAccNutanixHostsDataSource_basic
=== PAUSE TestAccNutanixHostsDataSource_basic
=== RUN   TestAccNutanixImageDataSource_basic
--- PASS: TestAccNutanixImageDataSource_basic (159.28s)
=== RUN   TestAccNutanixImageDataSource_name
--- PASS: TestAccNutanixImageDataSource_name (27.23s)
=== RUN   TestAccNutanixImageDataSource_conflicts
--- PASS: TestAccNutanixImageDataSource_conflicts (0.02s)
=== RUN   TestAccNutanixNetworkSecurityRuleDataSource_basic
--- PASS: TestAccNutanixNetworkSecurityRuleDataSource_basic (29.16s)
=== RUN   TestAccNutanixNetworkSecurityRuleDataSource_isolation
--- PASS: TestAccNutanixNetworkSecurityRuleDataSource_isolation (23.43s)
=== RUN   TestAccNutanixNetworkSecurityRuleDataSource_advanced
--- PASS: TestAccNutanixNetworkSecurityRuleDataSource_advanced (30.12s)
=== RUN   TestAccNutanixPermissionDataSource_basic
--- PASS: TestAccNutanixPermissionDataSource_basic (1.56s)
=== RUN   TestAccNutanixPermissionDataSource_basicByName
--- PASS: TestAccNutanixPermissionDataSource_basicByName (1.73s)
=== RUN   TestAccNutanixPermissionsDataSource_basic
--- PASS: TestAccNutanixPermissionsDataSource_basic (23.57s)
=== RUN   TestAccNutanixProjectDataSource_basic
--- PASS: TestAccNutanixProjectDataSource_basic (38.97s)
=== RUN   TestAccNutanixProjectsDataSource_basic
=== PAUSE TestAccNutanixProjectsDataSource_basic
=== RUN   TestAccNutanixRoleDataSourceByID_basic
--- PASS: TestAccNutanixRoleDataSourceByID_basic (23.41s)
=== RUN   TestAccNutanixRoleDataSourceByName_basic
--- PASS: TestAccNutanixRoleDataSourceByName_basic (23.36s)
=== RUN   TestAccNutanixRolesDataSource_basic
--- PASS: TestAccNutanixRolesDataSource_basic (6.86s)
=== RUN   TestAccNutanixSubnetDataSource_basic
--- PASS: TestAccNutanixSubnetDataSource_basic (26.23s)
=== RUN   TestAccNutanixSubnetDataSource_name
--- PASS: TestAccNutanixSubnetDataSource_name (25.70s)
=== RUN   TestAccNutanixSubnetDataSource_conflicts
--- PASS: TestAccNutanixSubnetDataSource_conflicts (0.03s)
=== RUN   TestAccNutanixSubnetsDataSource_basic
--- PASS: TestAccNutanixSubnetsDataSource_basic (2.04s)
=== RUN   TestAccNutanixUserGroupDataSource_basic
--- PASS: TestAccNutanixUserGroupDataSource_basic (2.01s)
=== RUN   TestAccNutanixUserGroupDataSource_ByName
--- PASS: TestAccNutanixUserGroupDataSource_ByName (2.70s)
=== RUN   TestAccNutanixUserGroupDataSource_ByDistinguishedName
--- PASS: TestAccNutanixUserGroupDataSource_ByDistinguishedName (2.87s)
=== RUN   TestAccNutanixUserGroupsDataSource_basic
--- PASS: TestAccNutanixUserGroupsDataSource_basic (2.05s)
=== RUN   TestAccNutanixUserDataSource_basic
--- PASS: TestAccNutanixUserDataSource_basic (24.13s)
=== RUN   TestAccNutanixUserDataSource_byName
--- PASS: TestAccNutanixUserDataSource_byName (25.57s)
=== RUN   TestAccNutanixVirtualMachineDataSource_basic
--- PASS: TestAccNutanixVirtualMachineDataSource_basic (78.41s)
=== RUN   TestAccNutanixVirtualMachineDataSource_WithDisk
--- PASS: TestAccNutanixVirtualMachineDataSource_WithDisk (100.22s)
=== RUN   TestAccNutanixVirtualMachineDataSource_withDiskContainer
--- PASS: TestAccNutanixVirtualMachineDataSource_withDiskContainer (78.35s)
=== RUN   TestProvider
--- PASS: TestProvider (0.01s)
=== RUN   TestProvider_impl
--- PASS: TestProvider_impl (0.00s)
=== RUN   TestAccNutanixAccessControlPolicy_basic
--- PASS: TestAccNutanixAccessControlPolicy_basic (58.65s)
=== RUN   TestAccNutanixAccessControlPolicy_WithUser
--- PASS: TestAccNutanixAccessControlPolicy_WithUser (57.47s)
=== RUN   TestAccNutanixAccessControlPolicy_WithCategory
--- PASS: TestAccNutanixAccessControlPolicy_WithCategory (57.65s)
=== RUN   TestAccNutanixCategoryKey_basic
--- PASS: TestAccNutanixCategoryKey_basic (2.56s)
=== RUN   TestAccNutanixCategoryKey_update
--- PASS: TestAccNutanixCategoryKey_update (3.89s)
=== RUN   TestAccNutanixCategoryValue_basic
--- PASS: TestAccNutanixCategoryValue_basic (3.13s)
=== RUN   TestAccNutanixCategoryValue_update
--- PASS: TestAccNutanixCategoryValue_update (5.26s)
=== RUN   TestAccNutanixImage_basic
--- PASS: TestAccNutanixImage_basic (157.90s)
=== RUN   TestAccNutanixImage_Update
--- PASS: TestAccNutanixImage_Update (169.42s)
=== RUN   TestAccNutanixImage_WithCategories
--- PASS: TestAccNutanixImage_WithCategories (183.01s)
=== RUN   TestAccNutanixImage_WithLargeImageURL
--- PASS: TestAccNutanixImage_WithLargeImageURL (159.29s)
=== RUN   TestAccNutanixImage_uploadLocal
--- PASS: TestAccNutanixImage_uploadLocal (72.21s)
=== RUN   TestAccNutanixNetworkSecurityRule_basic
--- PASS: TestAccNutanixNetworkSecurityRule_basic (42.28s)
=== RUN   TestAccNutanixNetworkSecurityRule_isolation
--- PASS: TestAccNutanixNetworkSecurityRule_isolation (23.11s)
=== RUN   TestAccNutanixProject_basic
--- PASS: TestAccNutanixProject_basic (36.59s)
=== RUN   TestAccResourceNutanixProject_importBasic
=== PAUSE TestAccResourceNutanixProject_importBasic
=== RUN   TestAccNutanixRole_basic
--- PASS: TestAccNutanixRole_basic (36.32s)
=== RUN   TestAccNutanixRole_WithCategory
--- PASS: TestAccNutanixRole_WithCategory (35.22s)
=== RUN   TestAccNutanixSubnet_basic
--- PASS: TestAccNutanixSubnet_basic (24.58s)
=== RUN   TestAccNutanixSubnet_Update
--- PASS: TestAccNutanixSubnet_Update (37.13s)
=== RUN   TestAccNutanixSubnet_WithCategory
--- PASS: TestAccNutanixSubnet_WithCategory (38.11s)
=== RUN   TestAccNutanixSubnet_withIpPoolListRanges
--- PASS: TestAccNutanixSubnet_withIpPoolListRanges (1.66s)
=== RUN   TestAccNutanixSubnet_withIpPoolListRangesErrored
--- PASS: TestAccNutanixSubnet_withIpPoolListRangesErrored (0.03s)
=== RUN   TestAccNutanixSubnet_nameDuplicated
--- PASS: TestAccNutanixSubnet_nameDuplicated (46.60s)
=== RUN   TestAccNutanixUser_basic
--- PASS: TestAccNutanixUser_basic (24.73s)
=== RUN   TestAccNutanixUser_IdentityProvider
--- PASS: TestAccNutanixUser_IdentityProvider (23.85s)
=== RUN   TestAccNutanixVirtualMachine_basic
--- PASS: TestAccNutanixVirtualMachine_basic (128.92s)
=== RUN   TestAccNutanixVirtualMachine_WithDisk
--- PASS: TestAccNutanixVirtualMachine_WithDisk (149.68s)
=== RUN   TestAccNutanixVirtualMachine_hotadd
--- PASS: TestAccNutanixVirtualMachine_hotadd (157.64s)
=== RUN   TestAccNutanixVirtualMachine_updateFields
--- PASS: TestAccNutanixVirtualMachine_updateFields (133.97s)
=== RUN   TestAccNutanixVirtualMachine_WithSubnet
--- PASS: TestAccNutanixVirtualMachine_WithSubnet (57.90s)
=== RUN   TestAccNutanixVirtualMachine_WithSerialPortList
--- PASS: TestAccNutanixVirtualMachine_WithSerialPortList (85.84s)
=== RUN   TestAccNutanixVirtualMachine_PowerStateMechanism
--- PASS: TestAccNutanixVirtualMachine_PowerStateMechanism (91.32s)
=== RUN   TestAccNutanixVirtualMachine_CdromGuestCustomisationReboot
--- PASS: TestAccNutanixVirtualMachine_CdromGuestCustomisationReboot (91.70s)
=== RUN   TestAccNutanixVirtualMachine_CloudInitCustomKeyValues
--- PASS: TestAccNutanixVirtualMachine_CloudInitCustomKeyValues (85.29s)
=== RUN   TestAccNutanixVirtualMachine_DeviceProperties
--- PASS: TestAccNutanixVirtualMachine_DeviceProperties (108.07s)
=== RUN   TestAccNutanixVirtualMachine_cloningVM
--- PASS: TestAccNutanixVirtualMachine_cloningVM (192.06s)
=== RUN   TestAccNutanixVirtualMachine_withDiskContainer
--- PASS: TestAccNutanixVirtualMachine_withDiskContainer (99.84s)
=== RUN   TestAccNutanixVirtualMachine_resizeDiskClone
--- PASS: TestAccNutanixVirtualMachine_resizeDiskClone (133.74s)
=== RUN   TestExpandStringList
--- PASS: TestExpandStringList (0.00s)
=== RUN   TestExpandStringListEmptyItems
--- PASS: TestExpandStringListEmptyItems (0.00s)
=== CONT  TestAccNutanixHostDataSource_basic
=== CONT  TestAccResourceNutanixProject_importBasic
=== CONT  TestAccNutanixProjectsDataSource_basic
=== CONT  TestAccNutanixHostsDataSource_basic
--- PASS: TestAccNutanixHostsDataSource_basic (2.55s)
--- PASS: TestAccNutanixProjectsDataSource_basic (2.97s)
--- PASS: TestAccResourceNutanixProject_importBasic (32.14s)
--- PASS: TestAccNutanixHostDataSource_basic (108.78s)
PASS
coverage: 68.4% of statements
ok  	github.com/terraform-providers/terraform-provider-nutanix/nutanix	3757.433s	coverage: 68.4% of statements
go tool cover -html=c.out

@marinsalinas marinsalinas force-pushed the v1.2.0-beta-fix-testacc branch from aa555df to 9273c14 Compare January 26, 2021 16:52
@marinsalinas marinsalinas merged commit 810c751 into v1.2.0-beta Jan 27, 2021
@marinsalinas marinsalinas deleted the v1.2.0-beta-fix-testacc branch January 27, 2021 21:01
yannickstruyf3 pushed a commit to yannickstruyf3/terraform-provider-nutanix that referenced this pull request Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant