Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
4d357a73
Commit
4d357a73
authored
May 04, 2015
by
Brian Coca
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10868 from jaypei/devel
Add lineinfile integration tests for quoted string
parents
8cf4452d
288fe117
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
test/integration/roles/test_lineinfile/tasks/main.yml
+18
-0
No files found.
test/integration/roles/test_lineinfile/tasks/main.yml
View file @
4d357a73
...
...
@@ -355,4 +355,22 @@
that
:
-
"
result.stat.checksum
==
'73b271c2cc1cef5663713bc0f00444b4bf9f4543'"
-
name
:
insert a line into the quoted file with many double quotation strings
lineinfile
:
dest={{output_dir}}/test_quoting.txt line="\"quote\" and \"unquote\""
register
:
result
-
name
:
assert that the quoted file was changed
assert
:
that
:
-
result.changed
-
name
:
stat the quote test file
stat
:
path={{output_dir}}/test_quoting.txt
register
:
result
-
name
:
assert test checksum matches after backref line was replaced
assert
:
that
:
-
"
result.stat.checksum
==
'b10ab2a3c3b6492680c8d0b1d6f35aa6b8f9e731'"
###################################################################
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment