Added data.bitbucketserver_groups, data.bitbucketserver_group_users, resource.bitbucketserver_group and resource.bitbucketserver_user_group

This commit is contained in:
Gavin Bunney
2019-10-10 15:06:41 -07:00
parent e01c73392b
commit 3b3cde32e3
13 changed files with 769 additions and 10 deletions

View File

@@ -0,0 +1,27 @@
package bitbucket
import (
"github.com/hashicorp/terraform/helper/resource"
"testing"
)
func TestAccBitbucketResourceGroup_basic(t *testing.T) {
config := `
resource "bitbucketserver_group" "test" {
name = "test-group"
}
`
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
Steps: []resource.TestStep{
{
Config: config,
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr("bitbucketserver_group.test", "name", "test-group"),
),
},
},
})
}