Improve O1 agent UT coverage 85/4985/2
authorTimo Tietavainen <timo.tietavainen@nokia.com>
Tue, 3 Nov 2020 21:21:00 +0000 (23:21 +0200)
committerTimo Tietavainen <timo.tietavainen@nokia.com>
Wed, 4 Nov 2020 05:58:03 +0000 (07:58 +0200)
commita32f10007e6783f31b6b7af8b00bcc31ffae4660
tree962dc0bc55a116968fdcdad295983dfd0ea3a555
parent757f1ec1cfb0fa457bfcf5b4fc9550205cce3510
Improve O1 agent UT coverage

Improve existing unit tests coverage for O1 Agent's NBI package and implement
new unit tests for SBI and main packages.
Fix also few missing nil value checks found from the source code.

Signed-off-by: Timo Tietavainen <timo.tietavainen@nokia.com>
Change-Id: I3bd0cc1193730960e0bbfe8a7563a167edf4df8f
agent/build_o1agent.sh
agent/cmd/o1agent.go
agent/cmd/o1agent_test.go [new file with mode: 0644]
agent/pkg/nbi/nbi.go
agent/pkg/nbi/nbi_test.go
agent/pkg/sbi/sbi.go
agent/pkg/sbi/sbi_test.go [new file with mode: 0644]
agent/pkg/sbi/types.go