Skip to content

Commit

Permalink
fix: format for go ci (#1349)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-swinkler authored Nov 7, 2022
1 parent 7094f15 commit 75d7fd5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion pkg/datasources/roles.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package datasources

import (
"database/sql"
"log"

"github.com/Snowflake-Labs/terraform-provider-snowflake/pkg/snowflake"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"log"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions pkg/datasources/roles_acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ func TestAcc_Roles(t *testing.T) {
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttrSet("data.snowflake_roles.r", "roles.#"),
resource.TestCheckResourceAttrSet("data.snowflake_roles.r", "roles.0.name"),
//resource.TestCheckTypeSetElemAttr("data.snowflake_roles.r", "roles.*", "name"),
//TODO SHOW ROLES output also includes built in roles, i.e. ACCOUNTADMIN, SYSADMIN, etc.
// resource.TestCheckTypeSetElemAttr("data.snowflake_roles.r", "roles.*", "name"),
// TODO SHOW ROLES output also includes built in roles, i.e. ACCOUNTADMIN, SYSADMIN, etc.
),
},
{
Config: rolesPattern(),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttrSet("data.snowflake_roles.r", "roles.#"),
//resource.TestCheckResourceAttrSet("data.snowflake_roles.r", "roles.0.name"),
// resource.TestCheckResourceAttrSet("data.snowflake_roles.r", "roles.0.name"),
resource.TestCheckResourceAttr("data.snowflake_roles.r", "roles.#", "1"),
resource.TestCheckResourceAttr("data.snowflake_roles.r", "roles.0.name", accountAdmin),
),
Expand Down

0 comments on commit 75d7fd5

Please sign in to comment.