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
b8e72116
Commit
b8e72116
authored
Jan 15, 2015
by
Matt Martz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update rax_clb tests for fixes in the module
parent
7ba7e3bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
test/integration/roles/test_rax_clb/tasks/main.yml
+19
-4
No files found.
test/integration/roles/test_rax_clb/tasks/main.yml
View file @
b8e72116
...
...
@@ -17,16 +17,33 @@
assert
:
that
:
-
rax_clb|failed
-
rax_clb.msg == 'missing required arguments
:
name'
# ============================================================
# ============================================================
-
name
:
Test rax_clb with name
rax_clb
:
name
:
fail
ignore_errors
:
true
register
:
rax_clb
-
name
:
Validate results of rax_clb with only creds
assert
:
that
:
-
rax_clb|failed
-
rax_clb.msg == 'No credentials supplied!'
# ============================================================
# ============================================================
-
name
:
Test rax_clb with credentials
-
name
:
Test rax_clb with
name and
credentials
rax_clb
:
username
:
"
{{
rackspace_username
}}"
api_key
:
"
{{
rackspace_api_key
}}"
name
:
fail
ignore_errors
:
true
register
:
rax_clb
...
...
@@ -48,13 +65,11 @@
ignore_errors
:
true
register
:
rax_clb
## This assertion is currently failing, due to the module not providing the correct name of the missing argument
-
name
:
Validate rax_clb creds and region
assert
:
that
:
-
rax_clb|failed
-
rax_clb.msg == 'name is required for rax_clb'
ignore_errors
:
true
-
rax_clb.msg == 'missing required arguments
:
name'
# ============================================================
...
...
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