forked from cilium/cilium
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipsec: add
UnsetTestIPSecKey
API for testing purpose
This commit introduces the `UnsetTestIPSecKey` API for testing purpose only. This function is used to reset the current state of IPSec global variables during testing. In particular, it helps to prevent loading two IPSec keys with the same SPI in `node_linux_test`, which would cause the tests to fail after the previous commit. With this function, it is easy to reset the internal state of the IPSec-related variables either while executing a test or when tearing down a test suite. This function is also used in the local `ipsec_linux_test.go`, to expect a coherent behavior while tearing down a test suite. Signed-off-by: Simone Magnani <[email protected]>
- Loading branch information
1 parent
05128f4
commit c8e0131
Showing
3 changed files
with
13 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters