This commit is contained in:
Gavin Bunney
2019-10-09 12:10:47 -07:00
parent db39d31880
commit c5ef834f05
2 changed files with 13 additions and 13 deletions

View File

@@ -7,9 +7,9 @@ import (
)
type ApplicationProperties struct {
Version string `json:"version,omitempty"`
Version string `json:"version,omitempty"`
BuildNumber string `json:"buildNumber,omitempty"`
BuildDate string `json:"buildDate,omitempty"`
BuildDate string `json:"buildDate,omitempty"`
DisplayName string `json:"displayName,omitempty"`
}
@@ -19,20 +19,20 @@ func dataSourceApplicationProperties() *schema.Resource {
Schema: map[string]*schema.Schema{
"version": {
Type: schema.TypeString,
Computed: true,
Type: schema.TypeString,
Computed: true,
},
"build_number": {
Type: schema.TypeString,
Computed: true,
Type: schema.TypeString,
Computed: true,
},
"build_date": {
Type: schema.TypeString,
Computed: true,
Type: schema.TypeString,
Computed: true,
},
"display_name": {
Type: schema.TypeString,
Computed: true,
Type: schema.TypeString,
Computed: true,
},
},
}
@@ -68,4 +68,4 @@ func dataSourceApplicationPropertiesRead(d *schema.ResourceData, m interface{})
}
return nil
}
}

View File

@@ -12,8 +12,8 @@ func TestAccBitbucketDataApplicationProperties(t *testing.T) {
`
resource.Test(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
Steps: []resource.TestStep{
{
Config: config,