mirror of
https://github.com/ysoftdevs/terraform-provider-bitbucketserver.git
synced 2026-04-26 10:38:27 +02:00
Added data.bitbucketserver_application_properties
This commit is contained in:
29
bitbucket/data_application_properties_test.go
Normal file
29
bitbucket/data_application_properties_test.go
Normal 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"),
|
||||
),
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user