def resname (self,name,ext): return "%s.%s"%(name,ext)
def addslicefile (self): return self.resname("slice_record","xml")
- def addpersonfile (self): return self.resname("person_record","xml")
def adfile (self): return self.resname("ad","rspec")
def reqfile (self): return self.resname("req","rspec")
def nodefile (self): return self.resname("nodes","txt")
# dir_name is local and will be pushed later on by TestPlc
# by default set SFI_USER to the pi, we'll overload this
# on the command line when needed
- def sfi_config (self,dir_name):
+ def sfi_configure (self,dir_name):
plc_spec=self.test_plc.plc_spec
sfa_spec=self.sfa_spec
sfa_slice_spec=self.sfa_slice_spec
fileconf.close()
utils.header ("(Over)wrote %s"%file_name)
#
- file_name=dir_name + os.sep + self.addpersonfile()
- fileconf=open(file_name,'w')
- fileconf.write(sfa_slice_spec['person_record'])
- fileconf.write('\n')
- fileconf.close()
- utils.header ("(Over)wrote %s"%file_name)
- #
file_name=dir_name + os.sep + 'sfi_config'
fileconf=open(file_name,'w')
SFI_AUTH="%s"%(self.site_hrn())
# those are step names exposed as methods of TestPlc, hence the _sfa
- def sfa_list (self, options):
+ def sfi_list (self, options):
"run (as regular user) sfi list (on Registry)"
return \
self.test_plc.run_in_guest(self.sfi_user("list -r %s"%self.auth_hrn()))==0 and \
self.test_plc.run_in_guest(self.sfi_user("list %s"%(self.site_hrn())))==0
- def sfa_show (self, options):
+ def sfi_show (self, options):
"run (as regular user) sfi show (on Registry)"
return \
self.test_plc.run_in_guest(self.sfi_user("show %s"%(self.site_hrn())))==0
- def sfa_slices (self, options):
+ def sfi_slices (self, options):
"run (as regular user) sfi slices (on SM)"
return \
self.test_plc.run_in_guest(self.sfi_user("slices"))==0