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
ef6769d6
Commit
ef6769d6
authored
Nov 21, 2014
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up the format of pull #9590
parent
be6ef11e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
test/integration/roles/test_git/tasks/main.yml
+12
-6
No files found.
test/integration/roles/test_git/tasks/main.yml
View file @
ef6769d6
...
...
@@ -155,11 +155,14 @@
# Test that a specific revision can be checked out
-
name
:
clea
n out the
checkout_dir
shell
:
rm -rf {{ checkout_dir }}/*
-
name
:
clea
r
checkout_dir
file
:
state=absent path={{ checkout_dir }}
-
name
:
clone to specific revision
git
:
repo={{ repo_format1 }} dest={{ checkout_dir }} version=df4612ba925fbc1b3c51cbb006f51a0443bd2ce9
git
:
repo
:
"
{{
repo_format1
}}"
dest
:
"
{{
checkout_dir
}}"
version
:
df4612ba925fbc1b3c51cbb006f51a0443bd2ce9
-
name
:
check HEAD after clone to revision
command
:
git rev-parse HEAD chdir="{{ checkout_dir }}"
...
...
@@ -170,7 +173,10 @@
-
'
git_result.stdout
==
"df4612ba925fbc1b3c51cbb006f51a0443bd2ce9"'
-
name
:
update to specific revision
git
:
repo={{ repo_format1 }} dest={{ checkout_dir }} version=4e739a34719654db7b04896966e2354e1256ea5d
git
:
repo
:
"
{{
repo_format1
}}"
dest
:
"
{{
checkout_dir
}}"
version
:
4e739a34719654db7b04896966e2354e1256ea5d
register
:
git_result
-
assert
:
...
...
@@ -189,8 +195,8 @@
-
name
:
attempt to get unavailable revision
git
:
repo
:
https://github.com/ansible/ansible-examples.git
dest
:
'
{{
checkout_dir
}}'
repo
:
"
{{
repo_format1
}}"
dest
:
"
{{
checkout_dir
}}"
version
:
2cfde3668b8bb10fbe2b9d5cec486025ad8cc51b
ignore_errors
:
true
register
:
git_result
...
...
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