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
727cb8a9
Commit
727cb8a9
authored
Aug 27, 2015
by
Marius Gedminas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support print() function in test/
parent
9ae66a7f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
test/integration/cleanup_ec2.py
+2
-2
test/integration/cleanup_gce.py
+1
-1
test/integration/consul_running.py
+1
-1
test/integration/setup_gce.py
+1
-1
No files found.
test/integration/cleanup_ec2.py
View file @
727cb8a9
...
@@ -57,7 +57,7 @@ def delete_aws_eips(get_func, attr, opts):
...
@@ -57,7 +57,7 @@ def delete_aws_eips(get_func, attr, opts):
try
:
try
:
eip_log
=
open
(
opts
.
eip_log
,
'r'
)
.
read
()
.
splitlines
()
eip_log
=
open
(
opts
.
eip_log
,
'r'
)
.
read
()
.
splitlines
()
except
IOError
:
except
IOError
:
print
opts
.
eip_log
,
'not found.'
print
(
'
%
s not found.'
%
opts
.
eip_log
)
return
return
for
item
in
get_func
():
for
item
in
get_func
():
...
@@ -176,4 +176,4 @@ if __name__ == '__main__':
...
@@ -176,4 +176,4 @@ if __name__ == '__main__':
delete_aws_instances
(
aws
.
get_all_instances
(
filters
=
filters
),
opts
)
delete_aws_instances
(
aws
.
get_all_instances
(
filters
=
filters
),
opts
)
except
KeyboardInterrupt
as
e
:
except
KeyboardInterrupt
as
e
:
print
"
\n
Exiting on user command."
print
(
"
\n
Exiting on user command."
)
test/integration/cleanup_gce.py
View file @
727cb8a9
...
@@ -74,4 +74,4 @@ if __name__ == '__main__':
...
@@ -74,4 +74,4 @@ if __name__ == '__main__':
# Delete matching disks
# Delete matching disks
delete_gce_resources
(
gce
.
list_volumes
,
'name'
,
opts
)
delete_gce_resources
(
gce
.
list_volumes
,
'name'
,
opts
)
except
KeyboardInterrupt
as
e
:
except
KeyboardInterrupt
as
e
:
print
"
\n
Exiting on user command."
print
(
"
\n
Exiting on user command."
)
test/integration/consul_running.py
View file @
727cb8a9
...
@@ -6,6 +6,6 @@ if __name__ == '__main__':
...
@@ -6,6 +6,6 @@ if __name__ == '__main__':
import
consul
import
consul
consul
=
consul
.
Consul
(
host
=
'0.0.0.0'
,
port
=
8500
)
consul
=
consul
.
Consul
(
host
=
'0.0.0.0'
,
port
=
8500
)
consul
.
catalog
.
nodes
()
consul
.
catalog
.
nodes
()
print
"True"
print
(
"True"
)
except
:
except
:
pass
pass
test/integration/setup_gce.py
View file @
727cb8a9
...
@@ -39,4 +39,4 @@ if __name__ == '__main__':
...
@@ -39,4 +39,4 @@ if __name__ == '__main__':
gce
.
create_volume
(
gce
.
create_volume
(
size
=
10
,
name
=
prefix
+
'-extra'
,
location
=
'us-central1-a'
)
size
=
10
,
name
=
prefix
+
'-extra'
,
location
=
'us-central1-a'
)
except
KeyboardInterrupt
as
e
:
except
KeyboardInterrupt
as
e
:
print
"
\n
Exiting on user command."
print
(
"
\n
Exiting on user command."
)
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