def get_one(self, test_ident): """Retrieve information about the given test. :param test_ident: UUID of a test or logical name of the test. """ rpc_test = api_utils.get_rpc_resource('Cpulse', test_ident) return Cpulse.convert_with_links(rpc_test)
def get_one(self, test_ident): """Retrieve information about the given test. :param test_ident: UUID of a test or logical name of the test. """ rpc_test = api_utils.get_rpc_resource('Cpulse', test_ident) return Cpulse.convert_with_links(rpc_test)
def delete(self, test_ident): """Delete a test. :param test_ident: UUID of a test or logical name of the test. """ context = pecan.request.context rpc_test = api_utils.get_rpc_resource('Cpulse', test_ident) pecan.request.rpcapi.test_delete(context, rpc_test.uuid)
def delete(self, test_ident): """Delete a test. :param test_ident: UUID of a test or logical name of the test. """ context = pecan.request.context rpc_test = api_utils.get_rpc_resource('Cpulse', test_ident) pecan.request.rpcapi.test_delete(context, rpc_test.uuid)