betr-io / terraform-provider-mssql

Terraform provider for Microsoft SQL Server
https://registry.terraform.io/providers/betr-io/mssql/latest
MIT License
36 stars 29 forks source link

Database schema #79

Closed ValeruS closed 9 months ago

ValeruS commented 9 months ago

added acctests and few fixes

TESTARGS=-count=1 make testacc if [ -f .local.env ]; then source .local.env; fi && TF_ACC=1 TERRAFORM_VERSION="~> 1.5" go test github.com/betr-io/terraform-provider-mssql/mssql -v -count=1 -timeout 120m === RUN TestAccDataLogin_Local_Basic --- PASS: TestAccDataLogin_Local_Basic (3.73s) === RUN TestAccDataLogin_Azure_Basic --- PASS: TestAccDataLogin_Azure_Basic (13.17s) === RUN TestProvider --- PASS: TestProvider (0.00s) === RUN TestAccDatabasePermissions_Local_BasicImport --- PASS: TestAccDatabasePermissions_Local_BasicImport (4.19s) === RUN TestAccDatabasePermissions_Local_Basic --- PASS: TestAccDatabasePermissions_Local_Basic (3.44s) === RUN TestAccDatabasePermissions_Azure_Basic --- PASS: TestAccDatabasePermissions_Azure_Basic (11.94s) === RUN TestAccRole_Local_BasicImport --- PASS: TestAccRole_Local_BasicImport (3.05s) === RUN TestAccRole_Local_Basic_Create --- PASS: TestAccRole_Local_Basic_Create (2.27s) === RUN TestAccRole_Local_Basic_Create_owner --- PASS: TestAccRole_Local_Basic_Create_owner (3.79s) === RUN TestAccRole_Azure_Basic_Create --- PASS: TestAccRole_Azure_Basic_Create (7.31s) === RUN TestAccRole_Azure_Basic_Create_owner --- PASS: TestAccRole_Azure_Basic_Create_owner (12.17s) === RUN TestAccRole_Local_Basic_Update --- PASS: TestAccRole_Local_Basic_Update (4.21s) === RUN TestAccRole_Local_Basic_Update_owner --- PASS: TestAccRole_Local_Basic_Update_owner (7.37s) === RUN TestAccRole_Local_Basic_Update_remove_owner --- PASS: TestAccRole_Local_Basic_Update_remove_owner (6.30s) === RUN TestAccRole_Local_Basic_Update_role_and_owner --- PASS: TestAccRole_Local_Basic_Update_role_and_owner (7.37s) === RUN TestAccRole_Azure_Basic_Update --- PASS: TestAccRole_Azure_Basic_Update (19.08s) === RUN TestAccRole_Azure_Basic_Update_owner --- PASS: TestAccRole_Azure_Basic_Update_owner (22.31s) === RUN TestAccSchema_Local_BasicImport --- PASS: TestAccSchema_Local_BasicImport (3.05s) === RUN TestAccSchema_Local_Basic_Create --- PASS: TestAccSchema_Local_Basic_Create (2.26s) === RUN TestAccSchema_Local_Basic_Create_owner --- PASS: TestAccSchema_Local_Basic_Create_owner (3.75s) === RUN TestAccSchema_Azure_Basic_Create --- PASS: TestAccSchema_Azure_Basic_Create (7.08s) === RUN TestAccSchema_Azure_Basic_Create_owner --- PASS: TestAccSchema_Azure_Basic_Create_owner (12.40s) === RUN TestAccSchema_Local_Basic_Update_owner --- PASS: TestAccSchema_Local_Basic_Update_owner (7.51s) === RUN TestAccSchema_Local_Basic_Update_remove_owner --- PASS: TestAccSchema_Local_Basic_Update_remove_owner (6.29s) === RUN TestAccSchema_Azure_Basic_Update_owner --- PASS: TestAccSchema_Azure_Basic_Update_owner (20.35s) === RUN TestAccLogin_Local_BasicImport --- PASS: TestAccLogin_Local_BasicImport (3.35s) === RUN TestAccLogin_Local_Basic --- PASS: TestAccLogin_Local_Basic (2.89s) === RUN TestAccLogin_Local_Basic_SID --- PASS: TestAccLogin_Local_Basic_SID (2.89s) === RUN TestAccLogin_Azure_Basic --- PASS: TestAccLogin_Azure_Basic (7.87s) === RUN TestAccLogin_Azure_Basic_SID --- PASS: TestAccLogin_Azure_Basic_SID (7.97s) === RUN TestAccLogin_Local_UpdateLoginName --- PASS: TestAccLogin_Local_UpdateLoginName (5.59s) === RUN TestAccLogin_Local_UpdatePassword --- PASS: TestAccLogin_Local_UpdatePassword (5.00s) === RUN TestAccLogin_Local_UpdateDefaultDatabase --- PASS: TestAccLogin_Local_UpdateDefaultDatabase (4.91s) === RUN TestAccLogin_Local_UpdateDefaultLanguage --- PASS: TestAccLogin_Local_UpdateDefaultLanguage (4.93s) === RUN TestAccLogin_Azure_UpdateLoginName --- PASS: TestAccLogin_Azure_UpdateLoginName (15.60s) === RUN TestAccLogin_Azure_UpdatePassword --- PASS: TestAccLogin_Azure_UpdatePassword (18.62s) === RUN TestAccUser_Local_BasicImport --- PASS: TestAccUser_Local_BasicImport (3.56s) === RUN TestAccUser_Local_Instance --- PASS: TestAccUser_Local_Instance (3.15s) === RUN TestAccMultipleUsers_Local_Instance --- PASS: TestAccMultipleUsers_Local_Instance (5.78s) === RUN TestAccUser_Azure_Instance --- PASS: TestAccUser_Azure_Instance (13.65s) === RUN TestAccUser_Azure_Database --- PASS: TestAccUser_Azure_Database (9.30s) === RUN TestAccUser_AzureadChain_Database --- PASS: TestAccUser_AzureadChain_Database (12.54s) === RUN TestAccUser_AzureadMSI_Database --- PASS: TestAccUser_AzureadMSI_Database (17.04s) === RUN TestAccUser_Azure_External --- PASS: TestAccUser_Azure_External (8.73s) === RUN TestAccUser_AzureadChain_External --- PASS: TestAccUser_AzureadChain_External (10.93s) === RUN TestAccUser_AzureadMSI_External --- PASS: TestAccUser_AzureadMSI_External (11.18s) === RUN TestAccUser_Local_Update_DefaultSchema --- PASS: TestAccUser_Local_Update_DefaultSchema (5.33s) === RUN TestAccUser_Local_Update_DefaultLanguage --- PASS: TestAccUser_Local_Update_DefaultLanguage (4.66s) === RUN TestAccUser_Local_Update_Roles --- PASS: TestAccUser_Local_Update_Roles (9.02s) === RUN TestAccUser_Azure_Update_DefaultSchema --- PASS: TestAccUser_Azure_Update_DefaultSchema (29.66s) === RUN TestAccUser_Azure_Update_DefaultLanguage --- PASS: TestAccUser_Azure_Update_DefaultLanguage (20.94s) === RUN TestAccUser_Azure_Update_Roles --- PASS: TestAccUser_Azure_Update_Roles (35.39s) PASS ok github.com/betr-io/terraform-provider-mssql/mssql 474.859s