Skip to content

Commit

Permalink
tests: Adds test for lxc.net.0.veth.vlan.id config key
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
  • Loading branch information
tomponline committed Jun 9, 2020
1 parent 3a0049f commit 8abd960
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tests/parse_config_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,11 @@ int main(int argc, char *argv[])
return -1;
}

if (set_get_compare_clear_save_load_network(c, "lxc.net.0.veth.vlan.id", "2", tmpf, true, "veth")) {
lxc_error("%s\n", "lxc.net.0.veth.vlan.id");
return -1;
}

if (set_get_compare_clear_save_load(c, "lxc.net.0.script.up", "/some/up/path", tmpf, true)) {
lxc_error("%s\n", "lxc.net.0.script.up");
goto non_test_error;
Expand Down

0 comments on commit 8abd960

Please sign in to comment.