Skip to content

Commit

Permalink
fixed test and datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
katbyte committed Feb 27, 2019
1 parent 3bbd539 commit 2444f1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion azurerm/data_source_api_management_product.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func dataSourceApiManagementProductRead(d *schema.ResourceData, meta interface{}
ctx := meta.(*ArmClient).StopContext

resourceGroup := d.Get("resource_group_name").(string)
serviceName := d.Get("service_name").(string)
serviceName := d.Get("api_management_name").(string)
productId := d.Get("product_id").(string)

resp, err := client.Get(ctx, resourceGroup, serviceName, productId)
Expand Down
2 changes: 1 addition & 1 deletion azurerm/resource_arm_api_management_product_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func TestAccAzureRMApiManagementProduct_update(t *testing.T) {
Config: testAccAzureRMApiManagementProduct_updated(ri, location),
Check: resource.ComposeTestCheckFunc(
testCheckAzureRMApiManagementProductExists(resourceName),
resource.TestCheckResourceAttr(resourceName, "approval_required", "true"),
resource.TestCheckResourceAttr(resourceName, "approval_required", "false"),
resource.TestCheckResourceAttr(resourceName, "description", ""),
resource.TestCheckResourceAttr(resourceName, "display_name", "Test Updated Product"),
resource.TestCheckResourceAttr(resourceName, "product_id", "test-product"),
Expand Down

0 comments on commit 2444f1c

Please sign in to comment.