git://git.onelab.eu
/
tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
run sfi register rather than sfi add
[tests.git]
/
system
/
TestSliceSfa.py
diff --git
a/system/TestSliceSfa.py
b/system/TestSliceSfa.py
index
7731f86
..
5de9f78
100644
(file)
--- a/
system/TestSliceSfa.py
+++ b/
system/TestSliceSfa.py
@@
-22,9
+22,10
@@
class TestSliceSfa:
# shortcuts
self.test_plc=self.test_auth_sfa.test_plc
# shortcuts
self.test_plc=self.test_auth_sfa.test_plc
- def qualified(self,name): return self.test_auth_sfa.qualified(name)
- def hrn (self): return self.qualified(self.slice_spec['name'])
- def sfi_path (self): return self.test_auth_sfa.sfi_path()
+ def hrn (self):
+ return self.test_auth_sfa.obj_hrn(self.slice_spec['name'])
+ def sfi_path (self):
+ return self.test_auth_sfa.sfi_path()
# send back up to the TestAuthSfa
def rspec_style (self): return self.test_auth_sfa.rspec_style()
# send back up to the TestAuthSfa
def rspec_style (self): return self.test_auth_sfa.rspec_style()
@@
-38,12
+39,12
@@
class TestSliceSfa:
# those are step names exposed as methods of TestPlc, hence the _sfa
# needs to be run as pi
# those are step names exposed as methods of TestPlc, hence the _sfa
# needs to be run as pi
- def sfa_
add
_slice(self,options):
- "run sfi
add
(on Registry)"
- sfi_command="
add
"
+ def sfa_
register
_slice(self,options):
+ "run sfi
register
(on Registry)"
+ sfi_command="
register
"
sfi_command += " --type slice"
sfi_command += " --xrn %s"%self.hrn()
sfi_command += " --type slice"
sfi_command += " --xrn %s"%self.hrn()
- for opt in self.slice_spec['
add
_options']:
+ for opt in self.slice_spec['
register
_options']:
sfi_command += " %s"%(opt)
return self.test_plc.run_in_guest(self.sfi_pi(sfi_command))==0
sfi_command += " %s"%(opt)
return self.test_plc.run_in_guest(self.sfi_pi(sfi_command))==0