コード例 #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
ファイル: cpulse.py プロジェクト: kirubajohn/cloudpulse
    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
ファイル: cpulse.py プロジェクト: kirubajohn/cloudpulse
    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)