Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update nuget to 4.11 and implemented GetProducts by ApiId #9741

Merged
merged 4 commits into from
Jul 31, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Management.ApiManagement" Version="4.10.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.ApiManagement" Version="4.11.0-preview" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,33 @@ function Product-CrudTest {
Assert-NotNull $newProduct
Assert-AreEqual $productName $newProduct.Title

# get the product by apiId
$products = Get-AzApiManagementProduct -Context $context -ApiId $apis[0].ApiId
Assert-NotNull $products

# there should be 3 products
Assert-AreEqual 3 $products.Count

$found = 0
for ($i = 0; $i -lt $products.Count; $i++) {
Assert-NotNull $products[$i].ProductId
Assert-NotNull $products[$i].Description
Assert-AreEqual Published $products[$i].State

if ($products[$i].Title -eq 'Starter') {
$found += 1;
}

if ($products[$i].Title -eq 'Unlimited') {
$found += 1;
}

if ($products[$i].Title -eq $productName) {
$found += 1;
}
}
Assert-AreEqual 3 $found

#remove api from product
Get-AzApiManagementApi -Context $context | Remove-AzApiManagementApiFromProduct -Context $context -ProductId $productId

Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading