File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
src/ResourceManager/Subscription
Commands.Subscription.Test/ScenarioTests Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 18
18
- Additional information about change #1
19
19
-->
20
20
## Current Release
21
- ## Version 0.1.0
22
21
* New Cmdlets Get-AzureRmSubscriptionDefinition and New-AzureRmSubscriptionDefinition
23
22
- Cmdlets to create and list subscription definitions. Creation of a subscription definition results in a subscription.
Original file line number Diff line number Diff line change 20
20
21
21
namespace Subscription . Test . ScenarioTests
22
22
{
23
+ /// <summary>
24
+ /// The following tests require four subscription definitions to be created manually at this time. This can
25
+ /// be done by calling New-AzureRmSubscriptionDefinition. At this time, this can only be done when your tenant is
26
+ /// whitelisted by Microsoft.
27
+ /// </summary>
23
28
public class SubscriptionDefinitionTests
24
29
{
25
30
private XunitTracingInterceptor _logger ;
Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ function Test-ListSubscriptionDefinitions
25
25
{
26
26
Assert-NotNull $def.Name
27
27
}
28
+ Assert-AreEqual " MS-AZR-0017P" $definitions [0 ].OfferType
29
+ Assert-AreEqual " MyProdSubscription" $definitions [0 ].Name
30
+ Assert-AreEqual " MyProdSubscription" $definitions [0 ].SubscriptionDisplayName
28
31
}
29
32
30
33
<#
@@ -36,6 +39,7 @@ function Test-GetSubscriptionDefinitionByName
36
39
$definition = Get-AzureRmSubscriptionDefinition - Name " MyProdSubscription"
37
40
Assert-AreEqual " MyProdSubscription" $definition.Name
38
41
Assert-AreEqual " MyProdSubscription" $definition.SubscriptionDisplayName
42
+ Assert-AreEqual " MS-AZR-0017P" $definition.OfferType
39
43
}
40
44
41
45
<#
You can’t perform that action at this time.
0 commit comments