@@ -69,65 +69,6 @@ public async Task LocalFunctionCall()
6969 }
7070 }
7171
72- [ Fact ]
73- [ TestTrace ]
74- public async Task LocalFunctionCallForNonAlphanumericProxyName ( )
75- {
76- using ( var client = CreateClient ( ) )
77- {
78- HttpResponseMessage response = await client . GetAsync ( $ "MyHttpWithNonAlphanumericProxyName?code={ _fixture . FunctionDefaultKey } ") ;
79-
80- string content = await response . Content . ReadAsStringAsync ( ) ;
81- _fixture . Assert . Equals ( "200" , response . StatusCode . ToString ( "D" ) ) ;
82- _fixture . Assert . Equals ( "Pong" , content ) ;
83- }
84- }
85-
86- [ Fact ]
87- [ TestTrace ]
88- public async Task CatchAllApis ( )
89- {
90- using ( var client = CreateClient ( ) )
91- {
92- HttpResponseMessage response = await client . GetAsync ( $ "api/proxy/blahblah?code={ _fixture . FunctionDefaultKey } ") ;
93-
94- string content = await response . Content . ReadAsStringAsync ( ) ;
95- _fixture . Assert . Equals ( "200" , response . StatusCode . ToString ( "D" ) ) ;
96- _fixture . Assert . Equals ( "Pong" , content ) ;
97- }
98- }
99-
100- [ Fact ]
101- [ TestTrace ]
102- public async Task CatchAll ( )
103- {
104- using ( var client = CreateClient ( ) )
105- {
106- HttpResponseMessage response = await client . GetAsync ( $ "proxy/blahblah?code={ _fixture . FunctionDefaultKey } ") ;
107-
108- string content = await response . Content . ReadAsStringAsync ( ) ;
109- _fixture . Assert . Equals ( "200" , response . StatusCode . ToString ( "D" ) ) ;
110- _fixture . Assert . Equals ( "Pong" , content ) ;
111- }
112- }
113-
114- [ Fact ]
115- [ TestTrace ]
116- public async Task LongRoute ( )
117- {
118- var longRoute = "test123412341234123412341234123412341234123412341234123412341234123412341234123421341234123423141234123412341234123412341234123412341234123412341234123412341234123412341234123412341234213423141234123412341234123412341234123412341234123412341234123412341234123412341234123412341234" ;
119- using ( var client = CreateClient ( ) )
120- {
121- HttpResponseMessage response = await client . GetAsync ( longRoute ) ;
122-
123- string content = await response . Content . ReadAsStringAsync ( ) ;
124-
125- // This is to make sure the url is greater than the default asp.net 260 characters.
126- _fixture . Assert . True ( longRoute . Length > 260 ) ;
127- _fixture . Assert . Equals ( "200" , response . StatusCode . ToString ( "D" ) ) ;
128- }
129- }
130-
13172 public HttpClient CreateClient ( )
13273 {
13374 return new HttpClient
0 commit comments