File tree Expand file tree Collapse file tree 1 file changed +2
-28
lines changed
test/Microsoft.OpenApi.SmokeTests Expand file tree Collapse file tree 1 file changed +2
-28
lines changed Original file line number Diff line number Diff line change @@ -95,39 +95,13 @@ public async Task EnsureThatICouldParse(string url)
95
95
{
96
96
output . WriteLine ( $ "Errors parsing { url } ") ;
97
97
output . WriteLine ( String . Join ( "\n " , diagnostic . Errors ) ) ;
98
- Assert . True ( false ) ;
98
+ // Assert.True(false); // Uncomment to identify descriptions with errors.
99
99
}
100
100
101
101
Assert . NotNull ( openApiDocument ) ;
102
102
stopwatch . Stop ( ) ;
103
103
output . WriteLine ( $ "Parsing { url } took { stopwatch . ElapsedMilliseconds } ms.") ;
104
104
}
105
105
106
- //[Theory(DisplayName = "APIs.guru")]
107
- //[MemberData(nameof(GetSchemas))]
108
- public async Task EnsureAllErrorsAreHandled ( string url )
109
- {
110
- var stopwatch = new Stopwatch ( ) ;
111
-
112
- var response = await _httpClient . GetAsync ( url ) ;
113
- if ( ! response . IsSuccessStatusCode )
114
- {
115
- output . WriteLine ( $ "Couldn't load { url } ") ;
116
- return ;
117
- }
118
- await response . Content . LoadIntoBufferAsync ( ) ;
119
- var stream = await response . Content . ReadAsStreamAsync ( ) ;
120
-
121
- stopwatch . Start ( ) ;
122
-
123
- var openApiDocument = new OpenApiStreamReader ( ) . Read ( stream , out var diagnostic ) ;
124
-
125
- output . WriteLine ( String . Join ( "\n " , diagnostic . Errors ) ) ;
126
- Assert . Equal ( OpenApiSpecVersion . OpenApi2_0 , diagnostic . SpecificationVersion ) ;
127
-
128
- Assert . NotNull ( openApiDocument ) ;
129
- stopwatch . Stop ( ) ;
130
- output . WriteLine ( $ "Parsing { url } took { stopwatch . ElapsedMilliseconds } ms and has { diagnostic . Errors . Count } errors.") ;
131
- }
132
- }
106
+ }
133
107
}
You can’t perform that action at this time.
0 commit comments