summaryrefslogtreecommitdiffstats
path: root/hv-collector-domain/src/test
diff options
context:
space:
mode:
authorPiotr Jaszczyk <piotr.jaszczyk@nokia.com>2018-10-04 08:04:00 +0200
committerPiotr Jaszczyk <piotr.jaszczyk@nokia.com>2018-10-04 08:04:00 +0200
commit7b178765c00751fd99399eec76f1006270ae41dd (patch)
treeb89e5b9ab3228e37cb0d5f0a0e83568190a4a90b /hv-collector-domain/src/test
parentde8e834e2bfc714e7a588f7470fe2ef7ba368275 (diff)
Change magic byte from 0xFF to 0xAA
In final protocol specification the value has changed to 0xAA. Change-Id: Id86c15117732b03bca38c674960d5eba8da88a6e Issue-ID: DCAEGEN2-854 Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Diffstat (limited to 'hv-collector-domain/src/test')
-rw-r--r--hv-collector-domain/src/test/kotlin/org/onap/dcae/collectors/veshv/domain/WireFrameCodecsTest.kt8
1 files changed, 4 insertions, 4 deletions
diff --git a/hv-collector-domain/src/test/kotlin/org/onap/dcae/collectors/veshv/domain/WireFrameCodecsTest.kt b/hv-collector-domain/src/test/kotlin/org/onap/dcae/collectors/veshv/domain/WireFrameCodecsTest.kt
index 988789d2..6756bf82 100644
--- a/hv-collector-domain/src/test/kotlin/org/onap/dcae/collectors/veshv/domain/WireFrameCodecsTest.kt
+++ b/hv-collector-domain/src/test/kotlin/org/onap/dcae/collectors/veshv/domain/WireFrameCodecsTest.kt
@@ -183,16 +183,16 @@ object WireFrameCodecsTest : Spek({
it("should return error when payload message header does not fit") {
val buff = Unpooled.buffer()
- .writeByte(0xFF)
+ .writeByte(0xAA)
.writeBytes("MOMOM".toByteArray())
decoder.decodeFirst(buff).assertFailedWithError { it.isInstanceOf(MissingWireFrameHeaderBytes::class.java) }
assertBufferIntact(buff)
}
- it("should return error when length looks ok but first byte is not 0xFF") {
+ it("should return error when length looks ok but first byte is not 0xAA") {
val buff = Unpooled.buffer()
- .writeByte(0x69)
+ .writeByte(0xFF)
.writeBytes("some garbage".toByteArray())
decoder.decodeFirst(buff).assertFailedWithError { it.isInstanceOf(InvalidWireFrameMarker::class.java) }
@@ -262,7 +262,7 @@ object WireFrameCodecsTest : Spek({
payloadSize = payload.size)
- assertTrue(decoder.decodeFirst(encoder.encode(input).writeByte(0xFF)).isRight())
+ assertTrue(decoder.decodeFirst(encoder.encode(input).writeByte(0xAA)).isRight())
}
}
}