Skip to content

Commit

Permalink
Fixed test to pass with new default tag
Browse files Browse the repository at this point in the history
We added a new default tag `derived_from=.*` in ENT-7725 for modules.
The test now also checks for this tag.

Ticket: ENT-7725
Changelog: None
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
  • Loading branch information
larsewi committed May 30, 2023
1 parent 4c99d33 commit 27ba1ce
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions tests/acceptance/08_commands/01_modules/set-tags.cf
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ bundle agent check
"jtags2" string => join(",", "tags2");
"jtags3" string => join(",", "tags3");

"etags0" string => "xyz,abc=def,,??what is this??,source=module";
"etags1" string => "xyz,abc=def,,??what is this??,source=module";
"etags2" string => "1,2,3,source=module";
"etags3" string => "a,b,c,source=module";
"etags0" string => "xyz,abc=def,,\?\?what is this\?\?,source=module,derived_from=.*";
"etags1" string => "xyz,abc=def,,\?\?what is this\?\?,source=module,derived_from=.*";
"etags2" string => "1,2,3,source=module,derived_from=.*";
"etags3" string => "a,b,c,source=module,derived_from=.*";

classes:

Expand All @@ -76,10 +76,10 @@ bundle agent check
"var3ok" expression => strcmp("${this.joined3}" , "${this.actual3}");
"var4ok" expression => strcmp("hello there" , "${xyz.myvar}");

"tags0ok" expression => strcmp($(jtags0), $(etags0));
"tags1ok" expression => strcmp($(jtags1), $(etags1));
"tags2ok" expression => strcmp($(jtags2), $(etags2));
"tags3ok" expression => strcmp($(jtags3), $(etags3));
"tags0ok" expression => regcmp($(etags0), $(jtags0));
"tags1ok" expression => regcmp($(etags1), $(jtags1));
"tags2ok" expression => regcmp($(etags2), $(jtags2));
"tags3ok" expression => regcmp($(etags3), $(jtags3));

"ok" and => { "myclass", "var0ok", "var1ok", "var2ok", "var3ok", "var4ok",
"tags0ok", "tags1ok", "tags2ok", "tags3ok", };
Expand All @@ -88,15 +88,15 @@ bundle agent check
DEBUG::
"xyzvars = $(xyzvars)";

"tags0ok => strcmp('$(jtags0)', '$(etags0)')" if => "tags0ok";
"tags1ok => strcmp('$(jtags1)', '$(etags1)')" if => "tags1ok";
"tags2ok => strcmp('$(jtags2)', '$(etags2)')" if => "tags2ok";
"tags3ok => strcmp('$(jtags3)', '$(etags3)')" if => "tags3ok";
"tags0ok => regcmp('$(etags0)', '$(jtags0)')" if => "tags0ok";
"tags1ok => regcmp('$(etags1)', '$(jtags1)')" if => "tags1ok";
"tags2ok => regcmp('$(etags2)', '$(jtags2)')" if => "tags2ok";
"tags3ok => regcmp('$(etags3)', '$(jtags3)')" if => "tags3ok";

"tags0 NOT ok => strcmp('$(jtags0)', '$(etags0)')" if => "!tags0ok";
"tags1 NOT ok => strcmp('$(jtags1)', '$(etags1)')" if => "!tags1ok";
"tags2 NOT ok => strcmp('$(jtags2)', '$(etags2)')" if => "!tags2ok";
"tags3 NOT ok => strcmp('$(jtags3)', '$(etags3)')" if => "!tags3ok";
"tags0 NOT ok => regcmp('$(etags0)', '$(jtags0)')" if => "!tags0ok";
"tags1 NOT ok => regcmp('$(etags1)', '$(jtags1)')" if => "!tags1ok";
"tags2 NOT ok => regcmp('$(etags2)', '$(jtags2)')" if => "!tags2ok";
"tags3 NOT ok => regcmp('$(etags3)', '$(jtags3)')" if => "!tags3ok";

ok::
"$(this.promise_filename) Pass";
Expand Down

0 comments on commit 27ba1ce

Please sign in to comment.