From d981efa97603594080d90956eb9e08bce8f4c371 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Thu, 8 Dec 2016 17:50:03 +0100 Subject: oap: add encode/decode unit test Change-Id: I0e14099e2fc18e333a73d38bda059d53a8ca9944 --- tests/oap/oap_test.ok | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 tests/oap/oap_test.ok (limited to 'tests/oap/oap_test.ok') diff --git a/tests/oap/oap_test.ok b/tests/oap/oap_test.ok new file mode 100644 index 00000000..9260d442 --- /dev/null +++ b/tests/oap/oap_test.ok @@ -0,0 +1,42 @@ +Testing OAP messages +- Register Request +encoded message: +04 30 02 23 42 +ok +- Register Error +encoded message: +05 02 01 6f +ok +- Register Result +encoded message: +06 +ok +- Challenge Request, no rand, no autn +encoded message: +08 +ok +- Challenge Request, with rand, no autn +encoded message: +08 20 10 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 +ok +- Challenge Request, no rand, with autn +encoded message: +08 23 10 ce c4 e3 84 8a 33 00 00 86 78 11 58 ca 40 f1 36 +ok +- Challenge Request, with rand, with autn +encoded message: +08 20 10 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 23 10 ce c4 e3 84 8a 33 00 00 86 78 11 58 ca 40 f1 36 +ok +- Challenge Error +encoded message: +09 02 01 17 +ok +- Challenge Result +encoded message: +0a 24 08 01 02 03 04 05 06 07 08 +ok +- Sync Request +encoded message: +0c 25 10 10 20 30 40 50 60 70 80 90 a0 b0 c0 d0 e0 f0 01 +ok +Done. -- cgit v1.2.3