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
b95475c1
Commit
b95475c1
authored
Nov 14, 2014
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unittest the get_split_image_tag function in the docker module
parent
bfb4a0c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletions
+21
-1
lib/ansible/modules/core
+1
-1
test/units/module_tests/TestDocker.py
+20
-0
No files found.
core
@
c6522620
Subproject commit
6be2fbb1c577d34b0dbb51c7338da0b79286658f
Subproject commit
c6522620c562d24031ad32187de83c3768df3c77
test/units/module_tests/TestDocker.py
0 → 100644
View file @
b95475c1
import
collections
import
mock
import
os
import
unittest
from
ansible.modules.core.cloud.docker.docker
import
get_split_image_tag
class
DockerSplitImageTagTestCase
(
unittest
.
TestCase
):
def
test_trivial
(
self
):
self
.
assertEqual
(
get_split_image_tag
(
'test'
),
(
'test'
,
'latest'
))
def
test_with_org_name
(
self
):
self
.
assertEqual
(
get_split_image_tag
(
'ansible/centos7-ansible'
),
(
'ansible/centos7-ansible'
,
'latest'
))
def
test_with_tag
(
self
):
self
.
assertEqual
(
get_split_image_tag
(
'test:devel'
),
(
'test'
,
'devel'
))
def
test_with_tag_and_org_name
(
self
):
self
.
assertEqual
(
get_split_image_tag
(
'ansible/centos7-ansible:devel'
),
(
'ansible/centos7-ansible'
,
'devel'
))
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