mirror of
https://github.com/ysoftdevs/terraform-provider-bitbucketserver.git
synced 2026-04-18 06:49:44 +02:00
* Re-enabled ND tests
* Reverted changes to README.md since there is another PR to update it.
This commit is contained in:
committed by
Emily Li
parent
b3ee8fd46c
commit
a38a9f4d15
@@ -7,7 +7,6 @@ import (
|
||||
)
|
||||
|
||||
func TestAccBitbucketDataPlugin_notifyer(t *testing.T) {
|
||||
t.Skip("Skipping testing in CI environment")
|
||||
config := `
|
||||
resource "bitbucketserver_plugin" "test" {
|
||||
key = "nl.stefankohler.stash.stash-notification-plugin"
|
||||
|
||||
@@ -2,10 +2,8 @@ package bitbucket
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/url"
|
||||
"strings"
|
||||
|
||||
"github.com/hashicorp/terraform/helper/schema"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
func resourceGroup() *schema.Resource {
|
||||
@@ -39,9 +37,9 @@ func resourceGroupCreate(d *schema.ResourceData, m interface{}) error {
|
||||
groupName := d.Get("name").(string)
|
||||
importIfExists := d.Get("import_if_exists").(bool)
|
||||
var newResource = true
|
||||
_, err := client.Post(fmt.Sprintf("/rest/api/1.0/admin/groups?name=%s", url.QueryEscape(groupName)), nil)
|
||||
response, err := client.Post(fmt.Sprintf("/rest/api/1.0/admin/groups?name=%s", url.QueryEscape(groupName)), nil)
|
||||
if err != nil {
|
||||
if importIfExists && strings.Contains(err.Error(), "API Error: 409") {
|
||||
if importIfExists && response.StatusCode == 409 {
|
||||
newResource = false
|
||||
} else {
|
||||
return err
|
||||
|
||||
@@ -7,7 +7,6 @@ import (
|
||||
)
|
||||
|
||||
func TestAccBitbucketPluginConfig(t *testing.T) {
|
||||
t.Skip("Skipping testing in CI environment")
|
||||
config := `
|
||||
resource "bitbucketserver_plugin" "test" {
|
||||
key = "de.codecentric.atlassian.oidc.bitbucket-oidc-plugin"
|
||||
|
||||
@@ -7,7 +7,6 @@ import (
|
||||
)
|
||||
|
||||
func TestAccBitbucketPlugin_install(t *testing.T) {
|
||||
t.Skip("Skipping testing in CI environment")
|
||||
config := `
|
||||
resource "bitbucketserver_plugin" "test" {
|
||||
key = "com.plugin.commitgraph.commitgraph"
|
||||
|
||||
Reference in New Issue
Block a user