Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
aeb46be8
Commit
aeb46be8
authored
Mar 12, 2015
by
Jonathon Duerig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add example rspec allocating a pool to the test scripts
parent
36111fe7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
protogeni/test/createsliver.py
protogeni/test/createsliver.py
+3
-1
protogeni/test/pool.rspec
protogeni/test/pool.rspec
+12
-0
No files found.
protogeni/test/createsliver.py
View file @
aeb46be8
...
...
@@ -41,7 +41,7 @@ ACCEPTSLICENAME=1
debug
=
0
impotent
=
0
dokeys
=
1
dokeys
=
0
execfile
(
"test-common.py"
)
...
...
@@ -104,9 +104,11 @@ if dokeys:
params
[
"impotent"
]
=
impotent
rval
,
response
=
do_method_retry
(
"cm"
,
"CreateSliver"
,
params
)
if
rval
:
print
rval
,
response
Fatal
(
"Could not create sliver"
)
pass
sliver
,
manifest
=
response
[
"value"
]
print
rval
,
response
print
"Created the sliver"
#print str(manifest)
protogeni/test/pool.rspec
0 → 100644
View file @
aeb46be8
<?xml version="1.0" encoding="UTF-8"?>
<rspec
xmlns=
"http://www.protogeni.net/resources/rspec/2"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:emulab=
"http://www.protogeni.net/resources/rspec/ext/emulab/1"
xsi:schemaLocation=
"http://www.protogeni.net/resources/rspec/2 http://www.protogeni.net/resources/rspec/2/request.xsd"
type=
"request"
>
<emulab:routable_pool
client_id=
"foo"
count=
"2"
type=
"any"
/>
<node
client_id=
"my-node"
exclusive=
"true"
>
<sliver_type
name=
"raw-pc"
/>
</node>
</rspec>
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