Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ bundle agent test
{
meta:
"description" -> { "CFE-636" }
string => "Check that methods can be called by expanding classic
arrays";
string => "Check that methods can be called by expanding classic arrays";

vars:
"b1" string => "b1";
Expand Down
3 changes: 1 addition & 2 deletions tests/acceptance/21_methods/method_outcomes.cf
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ bundle agent main

bundle agent init
{
classes:

# classes:
# "method_FORCE_UNEXPECTED_FAIL" expression => "any";
vars:
"method_outcome_classes" slist => classesmatching("method_.*");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ bundle agent baz
bundle agent bar(x)
{
methods:
# Will call baz, which exists, should work
"foo" usebundle => "$(x)";

# Will call baz, which exists, should work
}

bundle agent main
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ bundle agent main
methods:
"foo"
if => "out_of_context",
# Should not error because it's unreachable
usebundle => "bar";

# Should not error because it's unreachable
"baz";
}
6 changes: 3 additions & 3 deletions tests/acceptance/29_simulate_mode/diff_mode.cf
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ bundle agent test
meta:
"test_soft_fail"
string => "(solaris|aix|hpux|windows)",
meta => { "ENT-6540,ENT-10254" };
# ENT-6540 exotics fail to delete chroot
# ENT-10254 tests fail on Windows due to CRLF
meta => { "ENT-6540", "ENT-10254" };

# ENT-6540 exotics fail to delete chroot
# ENT-10254 tests fail on Windows due to CRLF
"description" -> { "ENT-5302" }
string => "Test that files promises in --simulate=diff mode produce proper output and only make changes in chroot";

Expand Down
6 changes: 3 additions & 3 deletions tests/acceptance/29_simulate_mode/manifest_full_mode.cf
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ bundle agent test
meta:
"test_soft_fail"
string => "(solaris|aix|hpux|windows)",
meta => { "ENT-6540,ENT-10254" };
# ENT-6540 exotics fail to delete chroot
# ENT-10254 tests fail on Windows due to CRLF
meta => { "ENT-6540", "ENT-10254" };

# ENT-6540 exotics fail to delete chroot
# ENT-10254 tests fail on Windows due to CRLF
"description" -> { "ENT-5301" }
string => "Test that files promises in --simulate=manifest-full mode produce proper output and only make changes in chroot";

Expand Down
4 changes: 2 additions & 2 deletions tests/acceptance/29_simulate_mode/manifest_mode.cf
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ bundle agent test
meta:
"test_soft_fail"
string => "(solaris|aix|hpux|windows)",
# ENT-6540 exotics fail to delete chroot
# ENT-10254 tests fail on Windows due to CRLF
meta => { "ENT-6540,ENT-10254" };

# ENT-6540 exotics fail to delete chroot
# ENT-10254 tests fail on Windows due to CRLF
"description" -> { "ENT-5301" }
string => "Test that files promises in --simulate=manifest mode produce proper output and only make changes in chroot";

Expand Down
3 changes: 1 addition & 2 deletions tests/acceptance/31_tickets/CFE-2367/1/test.cf
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ bundle agent test
files:
"$(G.testfile)"
content => "CFE-2367",
unless => fileexists($(testfile));

# testfile is not defined, in the
# original ticket filed this caused
# a fatal error
unless => fileexists($(testfile));
}

bundle agent check
Expand Down
3 changes: 1 addition & 2 deletions tests/acceptance/31_tickets/CFE-2367/2/test.cf
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ bundle agent test
files:
"$(G.testfile)"
content => "CFE-2367",
unless => and(fileexists($(testfile)));

# testfile is not defined,
# in the original ticket
# filed this caused a fatal
Expand All @@ -30,6 +28,7 @@ bundle agent test
# simply test that as in the
# original case, there is no
# fatal error.
unless => and(fileexists($(testfile)));
}

bundle agent check
Expand Down
8 changes: 4 additions & 4 deletions tests/acceptance/31_tickets/ENT-8788/1/main.cf
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ bundle agent test
create => "false",
edit_defaults => size("500k"),
edit_line => insert_file_as_block_relative_to_first_or_last_line(
# File with content to insert if not found:
"$(new_content_file)",
# File with content to insert if not found
# Relative position to insert content (before|after):
"before",
# Relative position to insert content (before|after)
"last",
# which line match will we insert based on?
"last",
# Regex to match the line we want to insert relative to:
"\s+<filter>"
# Regex to match the line we want to insert relative to
);
}

Expand Down
8 changes: 4 additions & 4 deletions tests/acceptance/31_tickets/ENT-8788/2/main.cf
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ bundle agent test
create => "false",
edit_defaults => size("500k"),
edit_line => insert_file_as_block_relative_to_first_or_last_line(
# File with content to insert if not found:
"$(new_content_file)",
# File with content to insert if not found
# Relative position to insert content (before|after):
"before",
# Relative position to insert content (before|after)
"last",
# which line match will we insert based on?
"last",
# Regex to match the line we want to insert relative to:
"\s+<filter>"
# Regex to match the line we want to insert relative to
);
}

Expand Down
4 changes: 2 additions & 2 deletions tests/acceptance/dcs.sub.cf
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@ bundle common G
"env",
"false",
"grep",
# will override sed on solaris hosts:
"gsed",
# will override sed on solaris hosts
"gzip",
"hexdump",
"ln",
"ls",
"mkdir",
"mkfifo",
# AIX equivalent of groupadd:
"mkgroup",
# AIX equivalent of groupadd
"mock_package_manager",
"mv",
"no_fds",
Expand Down
Loading