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
f3922d02
Commit
f3922d02
authored
Feb 20, 2014
by
Richard C Isaacson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finished file tests with selinux.
parent
101f9a22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
tests_new/integration/roles/test_file/tasks/selinux_tests.yml
+5
-3
No files found.
tests_new/integration/roles/test_file/tasks/selinux_tests.yml
View file @
f3922d02
...
...
@@ -17,13 +17,14 @@
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
-
name
:
touch a file for testing
file
:
path={{output_dir}}/foo-se.txt state=file
file
:
path={{output_dir}}/foo-se.txt state=touch
register
:
file_se_result
-
name
:
verify that the file was marked as changed
assert
:
{
that
:
"
file_result.changed
==
true"
}
assert
:
{
that
:
"
file_
se_
result.changed
==
true"
}
-
name
:
assert touch a file for testing matches expected selinux context
assert
:
{
that
:
"
file_result.secontext
==
'unconfined_u:object_r:admin_home_t:s0'"
}
assert
:
{
that
:
"
file_
se_
result.secontext
==
'unconfined_u:object_r:admin_home_t:s0'"
}
-
name
:
remove the file used for testing
file
:
path={{output_dir}}/foo-se.txt state=absent
\ No newline at end of file
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