Add bitbucketserver_plugin_config resource to allow managing plugins configuration.

Plugin configuration documentation.
This commit is contained in:
Henrique Gontijo
2019-11-18 09:38:32 -08:00
parent 70bba6e511
commit 8c79150355
8 changed files with 276 additions and 1 deletions

View File

@@ -0,0 +1,29 @@
package bitbucket
import (
"testing"
"github.com/hashicorp/terraform/helper/resource"
)
func TestAccBitbucketPluginConfig_basic(t *testing.T) {
config := `
data "bitbucketserver_plugin_config" "test" {
key = "oidc"
}
`
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
Steps: []resource.TestStep{
{
Config: config,
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr("data.bitbucketserver_plugin_config.test", "id", "oidc"),
resource.TestCheckResourceAttr("data.bitbucketserver_plugin_config.test", "validlicense", "true"),
),
},
},
})
}