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
0eabf3bb
Commit
0eabf3bb
authored
Jan 28, 2015
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change subversion tests -- export test didn't test exporting before
parent
556d4f00
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
7 deletions
+25
-7
test/integration/roles/test_subversion/tasks/main.yml
+25
-7
No files found.
test/integration/roles/test_subversion/tasks/main.yml
View file @
0eabf3bb
...
...
@@ -44,7 +44,7 @@
# "Revision: 9",
# "URL: https://github.com/jimi-c/test_role"
# ],
# "bef
b
ore": null,
# "before": null,
# "changed": true,
# "invocation": {
# "module_args": "repo=https://github.com/jimi-c/test_role dest=~/ansible_testing/svn",
...
...
@@ -59,12 +59,17 @@
-
"
'after'
in
subverted"
-
"
subverted.after.1
==
'URL:
https://github.com/jimi-c/test_role'"
-
"
not
subverted.before"
-
"
subverted.changed"
-
"
subverted.changed"
-
name
:
repeated checkout
subversion
:
repo={{ repo }} dest={{ checkout_dir }}
register
:
subverted2
-
name
:
verify on a reclone things are marked unchanged
assert
:
that
:
-
"
not
subverted2.changed"
-
name
:
check for tags
stat
:
path={{ checkout_dir }}/tags
register
:
tags
...
...
@@ -91,15 +96,28 @@
-
debug
:
var=subverted3
-
name
:
checkout with export
subversion
:
repo={{ repo }} dest={{
checkout_dir }}
export=True
subversion
:
repo={{ repo }} dest={{
output_dir }}/svn-export
export=True
register
:
subverted4
-
name
:
verify on a reclone things are marked unchanged
-
name
:
check for tags
stat
:
path={{ output_dir }}/svn-export/tags
register
:
export_tags
-
name
:
check for trunk
stat
:
path={{ output_dir }}/svn-export/trunk
register
:
expoort_trunk
-
name
:
check for branches
stat
:
path={{ output_dir }}/svn-export/branches
register
:
export_branches
-
name
:
assert presence of tags/trunk/branches in export
assert
:
that
:
-
"
not
subverted4.changed"
-
"
export_tags.stat.isdir"
-
"
export_trunk.stat.isdir"
-
"
export_branches.stat.isdir"
-
"
subverted4.changed"
# TBA: test for additional options or URL variants welcome
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