@@ -26,59 +26,6 @@ public IdentityUIPackageTest(ProjectFactoryFixture projectFactory, ITestOutputHe
26
26
27
27
public ITestOutputHelper Output { get ; }
28
28
29
- public static TheoryData < IDictionary < string , string > , string , string [ ] > MSBuildIdentityUIPackageOptions
30
- {
31
- get
32
- {
33
- var data = new TheoryData < IDictionary < string , string > , string , string [ ] > ( ) ;
34
-
35
- data . Add ( new Dictionary < string , string >
36
- {
37
- [ "IdentityUIFrameworkVersion" ] = "Bootstrap3"
38
- } ,
39
- "Bootstrap v3.4.1" ,
40
- Bootstrap3ContentFiles ) ;
41
-
42
- data . Add ( new Dictionary < string , string > ( ) , "Bootstrap v4.3.1" , Bootstrap4ContentFiles ) ;
43
-
44
- return data ;
45
- }
46
- }
47
-
48
- public static string [ ] Bootstrap3ContentFiles { get ; } = new string [ ]
49
- {
50
- "Identity/css/site.css" ,
51
- "Identity/js/site.js" ,
52
- "Identity/lib/bootstrap/dist/css/bootstrap-theme.css" ,
53
- "Identity/lib/bootstrap/dist/css/bootstrap-theme.css.map" ,
54
- "Identity/lib/bootstrap/dist/css/bootstrap-theme.min.css" ,
55
- "Identity/lib/bootstrap/dist/css/bootstrap-theme.min.css.map" ,
56
- "Identity/lib/bootstrap/dist/css/bootstrap.css" ,
57
- "Identity/lib/bootstrap/dist/css/bootstrap.css.map" ,
58
- "Identity/lib/bootstrap/dist/css/bootstrap.min.css" ,
59
- "Identity/lib/bootstrap/dist/css/bootstrap.min.css.map" ,
60
- "Identity/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot" ,
61
- "Identity/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.svg" ,
62
- "Identity/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf" ,
63
- "Identity/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff" ,
64
- "Identity/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2" ,
65
- "Identity/lib/bootstrap/dist/js/bootstrap.js" ,
66
- "Identity/lib/bootstrap/dist/js/bootstrap.min.js" ,
67
- "Identity/lib/bootstrap/dist/js/npm.js" ,
68
- "Identity/lib/jquery/LICENSE.txt" ,
69
- "Identity/lib/jquery/dist/jquery.js" ,
70
- "Identity/lib/jquery/dist/jquery.min.js" ,
71
- "Identity/lib/jquery/dist/jquery.min.map" ,
72
- "Identity/lib/jquery-validation/LICENSE.md" ,
73
- "Identity/lib/jquery-validation/dist/additional-methods.js" ,
74
- "Identity/lib/jquery-validation/dist/additional-methods.min.js" ,
75
- "Identity/lib/jquery-validation/dist/jquery.validate.js" ,
76
- "Identity/lib/jquery-validation/dist/jquery.validate.min.js" ,
77
- "Identity/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js" ,
78
- "Identity/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js" ,
79
- "Identity/lib/jquery-validation-unobtrusive/LICENSE.txt" ,
80
- } ;
81
-
82
29
public static string [ ] Bootstrap4ContentFiles { get ; } = new string [ ]
83
30
{
84
31
"Identity/favicon.ico" ,
@@ -118,12 +65,12 @@ public static TheoryData<IDictionary<string, string>, string, string[]> MSBuildI
118
65
"Identity/lib/jquery-validation-unobtrusive/LICENSE.txt" ,
119
66
} ;
120
67
121
- [ ConditionalTheory ]
122
- [ MemberData ( nameof ( MSBuildIdentityUIPackageOptions ) ) ]
68
+ [ ConditionalFact ]
123
69
[ SkipOnHelix ( "cert failure" , Queues = "OSX.1014.Amd64;OSX.1014.Amd64.Open" ) ]
124
70
[ QuarantinedTest ( "https://github.com/dotnet/aspnetcore/issues/19716" ) ]
125
- public async Task IdentityUIPackage_WorksWithDifferentOptions ( IDictionary < string , string > packageOptions , string versionValidator , string [ ] expectedFiles )
71
+ public async Task IdentityUIPackage_WorksWithDifferentOptions ( )
126
72
{
73
+ var packageOptions = new Dictionary < string , string > ( ) ;
127
74
Project = await ProjectFactory . GetOrCreateProject ( "identityuipackage" + string . Concat ( packageOptions . Values ) , Output ) ;
128
75
var useLocalDB = false ;
129
76
@@ -147,6 +94,7 @@ public async Task IdentityUIPackage_WorksWithDifferentOptions(IDictionary<string
147
94
Assert . True ( 0 == migrationsResult . ExitCode , ErrorMessages . GetFailedProcessMessage ( "run EF migrations" , Project , migrationsResult ) ) ;
148
95
Project . AssertEmptyMigration ( "razorpages" ) ;
149
96
97
+ var versionValidator = "Bootstrap v4.3.1" ;
150
98
using ( var aspNetProcess = Project . StartBuiltProjectAsync ( ) )
151
99
{
152
100
Assert . False (
@@ -156,7 +104,7 @@ public async Task IdentityUIPackage_WorksWithDifferentOptions(IDictionary<string
156
104
var response = await aspNetProcess . SendRequest ( "/Identity/lib/bootstrap/dist/css/bootstrap.css" ) ;
157
105
Assert . Equal ( HttpStatusCode . OK , response . StatusCode ) ;
158
106
Assert . Contains ( versionValidator , await response . Content . ReadAsStringAsync ( ) ) ;
159
- await ValidatePublishedFiles ( aspNetProcess , expectedFiles ) ;
107
+ await ValidatePublishedFiles ( aspNetProcess , Bootstrap4ContentFiles ) ;
160
108
}
161
109
162
110
using ( var aspNetProcess = Project . StartPublishedProjectAsync ( ) )
@@ -168,7 +116,7 @@ public async Task IdentityUIPackage_WorksWithDifferentOptions(IDictionary<string
168
116
var response = await aspNetProcess . SendRequest ( "/Identity/lib/bootstrap/dist/css/bootstrap.css" ) ;
169
117
Assert . Equal ( HttpStatusCode . OK , response . StatusCode ) ;
170
118
Assert . Contains ( versionValidator , await response . Content . ReadAsStringAsync ( ) ) ;
171
- await ValidatePublishedFiles ( aspNetProcess , expectedFiles ) ;
119
+ await ValidatePublishedFiles ( aspNetProcess , Bootstrap4ContentFiles ) ;
172
120
}
173
121
}
174
122
0 commit comments