Files
terraform-provider-bitbucke…/bitbucket/data_application_properties_test.go
2019-10-09 12:01:12 -07:00

30 lines
933 B
Go

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"),
),
},
},
})
}