index c256b232ae049096eaace1a86652ff84a77b6e5d..dcf72fa5947638b12879f9d228185a1c004bde0b 100644 (file)
int expected;
} golden_data[] = {
/* TODO: check the name of the expected hosts */
- { "host = 'a'", NULL, 1 },
- { "host = 'a'", "host = 'x'", 0 }, /* filter never matches */
- { "host = 'a'",
+ { "name = 'a'", NULL, 1 },
+ { "name = 'a'", "name = 'x'", 0 }, /* filter never matches */
+ { "name = 'a'",
"NOT attribute['x'] = ''", 1 }, /* filter always matches */
- { "host =~ 'a|b'", NULL, 2 },
- { "host =~ 'host'", NULL, 0 },
- { "host =~ '.'", NULL, 3 },
+ { "name =~ 'a|b'", NULL, 2 },
+ { "name =~ 'host'", NULL, 0 },
+ { "name =~ '.'", NULL, 3 },
{ "ANY metric = 'm1'", NULL, 2 },
- { "ANY metric= 'm1'", "host = 'x'", 0 }, /* filter never matches */
+ { "ANY metric= 'm1'", "name = 'x'", 0 }, /* filter never matches */
{ "ANY metric = 'm1'",
"NOT attribute['x'] = ''", 2 }, /* filter always matches */
{ "ANY metric =~ 'm'", NULL, 2 },
{ "ALL metric !~ 'm'", NULL, 1 },
{ "ANY metric =~ 'x'", NULL, 0 },
{ "ANY service = 's1'", NULL, 2 },
- { "ANY service = 's1'", "host = 'x'", 0 }, /* filter never matches */
+ { "ANY service = 's1'", "name = 'x'", 0 }, /* filter never matches */
{ "ANY service = 's1'",
"NOT attribute['x'] = ''", 2 }, /* filter always matches */
{ "ANY service =~ 's'", NULL, 2 },
{ "ANY service =~ 's'", "name !~ '1'", 2 },
{ "ANY service !~ 's'", NULL, 0 },
{ "ANY attribute = 'k1'", NULL, 2 },
- { "ANY attribute = 'k1'", "host = 'x'",0 }, /* filter never matches */
+ { "ANY attribute = 'k1'", "name = 'x'",0 }, /* filter never matches */
{ "ANY attribute = 'k1'",
"NOT attribute['x'] = ''", 2 }, /* filter always matches */
{ "ANY attribute =~ 'k'", NULL, 2 },