summaryrefslogtreecommitdiff
path: root/dryad/rusalka_test.go
AgeCommit message (Collapse)AuthorFilesLines
2018-08-01Fix tests in CIAleksander Mistewicz1-1/+3
It skips tests when information on current running user is unavailable. Local IP address is retrieved by lookup of "localhost". IP addresses are used instead of nil values. Interface of uuid package has been changed so code using it has been adapted. Mock generated for stm.Interface has been updated. Change-Id: Ide48575fa7a589c0cad00478898c2a651fda77d5 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2018-06-18Refactor tests to use mock instead of real STMAleksander Mistewicz1-17/+41
Testing this part of code was troublesome as a working MuxPi was needed. Due to recent changes in git.tizen.org/tools/muxpi/sw/nanopi/stm, functions of STM are exposed with Interface. It is easier to test using a mockup. Change-Id: I5c2be2ae717b448f3182896074faefd8f2ea1971 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
2018-03-05Add dryad packageAleksander Mistewicz1-0/+78
Package dryad provides: * implementation of Dryad interface * utilities to manage Dryad and its users Verification steps: // compile tests GOARCH=arm GOARM=7 GOOS=linux ginkgo build -cover dryad // copy dryad/dryad.test to device // run everything ./dryad.test -ginkgo.v // run without measurements ./dryad.test -ginkgo.v -ginkgo.skipMeasurements // run prepare only ./dyrad.test -ginkgo.focus "should prepare" // private key will be printed on stderr // it can be used to verify that SSH key is properly installed Currently dryad is being run as root on muxpi. Future patches will probably use sudo and require configured file in /etc/sudoers.d/ directory. Change-Id: I095361ffd1f4b2b3fa5dfe2c000f960dd32886e2 Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>