Skip to content

Commit 70cf0fa

Browse files
committed
Added test for bundle edit_line converge
Ticket: CFE-3482 Changelog: None
1 parent ca39f9b commit 70cf0fa

3 files changed

Lines changed: 53 additions & 0 deletions

File tree

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
body common control
2+
{
3+
inputs => { '../../default.cf.sub' };
4+
bundlesequence => { default("$(this.promise_filename)") };
5+
version => "1.0";
6+
}
7+
#######################################################
8+
9+
bundle common classes
10+
{
11+
classes:
12+
"testing_masterfiles_policy_framework"
13+
scope => "namespace",
14+
comment => "This class is needed so that dcs.cf.sub includes the stdlib instead of using plucked.cf.sub from core which might get out of date and cause us to not test current code from the MPF.";
15+
}
16+
bundle agent init
17+
{
18+
19+
20+
files:
21+
# The tested file "actual" is copied from our seeded starting position.
22+
"$(G.testfile)"
23+
copy_from => local_cp("$(this.promise_filename).start");
24+
}
25+
26+
#######################################################
27+
28+
bundle agent test
29+
{
30+
meta:
31+
"description" -> { "CFE-3482" }
32+
string => "Test that converge edit_line bundle works as expected";
33+
34+
files:
35+
"$(G.testfile)"
36+
edit_line => converge( "covfefe", "Despite the constant negative press covfefe" );
37+
38+
}
39+
40+
#######################################################
41+
42+
bundle agent check
43+
{
44+
methods:
45+
"Pass/FAIL"
46+
usebundle => dcs_check_diff($(G.testfile), "$(this.promise_filename).expected", $(this.promise_filename));
47+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
It has nothing to do with the oranges of the investigation, global waming, or hamberders
2+
Despite the constant negative press covfefe
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
hashtag #covfefe
2+
What is covfefe?
3+
It has nothing to do with the oranges of the investigation, global waming, or hamberders
4+
However, covfefe is bigger than the 2015 paris climate agreement.

0 commit comments

Comments
 (0)