constellation/state
Otto Bittner 7cada2c9e8 Add goleak to all tests (#227)
* Run goleak as part of all tests
We are already using goleak in various tests.
This commit adds a TestMain to all remaining tests
and calls goleak.VerifyTestMain in them.
* Add goleak to debugd/deploy package and fix bug.
* Run go mod tidy
* Fix integration tests
* Move goleak invocation for mount integration test
* Ignore leak in state integration tests

Co-authored-by: Fabian Kammel <fk@edgelss.systems>
2022-06-30 15:24:36 +02:00
..
cmd AB#2114 Add QEMU metadata API (#237) 2022-06-30 11:14:26 +02:00
keyservice Add goleak to all tests (#227) 2022-06-30 15:24:36 +02:00
mapper Clean up interface 2022-05-12 13:53:39 +02:00
setup Add goleak to all tests (#227) 2022-06-30 15:24:36 +02:00
test Add goleak to all tests (#227) 2022-06-30 15:24:36 +02:00
README.md Add state disk volume mounter 2022-04-11 15:41:51 +02:00

State

Files and source code for mounting persistent state disks

Testing

Integration test is available in state/test/integration_test.go. The integration test requires root privileges since it uses dm-crypt. Build and run the test:

go test -c ./state/test/
sudo ./test.test