Skip to content

Commit

Permalink
fix up non-registered publication test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Feb 25, 2025
1 parent 5386a49 commit 9995e66
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/test/java/io/cryostat/discovery/DiscoveryTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@
import io.restassured.http.ContentType;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.MethodOrderer.OrderAnnotation;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Order;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestMethodOrder;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.NullAndEmptySource;
import org.junit.jupiter.params.provider.ValueSource;
Expand Down Expand Up @@ -141,15 +144,15 @@ void rejectsPublishForUnregisteredPlugin() {
given().log()
.all()
.when()
.body(Map.of("realm", "test_realm", "callback", "http://localhost:8081"))
.body(List.of())
.contentType(ContentType.JSON)
.post("/api/v4/discovery")
.post("/api/v4/discovery/abcd1234")
.then()
.log()
.all()
.and()
.assertThat()
.statusCode(400);
.statusCode(404);
}
}
}

0 comments on commit 9995e66

Please sign in to comment.