12
12
// limitations under the License.
13
13
// ----------------------------------------------------------------------------------
14
14
15
- using Microsoft . Azure . ServiceManagement . Common . Models ;
16
-
17
15
namespace Microsoft . Azure . Commands . GuestConfiguration . Test . ScenarioTests
18
16
{
19
- using Microsoft . Azure . Commands . ScenarioTest ;
20
17
using Microsoft . WindowsAzure . Commands . ScenarioTest ;
21
18
using Xunit ;
22
19
23
-
24
- public class GetVmGuestPolicyStatusHistoryTests
20
+ public class GetVmGuestPolicyStatusHistoryTests : GuestConfigurationTestRunner
25
21
{
26
- private readonly XunitTracingInterceptor _logger ;
27
-
28
- public GetVmGuestPolicyStatusHistoryTests ( Xunit . Abstractions . ITestOutputHelper output )
22
+ public GetVmGuestPolicyStatusHistoryTests ( Xunit . Abstractions . ITestOutputHelper output ) : base ( output )
29
23
{
30
- _logger = new XunitTracingInterceptor ( output ) ;
31
- XunitTracingInterceptor . AddToContext ( _logger ) ;
32
- TestExecutionHelpers . SetUpSessionAndProfile ( ) ;
33
24
}
34
25
35
26
[ Fact ]
36
27
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
37
28
public void VmNameScope ( )
38
29
{
39
- TestController . NewInstance . RunPowerShellTest ( _logger , "Get-AzVMGuestPolicyStatusHistory-VmNameScope" ) ;
30
+ TestRunner . RunTestScript ( "Get-AzVMGuestPolicyStatusHistory-VmNameScope" ) ;
40
31
}
41
32
42
33
[ Fact ]
43
34
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
44
35
public void InitiativeIdScope ( )
45
36
{
46
- TestController . NewInstance . RunPowerShellTest ( _logger , "Get-AzVMGuestPolicyStatusHistory-InitiativeIdScope" ) ;
37
+ TestRunner . RunTestScript ( "Get-AzVMGuestPolicyStatusHistory-InitiativeIdScope" ) ;
47
38
}
48
39
49
40
[ Fact ]
50
41
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
51
42
public void InitiativeNameScope ( )
52
43
{
53
- TestController . NewInstance . RunPowerShellTest ( _logger , "Get-AzVMGuestPolicyStatusHistory-InitiativeNameScope" ) ;
44
+ TestRunner . RunTestScript ( "Get-AzVMGuestPolicyStatusHistory-InitiativeNameScope" ) ;
54
45
}
55
46
56
47
[ Fact ]
57
48
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
58
49
public void ShowOnlyChangeSwitchVmNameScope ( )
59
50
{
60
- TestController . NewInstance . RunPowerShellTest ( _logger , "Get-AzVMGuestPolicyStatusHistory-ShowOnlyChangeSwitch-VmNameScope" ) ;
51
+ TestRunner . RunTestScript ( "Get-AzVMGuestPolicyStatusHistory-ShowOnlyChangeSwitch-VmNameScope" ) ;
61
52
}
62
53
63
54
[ Fact ]
64
55
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
65
56
public void VmNameScope_Custom ( )
66
57
{
67
- TestController . NewInstance . RunPowerShellTest ( _logger , "Get-AzVMGuestPolicyStatusHistory-VmNameScope_Custom" ) ;
58
+ TestRunner . RunTestScript ( "Get-AzVMGuestPolicyStatusHistory-VmNameScope_Custom" ) ;
68
59
}
69
60
70
61
[ Fact ]
71
62
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
72
63
public void InitiativeIdScope_Custom ( )
73
64
{
74
- TestController . NewInstance . RunPowerShellTest ( _logger , "Get-AzVMGuestPolicyStatusHistory-InitiativeIdScope_Custom" ) ;
65
+ TestRunner . RunTestScript ( "Get-AzVMGuestPolicyStatusHistory-InitiativeIdScope_Custom" ) ;
75
66
}
76
67
77
68
[ Fact ]
78
69
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
79
70
public void InitiativeNameScope_Custom ( )
80
71
{
81
- TestController . NewInstance . RunPowerShellTest ( _logger , "Get-AzVMGuestPolicyStatusHistory-InitiativeNameScope_Custom" ) ;
72
+ TestRunner . RunTestScript ( "Get-AzVMGuestPolicyStatusHistory-InitiativeNameScope_Custom" ) ;
82
73
}
83
74
84
75
[ Fact ]
85
76
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
86
77
public void ShowOnlyChangeSwitchVmNameScope_Custom ( )
87
78
{
88
- TestController . NewInstance . RunPowerShellTest ( _logger , "Get-AzVMGuestPolicyStatusHistory-ShowOnlyChangeSwitch-VmNameScope_Custom" ) ;
79
+ TestRunner . RunTestScript ( "Get-AzVMGuestPolicyStatusHistory-ShowOnlyChangeSwitch-VmNameScope_Custom" ) ;
89
80
}
90
81
}
91
82
}
0 commit comments