X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=tests%2FtestInterfaces.py;h=c43da2c7b450395ea9a1f14d9994197179cc37c7;hb=c2beaa8e0fd86842e172f042b6218c8b1f9b3ea6;hp=2e8132739f5570ead8c7a5fe03605fed3d1fdecc;hpb=6f73e7e5d231f3e631b75f0c9b3dba74b2548cab;p=sfa.git diff --git a/tests/testInterfaces.py b/tests/testInterfaces.py index 2e813273..c43da2c7 100755 --- a/tests/testInterfaces.py +++ b/tests/testInterfaces.py @@ -225,27 +225,27 @@ class SlicemgrTest(AggregateTest): class ComponentTest(BasicTestCase): def setUp(self): BasicTestCase.setUp(self) + self.slice_cred = self.client.get_credential(self.slice['hrn'], 'slice') def testStartSlice(self): - self.cm.start_slice(self.slice['hrn']) + self.cm.start_slice(self.slice_cred, self.slice['hrn']) def testStopSlice(self): - self.cm.stop_slice(self.slice['hrn']) + self.cm.stop_slice(self.slice_cred, self.slice['hrn']) def testDeleteSlice(self): - self.cm.delete_slice(self.slice['hrn']) + self.cm.delete_slice(self.slice_cred, self.slice['hrn']) def testRestartSlice(self): - self.cm.restart_slice(self.slice['hrn']) + self.cm.restart_slice(self.slice_cred, self.slice['hrn']) def testGetSlices(self): - self.cm.get_slices(self.slice['hrn']) + self.cm.get_slices(self.slice_cred, self.slice['hrn']) def testRedeemTicket(self): - slice_credential = self.client.get_credential(self.slice['hrn'], 'slice') rspec = self.aggregate.get_resources(self.credential) - ticket = self.aggregate.get_ticket(slice_credential, self.slice['hrn'], rspec) - self.cm.redeem_ticket(slice_credential, ticket) + ticket = self.aggregate.get_ticket(slice_cred, self.slice['hrn'], rspec) + self.cm.redeem_ticket(slice_cred, ticket) def test_names(testcase):