Add Dockerfile to support unit testing alarm-go 69/3969/6
authorLott, Christopher (cl778h) <cl778h@att.com>
Wed, 3 Jun 2020 12:52:14 +0000 (08:52 -0400)
committerLott, Christopher (cl778h) <cl778h@att.com>
Fri, 5 Jun 2020 15:05:48 +0000 (11:05 -0400)
commit3e8e2aae7fd5b5e89b5b5ada8483d5953cd7d3d7
tree06d182c581207eaa39e36f71df1f8d4ae640b998
parent6b1d437b586c6d3b606e3fa7ce0f95cb18336d60
Add Dockerfile to support unit testing alarm-go

This dockerfile installs the prerequisites to compile the alarm-go
library and run the golang unit tests.
Add logging statements to dump AlarmMessage as struct and as marshalled
to JSON.
Add JSON schema that can be used to validate payloads.

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: Ib46c524e2e0593124f79be64afa23847612897c8
adapter/build_adapter_ubuntu.sh
adapter/cmd/adapter.go
alarm-schema.json [new file with mode: 0644]
alarm/Dockerfile-Unit-Test [new file with mode: 0644]
alarm/alarm.go