@@ -18,91 +18,87 @@ namespace Microsoft.Azure.Commands.AnalysisServices.Test.ScenarioTests
18
18
using ServiceManagement . Common . Models ;
19
19
using Xunit ;
20
20
21
- public class AsTests : AsTestsBase
21
+ public class AsTests : AnalysisServicesTestRunner
22
22
{
23
- public XunitTracingInterceptor _logger ;
24
-
25
- public AsTests ( Xunit . Abstractions . ITestOutputHelper output )
23
+ public AsTests ( Xunit . Abstractions . ITestOutputHelper output ) : base ( output )
26
24
{
27
- _logger = new XunitTracingInterceptor ( output ) ;
28
- XunitTracingInterceptor . AddToContext ( _logger ) ;
29
25
}
30
26
31
27
[ Fact ]
32
28
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
33
29
public void TestAnalysisServicesServer ( )
34
30
{
35
- NewInstance . RunPsTest ( _logger , "Test-AnalysisServicesServer" ) ;
31
+ TestRunner . RunTestScript ( "Test-AnalysisServicesServer" ) ;
36
32
}
37
33
38
34
[ Fact ]
39
35
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
40
36
public void TestAnalysisServicesServerScaleUpDown ( )
41
37
{
42
- NewInstance . RunPsTest ( _logger , "Test-AnalysisServicesServerScaleUpDown" ) ;
38
+ TestRunner . RunTestScript ( "Test-AnalysisServicesServerScaleUpDown" ) ;
43
39
}
44
40
45
41
[ Fact ]
46
42
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
47
43
public void TestAnalysisServicesServerScaleOutIn ( )
48
44
{
49
- NewInstance . RunPsTest ( _logger , "Test-AnalysisServicesServerScaleOutIn" ) ;
45
+ TestRunner . RunTestScript ( "Test-AnalysisServicesServerScaleOutIn" ) ;
50
46
}
51
47
52
48
[ Fact ]
53
49
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
54
50
public void TestAnalysisServicesServerFirewall ( )
55
51
{
56
- NewInstance . RunPsTest ( _logger , "Test-AnalysisServicesServerFirewall" ) ;
52
+ TestRunner . RunTestScript ( "Test-AnalysisServicesServerFirewall" ) ;
57
53
}
58
54
59
55
[ Fact ]
60
56
[ Trait ( Category . RunType , Category . LiveOnly ) ]
61
57
public void TestAnalysisServicesServerDisableBackup ( )
62
58
{
63
- NewInstance . RunPsTest ( _logger , "Test-AnalysisServicesServerDisableBackup" ) ;
59
+ TestRunner . RunTestScript ( "Test-AnalysisServicesServerDisableBackup" ) ;
64
60
}
65
61
66
62
[ Fact ]
67
63
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
68
64
public void TestNegativeAnalysisServicesServer ( )
69
65
{
70
- NewInstance . RunPsTest ( _logger , "Test-NegativeAnalysisServicesServer" ) ;
66
+ TestRunner . RunTestScript ( "Test-NegativeAnalysisServicesServer" ) ;
71
67
}
72
68
73
69
[ Fact ]
74
70
[ Trait ( Category . RunType , Category . LiveOnly ) ]
75
71
public void TestAnalysisServicesServerLogExport ( )
76
72
{
77
- NewInstance . RunPsTest ( _logger , "Test-AnalysisServicesServerLogExport" ) ;
73
+ TestRunner . RunTestScript ( "Test-AnalysisServicesServerLogExport" ) ;
78
74
}
79
75
80
76
[ Fact ]
81
77
[ Trait ( Category . RunType , Category . LiveOnly ) ]
82
78
public void TestAnalysisServicesServerRestart ( )
83
79
{
84
- NewInstance . RunPsTest ( _logger , "Test-AnalysisServicesServerRestart" ) ;
80
+ TestRunner . RunTestScript ( "Test-AnalysisServicesServerRestart" ) ;
85
81
}
86
82
87
83
[ Fact ]
88
84
[ Trait ( Category . RunType , Category . LiveOnly ) ]
89
85
public void TestAnalysisServicesServerSynchronizeSingle ( )
90
86
{
91
- NewInstance . RunPsTest ( _logger , "Test-AnalysisServicesServerSynchronizeSingle" ) ;
87
+ TestRunner . RunTestScript ( "Test-AnalysisServicesServerSynchronizeSingle" ) ;
92
88
}
93
89
94
90
[ Fact ]
95
91
[ Trait ( Category . RunType , Category . LiveOnly ) ]
96
92
public void TestAnalysisServicesServerLoginWithSPN ( )
97
93
{
98
- NewInstance . RunPsTest ( _logger , "Test-AnalysisServicesServerLoginWithSPN" ) ;
94
+ TestRunner . RunTestScript ( "Test-AnalysisServicesServerLoginWithSPN" ) ;
99
95
}
100
96
101
97
[ Fact ]
102
98
[ Trait ( Category . RunType , Category . LiveOnly ) ]
103
99
public void TestAnalysisServicesServerGateway ( )
104
100
{
105
- NewInstance . RunPsTest ( _logger , "Test-AnalysisServicesServerGateway" ) ;
101
+ TestRunner . RunTestScript ( "Test-AnalysisServicesServerGateway" ) ;
106
102
}
107
103
108
104
}
0 commit comments