import "../ApiClient-fBZ10h6n.mjs"; import { t as BulkResponse_default } from "../BulkResponse-Bo_Avne5.mjs"; import "../StateType-CA4aMnXy.mjs"; import "../Asset-QWv2ZEoy.mjs"; import "../TaskFixture-CCwz5_h2.mjs"; import { t as ValidateConstraintViolation_default } from "../ValidateConstraintViolation-CwVxXtff.mjs"; import "../Assertion-IH5UJLL9.mjs"; import "../TriggerFixture-Ceo47lhR.mjs"; import "../Fixtures-HC5Z2Uzn.mjs"; import "../UnitTest-BMo6wCX1.mjs"; import { t as TestSuite_default } from "../TestSuite-BqV0kRrr.mjs"; import { t as PagedResultsTestSuite_default } from "../PagedResultsTestSuite-ByDMit8v.mjs"; import "../TestState-B4ewj54k.mjs"; import "../AssertionResult-CHayBbcJ.mjs"; import "../AssertionRunError-8u-S4ZfY.mjs"; import "../UnitTestResult-DexATQfC.mjs"; import { t as TestSuiteRunResult_default } from "../TestSuiteRunResult-CTOGUzAN.mjs"; import { t as PagedResultsTestSuiteRunResult_default } from "../PagedResultsTestSuiteRunResult-CBHpg4Ux.mjs"; import { t as TestSuiteControllerTestsLastResultResponse_default } from "../TestSuiteControllerTestsLastResultResponse-CjtDh37I.mjs"; import "../TestSuiteServiceRunByQueryRequest-Cgq44MqD.mjs"; import { t as TestSuiteServiceTestRunByQueryResult_default } from "../TestSuiteServiceTestRunByQueryResult-jVJiAzQZ.mjs"; //#region src/api/TestSuitesApi.d.ts /** * TestSuites service. * @module api/TestSuitesApi */ declare class TestSuitesApi { /** * Constructs a new TestSuitesApi. * @alias module:api/TestSuitesApi * @class * @param {module:ApiClient} [apiClient] Optional API client implementation to use, * default to {@link module:ApiClient#instance} if unspecified. */ constructor(apiClient?: any); apiClient: any; /** * Create a test from YAML source * Creates a new test from a YAML definition. Requires TEST permission with the CREATE action. * @param {String} tenant * @param {String} body The TestSuite source code * @return {Promise} */ createTestSuiteWithHttpInfo(tenant: string, body: string): Promise; /** * Create a test from YAML source * Creates a new test from a YAML definition. Requires TEST permission with the CREATE action. * @param {String} tenant * @param {String} body The TestSuite source code * @return {Promise} */ createTestSuite(tenant: string, body: string): Promise; /** * Delete a test * Deletes a test by namespace and ID. Requires TEST permission with the DELETE action. * @param {String} namespace The TestSuite namespace * @param {String} id The TestSuite ID * @param {String} tenant * @return {Promise< Object >} */ deleteTestSuiteWithHttpInfo(namespace: string, id: string, tenant: string): Promise; /** * Delete a test * Deletes a test by namespace and ID. Requires TEST permission with the DELETE action. * @param {String} namespace The TestSuite namespace * @param {String} id The TestSuite ID * @param {String} tenant * @return {Promise< Object >} */ deleteTestSuite(namespace: string, id: string, tenant: string): Promise; /** * Delete multiple tests by id * Deletes a test by namespace and ID. Requires TEST permission with the DELETE action. * @param {String} tenant * @param {module:model/TestSuiteControllerTestSuiteBulkRequest} testSuiteControllerTestSuiteBulkRequest * @return {Promise} */ deleteTestSuitesByIdsWithHttpInfo(tenant: string, testSuiteControllerTestSuiteBulkRequest: any): Promise; /** * Delete multiple tests by id * Deletes a test by namespace and ID. Requires TEST permission with the DELETE action. * @param {String} tenant * @param {module:model/TestSuiteControllerTestSuiteBulkRequest} testSuiteControllerTestSuiteBulkRequest * @return {Promise} */ deleteTestSuitesByIds(tenant: string, testSuiteControllerTestSuiteBulkRequest: any): Promise; /** * Disable multiple tests by id * Disable a test by namespace and ID. Requires TEST permission with the UPDATE action. * @param {String} tenant * @param {module:model/TestSuiteControllerTestSuiteBulkRequest} testSuiteControllerTestSuiteBulkRequest * @return {Promise} */ disableTestSuitesByIdsWithHttpInfo(tenant: string, testSuiteControllerTestSuiteBulkRequest: any): Promise; /** * Disable multiple tests by id * Disable a test by namespace and ID. Requires TEST permission with the UPDATE action. * @param {String} tenant * @param {module:model/TestSuiteControllerTestSuiteBulkRequest} testSuiteControllerTestSuiteBulkRequest * @return {Promise} */ disableTestSuitesByIds(tenant: string, testSuiteControllerTestSuiteBulkRequest: any): Promise; /** * Enable multiple tests by id * Enable a test by namespace and ID. Requires TEST permission with the UPDATE action. * @param {String} tenant * @param {module:model/TestSuiteControllerTestSuiteBulkRequest} testSuiteControllerTestSuiteBulkRequest * @return {Promise} */ enableTestSuitesByIdsWithHttpInfo(tenant: string, testSuiteControllerTestSuiteBulkRequest: any): Promise; /** * Enable multiple tests by id * Enable a test by namespace and ID. Requires TEST permission with the UPDATE action. * @param {String} tenant * @param {module:model/TestSuiteControllerTestSuiteBulkRequest} testSuiteControllerTestSuiteBulkRequest * @return {Promise} */ enableTestSuitesByIds(tenant: string, testSuiteControllerTestSuiteBulkRequest: any): Promise; /** * Run a full test * Executes all test cases in the specified test. Requires TEST permission with the CREATE action. * @param {String} namespace The TestSuite namespace * @param {String} id The TestSuite ID * @param {String} tenant * @param {Object} opts Optional parameters * @param {module:model/TestSuiteControllerRunRequest} [testSuiteControllerRunRequest] * @return {Promise} */ runTestSuiteWithHttpInfo(namespace: string, id: string, tenant: string, opts: any): Promise; /** * Run a full test * Executes all test cases in the specified test. Requires TEST permission with the CREATE action. * @param {String} namespace The TestSuite namespace * @param {String} id The TestSuite ID * @param {String} tenant * @param {Object} [opts] Optional parameters * @param {module:model/TestSuiteControllerRunRequest} [opts.testSuiteControllerRunRequest] * @return {Promise} */ runTestSuite(namespace: string, id: string, tenant: string, opts?: { testSuiteControllerRunRequest?: any; }): Promise; /** * Run multiple TestSuites by query * Executes all TestSuites impacted by the specified filter. Requires TEST permission with the CREATE action. * @param {String} tenant * @param {module:model/TestSuiteServiceRunByQueryRequest} testSuiteServiceRunByQueryRequest * @return {Promise} */ runTestSuitesByQueryWithHttpInfo(tenant: string, testSuiteServiceRunByQueryRequest: any): Promise; /** * Run multiple TestSuites by query * Executes all TestSuites impacted by the specified filter. Requires TEST permission with the CREATE action. * @param {String} tenant * @param {module:model/TestSuiteServiceRunByQueryRequest} testSuiteServiceRunByQueryRequest * @return {Promise} */ runTestSuitesByQuery(tenant: string, testSuiteServiceRunByQueryRequest: any): Promise; /** * Search for tests * Searches for tests with optional filtering by namespace and flow ID. Requires TEST permission with the READ action. * @param {String} tenant * @param {Object} opts Optional parameters * @param {Number} [page = 1)] The current page * @param {Number} [size = 10)] The current page size * @param {Array.} [sort] The sort of current page * @param {String} [namespace] The namespace to filter on * @param {String} [flowId] The flow id to filter on * @param {Boolean} [includeChildNamespaces = true)] Include child namespaces in filter or not * @return {Promise} */ searchTestSuitesWithHttpInfo(tenant: string, opts: any): Promise; /** * Search for tests * Searches for tests with optional filtering by namespace and flow ID. Requires TEST permission with the READ action. * @param {String} tenant * @param {Object} [opts] Optional parameters * @param {Number} [opts.page (default to 1)] The current page * @param {Number} [opts.size (default to 10)] The current page size * @param {Array.} [opts.sort] The sort of current page * @param {String} [opts.namespace] The namespace to filter on * @param {String} [opts.flowId] The flow id to filter on * @param {Boolean} [opts.includeChildNamespaces (default to true)] Include child namespaces in filter or not * @return {Promise} */ searchTestSuites(tenant: string, opts?: { page?: number; size?: number; sort?: Array; namespace?: string; flowId?: string; includeChildNamespaces?: boolean; }): Promise; /** * Search for tests results * with optional filtering by namespace, test suite ID and flow ID. Requires TEST permission with the READ action. * @param {String} tenant * @param {Object} opts Optional parameters * @param {Number} [page = 1)] The current page * @param {Number} [size = 10)] The current page size * @param {Array.} [sort] The sort of current page * @param {String} [testSuiteId] The test suite id to filter on * @param {String} [namespace] The namespace to filter on * @param {String} [flowId] The flow id to filter on * @return {Promise} */ searchTestSuitesResultsWithHttpInfo(tenant: string, opts: any): Promise; /** * Search for tests results * with optional filtering by namespace, test suite ID and flow ID. Requires TEST permission with the READ action. * @param {String} tenant * @param {Object} [opts] Optional parameters * @param {Number} [opts.page (default to 1)] The current page * @param {Number} [opts.size (default to 10)] The current page size * @param {Array.} [opts.sort] The sort of current page * @param {String} [opts.testSuiteId] The test suite id to filter on * @param {String} [opts.namespace] The namespace to filter on * @param {String} [opts.flowId] The flow id to filter on * @return {Promise} */ searchTestSuitesResults(tenant: string, opts?: { page?: number; size?: number; sort?: Array; testSuiteId?: string; namespace?: string; flowId?: string; }): Promise; /** * Get a test result * Get a test result once it was run. * @param {String} id The test run ID * @param {String} tenant * @return {Promise} */ testResultWithHttpInfo(id: string, tenant: string): Promise; /** * Get a test result * Get a test result once it was run. * @param {String} id The test run ID * @param {String} tenant * @return {Promise} */ testResult(id: string, tenant: string): Promise; /** * Retrieve a test * Retrieves a test by namespace and ID. Requires TEST permission with the READ action. * @param {String} namespace The TestSuite namespace * @param {String} id The TestSuite ID * @param {String} tenant * @return {Promise} */ testSuiteWithHttpInfo(namespace: string, id: string, tenant: string): Promise; /** * Retrieve a test * Retrieves a test by namespace and ID. Requires TEST permission with the READ action. * @param {String} namespace The TestSuite namespace * @param {String} id The TestSuite ID * @param {String} tenant * @return {Promise} */ testSuite(namespace: string, id: string, tenant: string): Promise; /** * Get tests last result * Get multiple tests last result for a query. * @param {String} tenant * @param {module:model/TestSuiteControllerSearchTestsLastResult} testSuiteControllerSearchTestsLastResult * @return {Promise} */ testsLastResultWithHttpInfo(tenant: string, testSuiteControllerSearchTestsLastResult: any): Promise; /** * Get tests last result * Get multiple tests last result for a query. * @param {String} tenant * @param {module:model/TestSuiteControllerSearchTestsLastResult} testSuiteControllerSearchTestsLastResult * @return {Promise} */ testsLastResult(tenant: string, testSuiteControllerSearchTestsLastResult: any): Promise; /** * Update a test from YAML source * Updates an existing test with a new YAML definition. Requires TEST permission with the UPDATE action. * @param {String} namespace The TestSuite namespace * @param {String} id The TestSuite ID * @param {String} tenant * @param {String} body The TestSuite source code * @return {Promise} */ updateTestSuiteWithHttpInfo(namespace: string, id: string, tenant: string, body: string): Promise; /** * Update a test from YAML source * Updates an existing test with a new YAML definition. Requires TEST permission with the UPDATE action. * @param {String} namespace The TestSuite namespace * @param {String} id The TestSuite ID * @param {String} tenant * @param {String} body The TestSuite source code * @return {Promise} */ updateTestSuite(namespace: string, id: string, tenant: string, body: string): Promise; /** * Validate a test * Validates a test YAML definition without persisting it. Returns constraint violations if any. Requires TEST permission with the READ action. * @param {String} tenant * @param {String} body The TestSuite source code * @return {Promise} */ validateTestSuiteWithHttpInfo(tenant: string, body: string): Promise; /** * Validate a test * Validates a test YAML definition without persisting it. Returns constraint violations if any. Requires TEST permission with the READ action. * @param {String} tenant * @param {String} body The TestSuite source code * @return {Promise} */ validateTestSuite(tenant: string, body: string): Promise; } //#endregion export { TestSuitesApi as default };