@@ -1828,6 +1828,13 @@ func (s) TestXDSResolverHTTPFilters(t *testing.T) {
1828
1828
"B" : {Weight : 1 },
1829
1829
},
1830
1830
ActionType : xdsresource .RouteActionUnsupported ,
1831
+ }, {
1832
+ Prefix : newStringP ("2" ),
1833
+ WeightedClusters : map [string ]xdsresource.WeightedCluster {
1834
+ "A" : {Weight : 1 },
1835
+ "B" : {Weight : 1 },
1836
+ },
1837
+ ActionType : xdsresource .RouteActionNonForwardingAction ,
1831
1838
}},
1832
1839
},
1833
1840
},
@@ -1836,8 +1843,11 @@ func (s) TestXDSResolverHTTPFilters(t *testing.T) {
1836
1843
"1" : {
1837
1844
{"build:foo1" , "override:foo2" , "build:bar1" , "override:bar2" , "newstream:foo1" , "newstream:bar1" , "done:bar1" , "done:foo1" },
1838
1845
},
1846
+ "2" : {
1847
+ {"build:foo1" , "override:foo2" , "build:bar1" , "override:bar2" , "newstream:foo1" , "newstream:bar1" , "done:bar1" , "done:foo1" },
1848
+ },
1839
1849
},
1840
- selectErr : errMatchedRouteTypeNotRouteActionRoute .Error (),
1850
+ selectErr : errUnsupportedClientRouteAction .Error (),
1841
1851
},
1842
1852
{
1843
1853
name : "NewStream error; ensure earlier interceptor Done is still called" ,
@@ -1857,13 +1867,6 @@ func (s) TestXDSResolverHTTPFilters(t *testing.T) {
1857
1867
"B" : {Weight : 1 },
1858
1868
},
1859
1869
ActionType : xdsresource .RouteActionRoute ,
1860
- }, {
1861
- Prefix : newStringP ("2" ),
1862
- WeightedClusters : map [string ]xdsresource.WeightedCluster {
1863
- "A" : {Weight : 1 },
1864
- "B" : {Weight : 1 },
1865
- },
1866
- ActionType : xdsresource .RouteActionRoute ,
1867
1870
}},
1868
1871
},
1869
1872
},
@@ -1872,9 +1875,6 @@ func (s) TestXDSResolverHTTPFilters(t *testing.T) {
1872
1875
"1" : {
1873
1876
{"build:foo1" , "build:bar1" , "newstream:foo1" , "newstream:bar1" /* <err in bar1 NewStream> */ , "done:foo1" },
1874
1877
},
1875
- "2" : {
1876
- {"build:foo1" , "build:bar1" , "newstream:foo1" , "newstream:bar1" /* <err in bar1 NewSteam> */ , "done:foo1" },
1877
- },
1878
1878
},
1879
1879
newStreamErr : "bar newstream err" ,
1880
1880
},
0 commit comments