Added data.bitbucketserver_application_properties

This commit is contained in:
Gavin Bunney
2019-10-09 12:01:12 -07:00
parent 9d0c85c37a
commit db39d31880
4 changed files with 120 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
package bitbucket
import (
"testing"
"github.com/hashicorp/terraform/helper/resource"
)
func TestAccBitbucketDataApplicationProperties(t *testing.T) {
config := `
data "bitbucketserver_application_properties" "main" {}
`
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
Steps: []resource.TestStep{
{
Config: config,
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr("data.bitbucketserver_application_properties.main", "version", "6.7.0"),
resource.TestCheckResourceAttr("data.bitbucketserver_application_properties.main", "build_number", "6007000"),
resource.TestCheckResourceAttr("data.bitbucketserver_application_properties.main", "build_date", "1569809627115"),
resource.TestCheckResourceAttr("data.bitbucketserver_application_properties.main", "display_name", "Bitbucket"),
),
},
},
})
}