Skip to content

Commit

Permalink
Fix the master build
Browse files Browse the repository at this point in the history
  • Loading branch information
anatol-sialitski authored and rymsha committed Jan 7, 2025
1 parent 625dc7a commit d548cde
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,14 @@ void testHttpOptions()
WebResponse res = this.handler.handle( webRequest );
assertNotNull( res );
assertEquals( HttpStatus.OK, res.getStatus() );
assertEquals( "GET,POST,HEAD,OPTIONS,PUT,DELETE,TRACE", res.getHeaders().get( "Allow" ) );
assertEquals( "GET,POST,HEAD,OPTIONS,PUT,DELETE,TRACE,PATCH", res.getHeaders().get( "Allow" ) );

when( webRequest.getEndpointPath() ).thenReturn( "/api/com.enonic.app.myapp:api-key" );

res = this.handler.handle( webRequest );
assertNotNull( res );
assertEquals( HttpStatus.OK, res.getStatus() );
assertEquals( "GET,POST,HEAD,OPTIONS,PUT,DELETE,TRACE", res.getHeaders().get( "Allow" ) );
assertEquals( "GET,POST,HEAD,OPTIONS,PUT,DELETE,TRACE,PATCH", res.getHeaders().get( "Allow" ) );
}

@Test
Expand Down

0 comments on commit d548cde

Please sign in to comment.