tests: fix tests without libjansson support (--enable-json-validation=no)

This commit is contained in:
Thomas Haller 2017-01-17 23:44:03 +01:00
parent 39455bb99f
commit a5acd0bdc6
2 changed files with 4 additions and 2 deletions

View file

@ -4708,7 +4708,9 @@ test_nm_utils_check_valid_json (void)
#else
/* Without JSON library everything except empty string is considered valid */
_json_config_check_valid ("{ }", TRUE);
_json_config_check_valid ("{'%!-a1", TRUE);
_json_config_check_valid ("{'%!-a1} ", TRUE);
_json_config_check_valid (" {'%!-a1}", TRUE);
_json_config_check_valid ("{'%!-a1", FALSE);
#endif
}

View file

@ -1,4 +1,4 @@
DEVICE=team0
ONBOOT=no
BOOTPROTO=dhcp
TEAM_CONFIG="{ foobar }"
TEAM_CONFIG="{ foobar }x"