Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
156b2910
Commit
156b2910
authored
Mar 31, 2010
by
Leigh B Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor tweaks to make the Tutorial easier to write/understand.
parent
0af64ce6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
3 deletions
+19
-3
protogeni/test/anynode.rspec
protogeni/test/anynode.rspec
+6
-0
protogeni/test/discover.py
protogeni/test/discover.py
+10
-0
protogeni/test/listcomponents.py
protogeni/test/listcomponents.py
+2
-2
protogeni/test/redeemticket.py
protogeni/test/redeemticket.py
+1
-1
No files found.
protogeni/test/anynode.rspec
0 → 100644
View file @
156b2910
<rspec xmlns="http://protogeni.net/resources/rspec/0.1">
<node virtual_id="mypc"
virtualization_type="emulab-vnode"
exclusive="1">
</node>
</rspec>
protogeni/test/discover.py
View file @
156b2910
...
...
@@ -24,6 +24,16 @@ import re
execfile
(
"test-common.py"
)
if
len
(
REQARGS
)
>
1
:
Usage
()
sys
.
exit
(
1
)
elif
len
(
REQARGS
)
==
1
:
CMURI
=
REQARGS
[
0
]
if
CMURI
[
-
2
:]
==
"cm"
:
CMURI
=
CMURI
[:
-
3
]
pass
pass
#
# Get a credential for myself, that allows me to do things at the SA.
#
...
...
protogeni/test/listcomponents.py
View file @
156b2910
#! /usr/bin/env python
#
# GENIPUBLIC-COPYRIGHT
# Copyright (c) 2008-200
9
University of Utah and the Flux Group.
# Copyright (c) 2008-20
1
0 University of Utah and the Flux Group.
# All rights reserved.
#
# Permission to use, copy, modify and distribute this software is hereby
...
...
@@ -47,7 +47,7 @@ if debug: print str(response["value"])
# Ask each manager for its list.
#
for
manager
in
response
[
"value"
]:
print
manager
[
"hrn"
]
+
"["
+
manager
[
"urn"
]
+
"
]
: "
+
manager
[
"url"
]
print
manager
[
"urn"
]
+
": "
+
manager
[
"url"
]
# Skip the discover resources. Too much.
continue
...
...
protogeni/test/redeemticket.py
View file @
156b2910
...
...
@@ -90,7 +90,7 @@ if not "ticket_urn" in myslice:
#
# Get the ticket with another call to resolve.
#
print
"Asking for the ticket"
print
"Asking for
a copy of
the ticket"
params
=
{}
params
[
"credentials"
]
=
(
slicecred
,)
params
[
"urn"
]
=
myslice
[
"ticket_urn"
]
...
...
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