snapweb icon indicating copy to clipboard operation
snapweb copied to clipboard

Mock netfilter tests

Open rmescandon opened this issue 7 years ago • 0 comments

Current netfilter go tests are using real device network interfaces. That is not what is supposed to be, as they should be unit tests independent of any network status. The solution is using helper methods for network interfaces operations, able to be mocked when testing.

NOTE: Prerequisite branch (https://github.com/snapcore/snapweb/pull/231) must be landed before this one.

rmescandon avatar Jul 06 '17 11:07 rmescandon