@@ -43,7 +43,7 @@ void testPublicEndpoint() throws Exception {
4343
4444 @ Test
4545 void testProtectedEndpointWithoutAuthentication () throws Exception {
46- Set <String > paths = Set .of ("/spring-admin" , "/actuator/info" );
46+ Set <String > paths = Set .of ("/spring-admin" , "/actuator/info" , "/actuator/sbom" , "/actuator/sbom/application" );
4747 for (String path : paths ) {
4848 mvc .perform (get (path ))
4949 .andExpect (status ().isUnauthorized ());
@@ -53,7 +53,7 @@ void testProtectedEndpointWithoutAuthentication() throws Exception {
5353 @ Test
5454 @ WithMockUser (username = "user_without_roles" , roles = {"SOME_UNUSED_ROLE" })
5555 void testProtectedEndpointsWithUnauthorizedUser () throws Exception {
56- Set <String > paths = Set .of ("/actuator/info" );
56+ Set <String > paths = Set .of ("/actuator/info" , "/actuator/sbom" , "/actuator/sbom/application" );
5757 for (String path : paths ) {
5858 mvc .perform (get (path ))
5959 .andExpect (status ().isForbidden ());
@@ -63,7 +63,8 @@ void testProtectedEndpointsWithUnauthorizedUser() throws Exception {
6363 @ Test
6464 @ WithMockUser (username = "operator" , roles = {Roles .RoleNames .OPERATOR })
6565 void testOperatorEndpointIsAccessible () throws Exception {
66- Map <String , HttpStatus > paths = Map .of ("/spring-admin" , HttpStatus .NOT_FOUND , "/actuator/info" , HttpStatus .OK );
66+ Map <String , HttpStatus > paths = Map .of ("/spring-admin" , HttpStatus .NOT_FOUND , "/actuator/info" , HttpStatus .OK , "/actuator/sbom" ,
67+ HttpStatus .OK , "/actuator/sbom/application" , HttpStatus .OK );
6768 for (Map .Entry <String , HttpStatus > entry : paths .entrySet ()) {
6869 mvc .perform (get (entry .getKey ()))
6970 .andExpect (status ().is (entry .getValue ()
0 commit comments