예제 #1
0
    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)
예제 #2
0
    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)
예제 #3
0
    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)
예제 #4
0
    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)