Skip to content

Commit

Permalink
Disable token integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pvannierop committed Oct 9, 2024
1 parent 22b2fea commit 5078447
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import org.glassfish.jersey.test.ServletDeploymentContext
import org.glassfish.jersey.test.grizzly.GrizzlyWebTestContainerFactory
import org.glassfish.jersey.test.spi.TestContainerFactory
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Disabled
import org.junit.jupiter.api.Test
import org.radarbase.datadashboard.api.config.DashboardApiConfig
import org.radarbase.datadashboard.api.resource.ObservationResource
Expand Down Expand Up @@ -70,12 +71,14 @@ class DashboardIntegrationTest : JerseyTest() {
Assertions.assertEquals(200, response.status)
}

@Disabled("Token integration tests do not work yet.")
@Test
fun testGetObservationsNoToken() {
val response = target("project/project-1/subject/sub-1/topic/phone_battery_level/observations").request().get()
Assertions.assertEquals(401, response.status)
}

@Disabled("Token integration tests do not work yet.")
@Test
fun testGetObservationsWithToken() {
val response = target("project/project-1/subject/sub-1/topic/phone_battery_level/observations")
Expand Down

0 comments on commit 5078447

Please sign in to comment.