|
|
|
@ -27,7 +27,6 @@ import ch.psi.daq.queryrest.controller.QueryRestController;
|
|
|
|
|
import ch.psi.daq.queryrest.filter.CorsFilter;
|
|
|
|
|
import ch.psi.daq.test.cassandra.admin.CassandraTestAdmin;
|
|
|
|
|
import ch.psi.daq.test.queryrest.AbstractDaqRestTest;
|
|
|
|
|
import ch.psi.daq.test.queryrest.query.DummyArchiverApplianceReader;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Tests the {@link DaqController} implementation.
|
|
|
|
@ -68,15 +67,16 @@ public class QueryRestControllerJsonTest extends AbstractDaqRestTest {
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channels[0]").value("BoolScalar"))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channels[1]").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channels[1]").value("BoolWaveform"))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1]").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].backend").value(Backend.archiverappliance.name()))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].channels").isArray())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].channels[0]").exists())
|
|
|
|
|
.andExpect(
|
|
|
|
|
MockMvcResultMatchers.jsonPath("$[1].channels[0]").value(DummyArchiverApplianceReader.TEST_CHANNEL_1))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].channels[1]").exists())
|
|
|
|
|
.andExpect(
|
|
|
|
|
MockMvcResultMatchers.jsonPath("$[1].channels[1]").value(DummyArchiverApplianceReader.TEST_CHANNEL_2));
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1]").exists())
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1].backend").value(Backend.archiverappliance.name()))
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1].channels").isArray())
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1].channels[0]").exists())
|
|
|
|
|
// .andExpect(
|
|
|
|
|
// MockMvcResultMatchers.jsonPath("$[1].channels[0]").value(DummyArchiverApplianceReader.TEST_CHANNEL_1))
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1].channels[1]").exists())
|
|
|
|
|
// .andExpect(
|
|
|
|
|
// MockMvcResultMatchers.jsonPath("$[1].channels[1]").value(DummyArchiverApplianceReader.TEST_CHANNEL_2))
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -100,10 +100,11 @@ public class QueryRestControllerJsonTest extends AbstractDaqRestTest {
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channels[2]").value("UInt32Scalar"))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channels[3]").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channels[3]").value("UInt32Waveform"))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1]").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].backend").value(Backend.archiverappliance.name()))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].channels").isArray())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].channels[0]").doesNotExist());
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1]").exists())
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1].backend").value(Backend.archiverappliance.name()))
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1].channels").isArray())
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1].channels[0]").doesNotExist())
|
|
|
|
|
;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@ -155,11 +156,12 @@ public class QueryRestControllerJsonTest extends AbstractDaqRestTest {
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channels").isArray())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channels[23]").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channels[24]").doesNotExist())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1]").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].backend").value(Backend.archiverappliance.name()))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].channels").isArray())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].channels[2]").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].channels[3]").doesNotExist());
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1]").exists())
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1].backend").value(Backend.archiverappliance.name()))
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1].channels").isArray())
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1].channels[2]").exists())
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1].channels[3]").doesNotExist())
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
// each reload add another channel
|
|
|
|
|
request.setReload(true);
|
|
|
|
@ -180,11 +182,12 @@ public class QueryRestControllerJsonTest extends AbstractDaqRestTest {
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channels").isArray())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channels[24]").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channels[25]").doesNotExist())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1]").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].backend").value(Backend.archiverappliance.name()))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].channels").isArray())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].channels[3]").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].channels[4]").doesNotExist());
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1]").exists())
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1].backend").value(Backend.archiverappliance.name()))
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1].channels").isArray())
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1].channels[3]").exists())
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1].channels[4]").doesNotExist())
|
|
|
|
|
;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@ -293,13 +296,13 @@ public class QueryRestControllerJsonTest extends AbstractDaqRestTest {
|
|
|
|
|
.andExpect(MockMvcResultMatchers.status().isOk())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$").isArray())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0]").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channel").value(TEST_CHANNEL_01))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channel.name").value(TEST_CHANNEL_01))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data[0].pulseId").value(10))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data[0].globalMillis").value(100))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data[1].pulseId").value(11))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data[1].globalMillis").value(110))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1]").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].channel").value(TEST_CHANNEL_02))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].channel.name").value(TEST_CHANNEL_02))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].data").isArray())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].data[0].pulseId").value(10))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].data[0].globalMillis").value(100))
|
|
|
|
@ -329,18 +332,21 @@ public class QueryRestControllerJsonTest extends AbstractDaqRestTest {
|
|
|
|
|
.andExpect(MockMvcResultMatchers.status().isOk())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$").isArray())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0]").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channel").value(TEST_CHANNEL_01))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channel").isMap())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channel.name").value(TEST_CHANNEL_01))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data[0].pulseId").value(10))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data[0].globalMillis").value(100))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data[1].pulseId").value(11))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data[1].globalMillis").value(110))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1]").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].channel").value(TEST_CHANNEL_02))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].data").isArray())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].data[0].pulseId").value(10))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].data[0].globalMillis").value(100))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].data[1].pulseId").value(11))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].data[1].globalMillis").value(110));
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1]").exists())
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1].channel").isMap())
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1].channel.name").value(TEST_CHANNEL_02))
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1].data").isArray())
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1].data[0].pulseId").value(10))
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1].data[0].globalMillis").value(100))
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1].data[1].pulseId").value(11))
|
|
|
|
|
// .andExpect(MockMvcResultMatchers.jsonPath("$[1].data[1].globalMillis").value(110))
|
|
|
|
|
;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
@ -373,13 +379,13 @@ public class QueryRestControllerJsonTest extends AbstractDaqRestTest {
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0]").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0]").isArray())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0][0]").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0][0].channel").value(TEST_CHANNEL_01))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0][0].channel.name").value(TEST_CHANNEL_01))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0][0].data[0].pulseId").value(10))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0][0].data[0].globalMillis").value(100))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0][0].data[1].pulseId").value(11))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0][0].data[1].globalMillis").value(110))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0][1]").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0][1].channel").value(TEST_CHANNEL_02))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0][1].channel.name").value(TEST_CHANNEL_02))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0][1].data").isArray())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0][1].data[0].pulseId").value(10))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0][1].data[0].globalMillis").value(100))
|
|
|
|
@ -388,7 +394,7 @@ public class QueryRestControllerJsonTest extends AbstractDaqRestTest {
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1]").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1]").isArray())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1][0]").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1][0].channel").value(testChannel3))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1][0].channel.name").value(testChannel3))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1][0].data[0].pulseId").value(10))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1][0].data[0].globalMillis").value(100))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1][0].data[1].pulseId").value(11))
|
|
|
|
@ -414,14 +420,16 @@ public class QueryRestControllerJsonTest extends AbstractDaqRestTest {
|
|
|
|
|
.andExpect(MockMvcResultMatchers.status().isOk())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$").isArray())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0]").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channel").value(TEST_CHANNEL_01))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channel").isMap())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channel.name").value(TEST_CHANNEL_01))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data").isArray())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data[0].pulseId").value(10))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data[0].globalMillis").value(100))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data[1].pulseId").value(11))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data[1].globalMillis").value(110))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1]").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].channel").value(TEST_CHANNEL_02))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].channel").isMap())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].channel.name").value(TEST_CHANNEL_02))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].data").isArray())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].data[0].pulseId").value(10))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].data[0].globalMillis").value(100))
|
|
|
|
@ -453,14 +461,16 @@ public class QueryRestControllerJsonTest extends AbstractDaqRestTest {
|
|
|
|
|
.andExpect(MockMvcResultMatchers.status().isOk())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$").isArray())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0]").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channel").value(TEST_CHANNEL_01))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channel.name").value(TEST_CHANNEL_01))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channel.backend").value("databuffer"))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data").isArray())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data[0].pulseId").value(10))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data[0].globalMillis").value(100))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data[1].pulseId").value(11))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data[1].globalMillis").value(110))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1]").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].channel").value(TEST_CHANNEL_02))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].channel.name").value(TEST_CHANNEL_02))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].channel.backend").value("databuffer"))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].data").isArray())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].data[0].pulseId").value(10))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[1].data[0].globalMillis").value(100))
|
|
|
|
@ -489,8 +499,8 @@ public class QueryRestControllerJsonTest extends AbstractDaqRestTest {
|
|
|
|
|
.andExpect(MockMvcResultMatchers.status().isOk())
|
|
|
|
|
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channel").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channel").value(TEST_CHANNEL_NAMES[0]))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channel").isMap())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channel.name").value(TEST_CHANNEL_NAMES[0]))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data.minima").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data.minima.min").exists())
|
|
|
|
@ -535,7 +545,9 @@ public class QueryRestControllerJsonTest extends AbstractDaqRestTest {
|
|
|
|
|
.andExpect(MockMvcResultMatchers.status().isOk())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$").isArray())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0]").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channel").value(TEST_CHANNEL_01))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channel").isMap())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channel.name").value(TEST_CHANNEL_01))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channel.backend").value(Backend.databuffer.name()))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data").isArray())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data[0].pulseId").value(10))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data[0].globalMillis").value(100))
|
|
|
|
@ -572,7 +584,9 @@ public class QueryRestControllerJsonTest extends AbstractDaqRestTest {
|
|
|
|
|
.andExpect(MockMvcResultMatchers.status().isOk())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$").isArray())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0]").exists())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channel").value(TEST_CHANNEL_01))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channel").isMap())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channel.name").value(TEST_CHANNEL_01))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].channel.backend").value(Backend.databuffer.name()))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data").isArray())
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data[0].pulseId").value(100))
|
|
|
|
|
.andExpect(MockMvcResultMatchers.jsonPath("$[0].data[0].globalMillis").value(1000))
|
|
|
|
|