This PR adds a cleanup method to make sure each test works in its entirety and there are no left outs.
Also all tests use the same common functions for scenarios like create, import, generate, encrypt and decrypt etc.
Different kind of tests can be executed using go test -v -run="<test>" command.
e.g. go test -v -run="TestGatewayMem" or go test -v -fs.path=./keys -run="TestGatewayFS"
This PR adds a cleanup method to make sure each test works in its entirety and there are no left outs. Also all tests use the same common functions for scenarios like
create
,import
,generate
,encrypt
anddecrypt
etc.Different kind of tests can be executed using
go test -v -run="<test>"
command. e.g.go test -v -run="TestGatewayMem"
orgo test -v -fs.path=./keys -run="TestGatewayFS"