def test_flowdetail_create(self): # Create a flowdetail and record its uuid and name fd_id = uuidutils.generate_uuid() fd_name = 'fd-%s' % (fd_id) b_api.flowdetail_create(fd_name, self.wfs[0], fd_id) self.fd_names.append(fd_name) self.fd_ids.append(fd_id) # Check to see that the created flowdetail is there actual = b_api.flowdetail_get(fd_id) self.assertIsNotNone(actual)
def setUp(self): # Create a flowdetail and record its uuid and name fd_id = uuidutils.generate_uuid() fd_name = 'fd-%s' % (fd_id) b_api.flowdetail_create(fd_name, self.wfs[0], fd_id) self.fd_names.append(fd_name) self.fd_ids.append(fd_id) # Create a taskdetail and record its uuid and name td_id = uuidutils.generate_uuid() td_name = 'td-%s' % (td_id) b_api.taskdetail_create(td_name, self.tsks[0], td_id) self.td_names.append(td_name) self.td_ids.append(td_id)
def setUp(self): # Create a logbook and record its uuid and name lb_id = uuidutils.generate_uuid() lb_name = 'lb-%s' % (lb_id) b_api.logbook_create(lb_name, lb_id) self.lb_names.append(lb_name) self.lb_ids.append(lb_id) # Create a flowdetail and record its uuid and name fd_id = uuidutils.generate_uuid() fd_name = 'fd-%s' % (fd_id) b_api.flowdetail_create(fd_name, self.wfs[0], fd_id) self.fd_names.append(fd_name) self.fd_ids.append(fd_id)