Skip to content

Commit

Permalink
Fixed issues after running int.tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
torresdal committed Oct 26, 2018
1 parent d7dc04c commit ed5043f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion azurerm/data_source_api_management_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ func dataSourceApiManagementApi() *schema.Resource {
"revision": {
Type: schema.TypeInt,
Optional: true,
Default: 1,
Default: nil,
Computed: true,
},

"api_version": {
Expand Down
5 changes: 3 additions & 2 deletions azurerm/data_source_api_management_api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ func TestAccDataSourceAzureRMApiManagementApi_basic(t *testing.T) {
resource.TestCheckResourceAttr(dataSourceName, "subscription_key_parameter_names.#", "1"),
resource.TestCheckResourceAttr(dataSourceName, "subscription_key_parameter_names.0.header", "Ocp-Apim-Subscription-Key"),
resource.TestCheckResourceAttr(dataSourceName, "subscription_key_parameter_names.0.query", "subscription-key"),
resource.TestCheckResourceAttr(dataSourceName, "version", ""),
resource.TestCheckResourceAttr(dataSourceName, "version_set_id", ""),
resource.TestCheckResourceAttr(dataSourceName, "api_version", ""),
resource.TestCheckResourceAttr(dataSourceName, "api_version_set_id", ""),
),
},
},
Expand Down Expand Up @@ -64,6 +64,7 @@ resource "azurerm_api_management_api" "test" {
name = "acctestAMA-%d"
service_name = "${azurerm_api_management.test.name}"
path = "api1"
protocols = ["https"]
import {
content_value = "${file("testdata/api_management_api_swagger.json")}"
Expand Down
3 changes: 2 additions & 1 deletion azurerm/resource_arm_api_management_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ func resourceArmApiManagementApi() *schema.Resource {
"revision": {
Type: schema.TypeInt,
Optional: true,
Default: 1,
Computed: true,
Default: nil,
},

"version": {
Expand Down
4 changes: 2 additions & 2 deletions azurerm/resource_arm_api_management_api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ resource "azurerm_api_management_api" "test" {
name = "acctestAMA-%d"
service_name = "${azurerm_api_management.test.name}"
path = "api1"
protocols = ["https"]
import {
content_value = "${file("testdata/api_management_api_swagger.json")}"
Expand Down Expand Up @@ -189,6 +190,7 @@ resource "azurerm_api_management_api" "test" {
name = "acctestAMA-%d"
service_name = "${azurerm_api_management.test.name}"
path = "api1"
protocols = ["http", "https"]
import {
content_value = "${file("testdata/api_management_api_wsdl.xml")}"
Expand All @@ -207,8 +209,6 @@ resource "azurerm_api_management_api" "test" {
query = "test2"
}
protocols = ["http", "https"]
resource_group_name = "${azurerm_resource_group.test.name}"
}
`, rInt, location, rInt, rInt)
Expand Down

0 comments on commit ed5043f

Please sign in to comment.