File tree 1 file changed +4
-4
lines changed
commons/src/test/java/org/restheart/exchange
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -250,12 +250,12 @@ public void testPathTemplatedMappedRequest() {
250
250
*/
251
251
@ Test
252
252
public void testPathTemplatedMappedRequestWithWildcard () {
253
- var requestPath = "/acme/coll/docid" ;
253
+ var requestPath = "/acme/coll/docid/foo " ;
254
254
255
255
// Here mimic MongoService that attach PathTemplateMatch to the exchange
256
256
PathTemplateMatcher <MongoMount > templateMongoMounts = new PathTemplateMatcher <>();
257
- String whatUri = "/restheart/{tenant}_{coll}" ;
258
- String whereUri = "/{tenant}/{coll}/* " ;
257
+ String whatUri = "/restheart/{tenant}_{coll}/{*} " ;
258
+ String whereUri = "/{tenant}/{coll}/{*} " ;
259
259
var mongoMount = new MongoMount (whatUri ,whereUri );
260
260
templateMongoMounts .add (mongoMount .uri , mongoMount );
261
261
@@ -268,7 +268,7 @@ public void testPathTemplatedMappedRequestWithWildcard() {
268
268
269
269
MongoRequest request = MongoRequest .init (ex , whereUri , whatUri );
270
270
271
- assertEquals ("/restheart/acme_coll/docid" , request .getUnmappedRequestUri ());
271
+ assertEquals ("/restheart/acme_coll/docid/foo " , request .getMongoResourceUri ());
272
272
assertEquals ("restheart" , request .getDBName ());
273
273
assertEquals ("acme_coll" , request .getCollectionName ());
274
274
}
You can’t perform that action at this time.
0 commit comments