1 # Thierry Parmentelat <thierry.parmentelat@inria.fr>
2 # Copyright (C) 2010 INRIA
11 def __init__ (self,test_plc):
12 self.test_plc=test_plc
14 self.sfa_spec=test_plc.plc_spec['sfa']
15 self.piuser=self.sfa_spec['piuser']
16 self.regularuser=self.sfa_spec['regularuser']
17 self.slicename=self.sfa_spec['slicename']
18 self.login_base=self.sfa_spec['login_base']
21 return self.test_plc.run_in_guest("sfi.py -d /root/.sfi/ add person.xml")==0
23 def update_user (self):
24 return self.test_plc.run_in_guest("sfi.py -d /root/.sfi/ update person.xml")==0
26 def delete_user(self):
27 auth=self.sfa_spec['SFA_REGISTRY_ROOT_AUTH']
29 self.test_plc.run_in_guest("sfi.py -d /root/.sfi/ remove -t user %s.%s.%s"%(auth,self.login_base,self.regularuser))==0