import chai from "chai"; import chaiAsPromised from "chai-as-promised"; import { createBearerAuthenticationConfig } from "../utils/config"; import { PromiseThoughtSpotRestApi } from "../types/PromiseAPI"; import requestBodies from "./testDataUpdated.json"; chai.use(chaiAsPromised); const expect = chai.expect; const baseUrlFromCli = process.argv.filter(s => s.startsWith("--baseUrl="))?.[0]?.split("=")?.[1] const BASE_URL = baseUrlFromCli || "http://127.0.0.1:4123" const config = createBearerAuthenticationConfig(BASE_URL, { username: "tsadmin", password: "admin", }); const instance = new PromiseThoughtSpotRestApi(config); describe('ThoughtSpotRestApi', function() { describe('activateUser', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "activateUser" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.activateUser( // activateUserRequest ActivateUserRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.activateUser( // activateUserRequest ActivateUserRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('assignChangeAuthor', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "assignChangeAuthor" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.assignChangeAuthor( // assignChangeAuthorRequest AssignChangeAuthorRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.assignChangeAuthor( // assignChangeAuthorRequest AssignChangeAuthorRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('assignTag', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "assignTag" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.assignTag( // assignTagRequest AssignTagRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.assignTag( // assignTagRequest AssignTagRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('changeUserPassword', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "changeUserPassword" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.changeUserPassword( // changeUserPasswordRequest ChangeUserPasswordRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.changeUserPassword( // changeUserPasswordRequest ChangeUserPasswordRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('commitBranch', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "commitBranch" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.commitBranch( // commitBranchRequest CommitBranchRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.commitBranch( // commitBranchRequest CommitBranchRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('configureCommunicationChannelPreferences', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "configureCommunicationChannelPreferences" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.configureCommunicationChannelPreferences( // configureCommunicationChannelPreferencesRequest ConfigureCommunicationChannelPreferencesRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.configureCommunicationChannelPreferences( // configureCommunicationChannelPreferencesRequest ConfigureCommunicationChannelPreferencesRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('configureSecuritySettings', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "configureSecuritySettings" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.configureSecuritySettings( // configureSecuritySettingsRequest ConfigureSecuritySettingsRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.configureSecuritySettings( // configureSecuritySettingsRequest ConfigureSecuritySettingsRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('connectionConfigurationSearch', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "connectionConfigurationSearch" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.connectionConfigurationSearch( // connectionConfigurationSearchRequest ConnectionConfigurationSearchRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.connectionConfigurationSearch( // connectionConfigurationSearchRequest ConnectionConfigurationSearchRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('convertWorksheetToModel', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "convertWorksheetToModel" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.convertWorksheetToModel( // convertWorksheetToModelRequest ConvertWorksheetToModelRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.convertWorksheetToModel( // convertWorksheetToModelRequest ConvertWorksheetToModelRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('copyObject', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "copyObject" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.copyObject( // copyObjectRequest CopyObjectRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.copyObject( // copyObjectRequest CopyObjectRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('createAgentConversation', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "createAgentConversation" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.createAgentConversation( // createAgentConversationRequest CreateAgentConversationRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.createAgentConversation( // createAgentConversationRequest CreateAgentConversationRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('createCalendar', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "createCalendar" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.createCalendar( // createCalendarRequest CreateCalendarRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.createCalendar( // createCalendarRequest CreateCalendarRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('createCollection', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "createCollection" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.createCollection( // createCollectionRequest CreateCollectionRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.createCollection( // createCollectionRequest CreateCollectionRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('createConfig', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "createConfig" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.createConfig( // createConfigRequest CreateConfigRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.createConfig( // createConfigRequest CreateConfigRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('createConnection', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "createConnection" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.createConnection( // createConnectionRequest CreateConnectionRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.createConnection( // createConnectionRequest CreateConnectionRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('createConnectionConfiguration', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "createConnectionConfiguration" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.createConnectionConfiguration( // createConnectionConfigurationRequest CreateConnectionConfigurationRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.createConnectionConfiguration( // createConnectionConfigurationRequest CreateConnectionConfigurationRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('createConversation', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "createConversation" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.createConversation( // createConversationRequest CreateConversationRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.createConversation( // createConversationRequest CreateConversationRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('createCustomAction', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "createCustomAction" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.createCustomAction( // createCustomActionRequest CreateCustomActionRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.createCustomAction( // createCustomActionRequest CreateCustomActionRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('createEmailCustomization', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "createEmailCustomization" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.createEmailCustomization( // createEmailCustomizationRequest CreateEmailCustomizationRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.createEmailCustomization( // createEmailCustomizationRequest CreateEmailCustomizationRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('createOrg', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "createOrg" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.createOrg( // createOrgRequest CreateOrgRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.createOrg( // createOrgRequest CreateOrgRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('createRole', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "createRole" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.createRole( // createRoleRequest CreateRoleRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.createRole( // createRoleRequest CreateRoleRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('createSchedule', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "createSchedule" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.createSchedule( // createScheduleRequest CreateScheduleRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.createSchedule( // createScheduleRequest CreateScheduleRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('createTag', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "createTag" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.createTag( // createTagRequest CreateTagRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.createTag( // createTagRequest CreateTagRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('createUser', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "createUser" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.createUser( // createUserRequest CreateUserRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.createUser( // createUserRequest CreateUserRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('createUserGroup', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "createUserGroup" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.createUserGroup( // createUserGroupRequest CreateUserGroupRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.createUserGroup( // createUserGroupRequest CreateUserGroupRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('createVariable', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "createVariable" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.createVariable( // createVariableRequest CreateVariableRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.createVariable( // createVariableRequest CreateVariableRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('createWebhookConfiguration', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "createWebhookConfiguration" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.createWebhookConfiguration( // createWebhookConfigurationRequest CreateWebhookConfigurationRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.createWebhookConfiguration( // createWebhookConfigurationRequest CreateWebhookConfigurationRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('dbtConnection', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "dbtConnection" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.dbtConnection( // connectionName connection_name , // databaseName database_name , // importType import_type , // accessToken access_token , // dbtUrl dbt_url , // accountId account_id , // projectId project_id , // dbtEnvId dbt_env_id , // projectName project_name , // fileContent file_content ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.dbtConnection( // connectionName connection_name , // databaseName database_name , // importType import_type , // accessToken access_token , // dbtUrl dbt_url , // accountId account_id , // projectId project_id , // dbtEnvId dbt_env_id , // projectName project_name , // fileContent file_content ) ).to.be.rejectedWith(Error); } }); }); }); describe('dbtGenerateSyncTml', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "dbtGenerateSyncTml" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.dbtGenerateSyncTml( // dbtConnectionIdentifier dbt_connection_identifier , // fileContent file_content ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.dbtGenerateSyncTml( // dbtConnectionIdentifier dbt_connection_identifier , // fileContent file_content ) ).to.be.rejectedWith(Error); } }); }); }); describe('dbtGenerateTml', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "dbtGenerateTml" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.dbtGenerateTml( // dbtConnectionIdentifier dbt_connection_identifier , // modelTables model_tables , // importWorksheets import_worksheets , // worksheets worksheets , // fileContent file_content ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.dbtGenerateTml( // dbtConnectionIdentifier dbt_connection_identifier , // modelTables model_tables , // importWorksheets import_worksheets , // worksheets worksheets , // fileContent file_content ) ).to.be.rejectedWith(Error); } }); }); }); describe('dbtSearch', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "dbtSearch" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.dbtSearch( ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.dbtSearch( ) ).to.be.rejectedWith(Error); } }); }); }); describe('deactivateUser', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "deactivateUser" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.deactivateUser( // deactivateUserRequest DeactivateUserRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.deactivateUser( // deactivateUserRequest DeactivateUserRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('deleteCalendar', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "deleteCalendar" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.deleteCalendar( // calendarIdentifier calendar_identifier test.Path_Variables.calendar_identifier ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.deleteCalendar( // calendarIdentifier calendar_identifier test.Path_Variables.calendar_identifier ) ).to.be.rejectedWith(Error); } }); }); }); describe('deleteCollection', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "deleteCollection" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.deleteCollection( // deleteCollectionRequest DeleteCollectionRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.deleteCollection( // deleteCollectionRequest DeleteCollectionRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('deleteConfig', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "deleteConfig" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.deleteConfig( // deleteConfigRequest DeleteConfigRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.deleteConfig( // deleteConfigRequest DeleteConfigRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('deleteConnection', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "deleteConnection" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.deleteConnection( // deleteConnectionRequest DeleteConnectionRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.deleteConnection( // deleteConnectionRequest DeleteConnectionRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('deleteConnectionConfiguration', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "deleteConnectionConfiguration" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.deleteConnectionConfiguration( // deleteConnectionConfigurationRequest DeleteConnectionConfigurationRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.deleteConnectionConfiguration( // deleteConnectionConfigurationRequest DeleteConnectionConfigurationRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('deleteConnectionV2', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "deleteConnectionV2" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.deleteConnectionV2( // connectionIdentifier connection_identifier test.Path_Variables.connection_identifier ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.deleteConnectionV2( // connectionIdentifier connection_identifier test.Path_Variables.connection_identifier ) ).to.be.rejectedWith(Error); } }); }); }); describe('deleteCustomAction', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "deleteCustomAction" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.deleteCustomAction( // customActionIdentifier custom_action_identifier test.Path_Variables.custom_action_identifier ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.deleteCustomAction( // customActionIdentifier custom_action_identifier test.Path_Variables.custom_action_identifier ) ).to.be.rejectedWith(Error); } }); }); }); describe('deleteDbtConnection', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "deleteDbtConnection" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.deleteDbtConnection( // dbtConnectionIdentifier dbt_connection_identifier test.Path_Variables.dbt_connection_identifier ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.deleteDbtConnection( // dbtConnectionIdentifier dbt_connection_identifier test.Path_Variables.dbt_connection_identifier ) ).to.be.rejectedWith(Error); } }); }); }); describe('deleteEmailCustomization', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "deleteEmailCustomization" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.deleteEmailCustomization( // templateIdentifier template_identifier test.Path_Variables.template_identifier ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.deleteEmailCustomization( // templateIdentifier template_identifier test.Path_Variables.template_identifier ) ).to.be.rejectedWith(Error); } }); }); }); describe('deleteMetadata', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "deleteMetadata" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.deleteMetadata( // deleteMetadataRequest DeleteMetadataRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.deleteMetadata( // deleteMetadataRequest DeleteMetadataRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('deleteOrg', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "deleteOrg" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.deleteOrg( // orgIdentifier org_identifier test.Path_Variables.org_identifier ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.deleteOrg( // orgIdentifier org_identifier test.Path_Variables.org_identifier ) ).to.be.rejectedWith(Error); } }); }); }); describe('deleteOrgEmailCustomization', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "deleteOrgEmailCustomization" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.deleteOrgEmailCustomization( // deleteOrgEmailCustomizationRequest DeleteOrgEmailCustomizationRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.deleteOrgEmailCustomization( // deleteOrgEmailCustomizationRequest DeleteOrgEmailCustomizationRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('deleteRole', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "deleteRole" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.deleteRole( // roleIdentifier role_identifier test.Path_Variables.role_identifier ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.deleteRole( // roleIdentifier role_identifier test.Path_Variables.role_identifier ) ).to.be.rejectedWith(Error); } }); }); }); describe('deleteSchedule', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "deleteSchedule" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.deleteSchedule( // scheduleIdentifier schedule_identifier test.Path_Variables.schedule_identifier ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.deleteSchedule( // scheduleIdentifier schedule_identifier test.Path_Variables.schedule_identifier ) ).to.be.rejectedWith(Error); } }); }); }); describe('deleteTag', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "deleteTag" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.deleteTag( // tagIdentifier tag_identifier test.Path_Variables.tag_identifier ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.deleteTag( // tagIdentifier tag_identifier test.Path_Variables.tag_identifier ) ).to.be.rejectedWith(Error); } }); }); }); describe('deleteUser', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "deleteUser" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.deleteUser( // userIdentifier user_identifier test.Path_Variables.user_identifier ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.deleteUser( // userIdentifier user_identifier test.Path_Variables.user_identifier ) ).to.be.rejectedWith(Error); } }); }); }); describe('deleteUserGroup', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "deleteUserGroup" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.deleteUserGroup( // groupIdentifier group_identifier test.Path_Variables.group_identifier ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.deleteUserGroup( // groupIdentifier group_identifier test.Path_Variables.group_identifier ) ).to.be.rejectedWith(Error); } }); }); }); describe('deleteVariable', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "deleteVariable" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.deleteVariable( // identifier identifier test.Path_Variables.identifier ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.deleteVariable( // identifier identifier test.Path_Variables.identifier ) ).to.be.rejectedWith(Error); } }); }); }); describe('deleteVariables', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "deleteVariables" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.deleteVariables( // deleteVariablesRequest DeleteVariablesRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.deleteVariables( // deleteVariablesRequest DeleteVariablesRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('deleteWebhookConfigurations', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "deleteWebhookConfigurations" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.deleteWebhookConfigurations( // deleteWebhookConfigurationsRequest DeleteWebhookConfigurationsRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.deleteWebhookConfigurations( // deleteWebhookConfigurationsRequest DeleteWebhookConfigurationsRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('deployCommit', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "deployCommit" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.deployCommit( // deployCommitRequest DeployCommitRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.deployCommit( // deployCommitRequest DeployCommitRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('downloadConnectionMetadataChanges', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "downloadConnectionMetadataChanges" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.downloadConnectionMetadataChanges( // connectionIdentifier connection_identifier test.Path_Variables.connection_identifier ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.downloadConnectionMetadataChanges( // connectionIdentifier connection_identifier test.Path_Variables.connection_identifier ) ).to.be.rejectedWith(Error); } }); }); }); describe('exportAnswerReport', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "exportAnswerReport" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.exportAnswerReport( // exportAnswerReportRequest ExportAnswerReportRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.exportAnswerReport( // exportAnswerReportRequest ExportAnswerReportRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('exportLiveboardReport', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "exportLiveboardReport" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.exportLiveboardReport( // exportLiveboardReportRequest ExportLiveboardReportRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.exportLiveboardReport( // exportLiveboardReportRequest ExportLiveboardReportRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('exportMetadataTML', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "exportMetadataTML" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.exportMetadataTML( // exportMetadataTMLRequest ExportMetadataTMLRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.exportMetadataTML( // exportMetadataTMLRequest ExportMetadataTMLRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('exportMetadataTMLBatched', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "exportMetadataTMLBatched" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.exportMetadataTMLBatched( // exportMetadataTMLBatchedRequest ExportMetadataTMLBatchedRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.exportMetadataTMLBatched( // exportMetadataTMLBatchedRequest ExportMetadataTMLBatchedRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('fetchAnswerData', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "fetchAnswerData" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.fetchAnswerData( // fetchAnswerDataRequest FetchAnswerDataRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.fetchAnswerData( // fetchAnswerDataRequest FetchAnswerDataRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('fetchAnswerSqlQuery', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "fetchAnswerSqlQuery" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.fetchAnswerSqlQuery( // fetchAnswerSqlQueryRequest FetchAnswerSqlQueryRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.fetchAnswerSqlQuery( // fetchAnswerSqlQueryRequest FetchAnswerSqlQueryRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('fetchAsyncImportTaskStatus', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "fetchAsyncImportTaskStatus" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.fetchAsyncImportTaskStatus( // fetchAsyncImportTaskStatusRequest FetchAsyncImportTaskStatusRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.fetchAsyncImportTaskStatus( // fetchAsyncImportTaskStatusRequest FetchAsyncImportTaskStatusRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('fetchColumnSecurityRules', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "fetchColumnSecurityRules" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.fetchColumnSecurityRules( // fetchColumnSecurityRulesRequest FetchColumnSecurityRulesRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.fetchColumnSecurityRules( // fetchColumnSecurityRulesRequest FetchColumnSecurityRulesRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('fetchConnectionDiffStatus', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "fetchConnectionDiffStatus" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.fetchConnectionDiffStatus( // connectionIdentifier connection_identifier test.Path_Variables.connection_identifier ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.fetchConnectionDiffStatus( // connectionIdentifier connection_identifier test.Path_Variables.connection_identifier ) ).to.be.rejectedWith(Error); } }); }); }); describe('fetchLiveboardData', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "fetchLiveboardData" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.fetchLiveboardData( // fetchLiveboardDataRequest FetchLiveboardDataRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.fetchLiveboardData( // fetchLiveboardDataRequest FetchLiveboardDataRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('fetchLiveboardSqlQuery', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "fetchLiveboardSqlQuery" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.fetchLiveboardSqlQuery( // fetchLiveboardSqlQueryRequest FetchLiveboardSqlQueryRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.fetchLiveboardSqlQuery( // fetchLiveboardSqlQueryRequest FetchLiveboardSqlQueryRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('fetchLogs', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "fetchLogs" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.fetchLogs( // fetchLogsRequest FetchLogsRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.fetchLogs( // fetchLogsRequest FetchLogsRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('fetchObjectPrivileges', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "fetchObjectPrivileges" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.fetchObjectPrivileges( // fetchObjectPrivilegesRequest FetchObjectPrivilegesRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.fetchObjectPrivileges( // fetchObjectPrivilegesRequest FetchObjectPrivilegesRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('fetchPermissionsOfPrincipals', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "fetchPermissionsOfPrincipals" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.fetchPermissionsOfPrincipals( // fetchPermissionsOfPrincipalsRequest FetchPermissionsOfPrincipalsRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.fetchPermissionsOfPrincipals( // fetchPermissionsOfPrincipalsRequest FetchPermissionsOfPrincipalsRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('fetchPermissionsOnMetadata', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "fetchPermissionsOnMetadata" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.fetchPermissionsOnMetadata( // fetchPermissionsOnMetadataRequest FetchPermissionsOnMetadataRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.fetchPermissionsOnMetadata( // fetchPermissionsOnMetadataRequest FetchPermissionsOnMetadataRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('forceLogoutUsers', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "forceLogoutUsers" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.forceLogoutUsers( // forceLogoutUsersRequest ForceLogoutUsersRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.forceLogoutUsers( // forceLogoutUsersRequest ForceLogoutUsersRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('generateCSV', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "generateCSV" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.generateCSV( // generateCSVRequest GenerateCSVRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.generateCSV( // generateCSVRequest GenerateCSVRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('getCurrentUserInfo', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "getCurrentUserInfo" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.getCurrentUserInfo( ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.getCurrentUserInfo( ) ).to.be.rejectedWith(Error); } }); }); }); describe('getCurrentUserToken', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "getCurrentUserToken" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.getCurrentUserToken( ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.getCurrentUserToken( ) ).to.be.rejectedWith(Error); } }); }); }); describe('getCustomAccessToken', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "getCustomAccessToken" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.getCustomAccessToken( // getCustomAccessTokenRequest GetCustomAccessTokenRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.getCustomAccessToken( // getCustomAccessTokenRequest GetCustomAccessTokenRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('getDataSourceSuggestions', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "getDataSourceSuggestions" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.getDataSourceSuggestions( // getDataSourceSuggestionsRequest GetDataSourceSuggestionsRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.getDataSourceSuggestions( // getDataSourceSuggestionsRequest GetDataSourceSuggestionsRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('getFullAccessToken', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "getFullAccessToken" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.getFullAccessToken( // getFullAccessTokenRequest GetFullAccessTokenRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.getFullAccessToken( // getFullAccessTokenRequest GetFullAccessTokenRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('getNLInstructions', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "getNLInstructions" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.getNLInstructions( // getNLInstructionsRequest GetNLInstructionsRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.getNLInstructions( // getNLInstructionsRequest GetNLInstructionsRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('getObjectAccessToken', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "getObjectAccessToken" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.getObjectAccessToken( // getObjectAccessTokenRequest GetObjectAccessTokenRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.getObjectAccessToken( // getObjectAccessTokenRequest GetObjectAccessTokenRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('getRelevantQuestions', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "getRelevantQuestions" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.getRelevantQuestions( // getRelevantQuestionsRequest GetRelevantQuestionsRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.getRelevantQuestions( // getRelevantQuestionsRequest GetRelevantQuestionsRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('getSystemConfig', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "getSystemConfig" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.getSystemConfig( ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.getSystemConfig( ) ).to.be.rejectedWith(Error); } }); }); }); describe('getSystemInformation', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "getSystemInformation" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.getSystemInformation( ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.getSystemInformation( ) ).to.be.rejectedWith(Error); } }); }); }); describe('getSystemOverrideInfo', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "getSystemOverrideInfo" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.getSystemOverrideInfo( ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.getSystemOverrideInfo( ) ).to.be.rejectedWith(Error); } }); }); }); describe('importMetadataTML', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "importMetadataTML" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.importMetadataTML( // importMetadataTMLRequest ImportMetadataTMLRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.importMetadataTML( // importMetadataTMLRequest ImportMetadataTMLRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('importMetadataTMLAsync', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "importMetadataTMLAsync" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.importMetadataTMLAsync( // importMetadataTMLAsyncRequest ImportMetadataTMLAsyncRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.importMetadataTMLAsync( // importMetadataTMLAsyncRequest ImportMetadataTMLAsyncRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('importUserGroups', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "importUserGroups" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.importUserGroups( // importUserGroupsRequest ImportUserGroupsRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.importUserGroups( // importUserGroupsRequest ImportUserGroupsRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('importUsers', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "importUsers" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.importUsers( // importUsersRequest ImportUsersRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.importUsers( // importUsersRequest ImportUsersRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('login', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "login" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.login( // loginRequest LoginRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.login( // loginRequest LoginRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('logout', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "logout" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.logout( ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.logout( ) ).to.be.rejectedWith(Error); } }); }); }); describe('manageObjectPrivilege', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "manageObjectPrivilege" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.manageObjectPrivilege( // manageObjectPrivilegeRequest ManageObjectPrivilegeRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.manageObjectPrivilege( // manageObjectPrivilegeRequest ManageObjectPrivilegeRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('parameterizeMetadata', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "parameterizeMetadata" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.parameterizeMetadata( // parameterizeMetadataRequest ParameterizeMetadataRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.parameterizeMetadata( // parameterizeMetadataRequest ParameterizeMetadataRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('parameterizeMetadataFields', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "parameterizeMetadataFields" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.parameterizeMetadataFields( // parameterizeMetadataFieldsRequest ParameterizeMetadataFieldsRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.parameterizeMetadataFields( // parameterizeMetadataFieldsRequest ParameterizeMetadataFieldsRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('publishMetadata', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "publishMetadata" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.publishMetadata( // publishMetadataRequest PublishMetadataRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.publishMetadata( // publishMetadataRequest PublishMetadataRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('putVariableValues', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "putVariableValues" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.putVariableValues( // identifier identifier test.Path_Variables.identifier , // putVariableValuesRequest PutVariableValuesRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.putVariableValues( // identifier identifier test.Path_Variables.identifier , // putVariableValuesRequest PutVariableValuesRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('queryGetDecomposedQuery', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "queryGetDecomposedQuery" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.queryGetDecomposedQuery( // queryGetDecomposedQueryRequest QueryGetDecomposedQueryRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.queryGetDecomposedQuery( // queryGetDecomposedQueryRequest QueryGetDecomposedQueryRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('resetUserPassword', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "resetUserPassword" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.resetUserPassword( // resetUserPasswordRequest ResetUserPasswordRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.resetUserPassword( // resetUserPasswordRequest ResetUserPasswordRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('revertCommit', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "revertCommit" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.revertCommit( // commitId commit_id test.Path_Variables.commit_id , // revertCommitRequest RevertCommitRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.revertCommit( // commitId commit_id test.Path_Variables.commit_id , // revertCommitRequest RevertCommitRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('revokeRefreshTokens', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "revokeRefreshTokens" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.revokeRefreshTokens( // connectionIdentifier connection_identifier test.Path_Variables.connection_identifier , // revokeRefreshTokensRequest RevokeRefreshTokensRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.revokeRefreshTokens( // connectionIdentifier connection_identifier test.Path_Variables.connection_identifier , // revokeRefreshTokensRequest RevokeRefreshTokensRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('revokeToken', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "revokeToken" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.revokeToken( // revokeTokenRequest RevokeTokenRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.revokeToken( // revokeTokenRequest RevokeTokenRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('searchCalendars', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "searchCalendars" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.searchCalendars( // searchCalendarsRequest SearchCalendarsRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.searchCalendars( // searchCalendarsRequest SearchCalendarsRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('searchChannelHistory', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "searchChannelHistory" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.searchChannelHistory( // searchChannelHistoryRequest SearchChannelHistoryRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.searchChannelHistory( // searchChannelHistoryRequest SearchChannelHistoryRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('searchCollections', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "searchCollections" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.searchCollections( // searchCollectionsRequest SearchCollectionsRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.searchCollections( // searchCollectionsRequest SearchCollectionsRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('searchCommits', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "searchCommits" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.searchCommits( // searchCommitsRequest SearchCommitsRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.searchCommits( // searchCommitsRequest SearchCommitsRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('searchCommunicationChannelPreferences', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "searchCommunicationChannelPreferences" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.searchCommunicationChannelPreferences( // searchCommunicationChannelPreferencesRequest SearchCommunicationChannelPreferencesRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.searchCommunicationChannelPreferences( // searchCommunicationChannelPreferencesRequest SearchCommunicationChannelPreferencesRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('searchConfig', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "searchConfig" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.searchConfig( // searchConfigRequest SearchConfigRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.searchConfig( // searchConfigRequest SearchConfigRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('searchConnection', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "searchConnection" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.searchConnection( // searchConnectionRequest SearchConnectionRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.searchConnection( // searchConnectionRequest SearchConnectionRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('searchCustomActions', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "searchCustomActions" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.searchCustomActions( // searchCustomActionsRequest SearchCustomActionsRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.searchCustomActions( // searchCustomActionsRequest SearchCustomActionsRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('searchData', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "searchData" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.searchData( // searchDataRequest SearchDataRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.searchData( // searchDataRequest SearchDataRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('searchEmailCustomization', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "searchEmailCustomization" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.searchEmailCustomization( // searchEmailCustomizationRequest SearchEmailCustomizationRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.searchEmailCustomization( // searchEmailCustomizationRequest SearchEmailCustomizationRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('searchMetadata', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "searchMetadata" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.searchMetadata( // searchMetadataRequest SearchMetadataRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.searchMetadata( // searchMetadataRequest SearchMetadataRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('searchOrgs', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "searchOrgs" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.searchOrgs( // searchOrgsRequest SearchOrgsRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.searchOrgs( // searchOrgsRequest SearchOrgsRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('searchRoles', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "searchRoles" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.searchRoles( // searchRolesRequest SearchRolesRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.searchRoles( // searchRolesRequest SearchRolesRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('searchSchedules', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "searchSchedules" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.searchSchedules( // searchSchedulesRequest SearchSchedulesRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.searchSchedules( // searchSchedulesRequest SearchSchedulesRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('searchSecuritySettings', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "searchSecuritySettings" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.searchSecuritySettings( // searchSecuritySettingsRequest SearchSecuritySettingsRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.searchSecuritySettings( // searchSecuritySettingsRequest SearchSecuritySettingsRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('searchTags', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "searchTags" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.searchTags( // searchTagsRequest SearchTagsRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.searchTags( // searchTagsRequest SearchTagsRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('searchUserGroups', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "searchUserGroups" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.searchUserGroups( // searchUserGroupsRequest SearchUserGroupsRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.searchUserGroups( // searchUserGroupsRequest SearchUserGroupsRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('searchUsers', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "searchUsers" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.searchUsers( // searchUsersRequest SearchUsersRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.searchUsers( // searchUsersRequest SearchUsersRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('searchVariables', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "searchVariables" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.searchVariables( // searchVariablesRequest SearchVariablesRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.searchVariables( // searchVariablesRequest SearchVariablesRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('searchWebhookConfigurations', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "searchWebhookConfigurations" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.searchWebhookConfigurations( // searchWebhookConfigurationsRequest SearchWebhookConfigurationsRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.searchWebhookConfigurations( // searchWebhookConfigurationsRequest SearchWebhookConfigurationsRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('sendAgentMessage', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "sendAgentMessage" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.sendAgentMessage( // conversationIdentifier conversation_identifier test.Path_Variables.conversation_identifier , // sendAgentMessageRequest SendAgentMessageRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.sendAgentMessage( // conversationIdentifier conversation_identifier test.Path_Variables.conversation_identifier , // sendAgentMessageRequest SendAgentMessageRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('sendAgentMessageStreaming', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "sendAgentMessageStreaming" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.sendAgentMessageStreaming( // sendAgentMessageStreamingRequest SendAgentMessageStreamingRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.sendAgentMessageStreaming( // sendAgentMessageStreamingRequest SendAgentMessageStreamingRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('sendMessage', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "sendMessage" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.sendMessage( // conversationIdentifier conversation_identifier test.Path_Variables.conversation_identifier , // sendMessageRequest SendMessageRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.sendMessage( // conversationIdentifier conversation_identifier test.Path_Variables.conversation_identifier , // sendMessageRequest SendMessageRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('setNLInstructions', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "setNLInstructions" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.setNLInstructions( // setNLInstructionsRequest SetNLInstructionsRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.setNLInstructions( // setNLInstructionsRequest SetNLInstructionsRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('shareMetadata', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "shareMetadata" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.shareMetadata( // shareMetadataRequest ShareMetadataRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.shareMetadata( // shareMetadataRequest ShareMetadataRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('singleAnswer', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "singleAnswer" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.singleAnswer( // singleAnswerRequest SingleAnswerRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.singleAnswer( // singleAnswerRequest SingleAnswerRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('unassignTag', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "unassignTag" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.unassignTag( // unassignTagRequest UnassignTagRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.unassignTag( // unassignTagRequest UnassignTagRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('unparameterizeMetadata', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "unparameterizeMetadata" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.unparameterizeMetadata( // unparameterizeMetadataRequest UnparameterizeMetadataRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.unparameterizeMetadata( // unparameterizeMetadataRequest UnparameterizeMetadataRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('unpublishMetadata', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "unpublishMetadata" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.unpublishMetadata( // unpublishMetadataRequest UnpublishMetadataRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.unpublishMetadata( // unpublishMetadataRequest UnpublishMetadataRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('updateCalendar', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "updateCalendar" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.updateCalendar( // calendarIdentifier calendar_identifier test.Path_Variables.calendar_identifier , // updateCalendarRequest UpdateCalendarRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.updateCalendar( // calendarIdentifier calendar_identifier test.Path_Variables.calendar_identifier , // updateCalendarRequest UpdateCalendarRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('updateCollection', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "updateCollection" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.updateCollection( // collectionIdentifier collection_identifier test.Path_Variables.collection_identifier , // updateCollectionRequest UpdateCollectionRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.updateCollection( // collectionIdentifier collection_identifier test.Path_Variables.collection_identifier , // updateCollectionRequest UpdateCollectionRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('updateColumnSecurityRules', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "updateColumnSecurityRules" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.updateColumnSecurityRules( // updateColumnSecurityRulesRequest UpdateColumnSecurityRulesRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.updateColumnSecurityRules( // updateColumnSecurityRulesRequest UpdateColumnSecurityRulesRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('updateConfig', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "updateConfig" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.updateConfig( // updateConfigRequest UpdateConfigRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.updateConfig( // updateConfigRequest UpdateConfigRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('updateConnection', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "updateConnection" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.updateConnection( // updateConnectionRequest UpdateConnectionRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.updateConnection( // updateConnectionRequest UpdateConnectionRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('updateConnectionConfiguration', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "updateConnectionConfiguration" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.updateConnectionConfiguration( // configurationIdentifier configuration_identifier test.Path_Variables.configuration_identifier , // updateConnectionConfigurationRequest UpdateConnectionConfigurationRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.updateConnectionConfiguration( // configurationIdentifier configuration_identifier test.Path_Variables.configuration_identifier , // updateConnectionConfigurationRequest UpdateConnectionConfigurationRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('updateConnectionV2', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "updateConnectionV2" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.updateConnectionV2( // connectionIdentifier connection_identifier test.Path_Variables.connection_identifier , // updateConnectionV2Request UpdateConnectionV2Request test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.updateConnectionV2( // connectionIdentifier connection_identifier test.Path_Variables.connection_identifier , // updateConnectionV2Request UpdateConnectionV2Request test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('updateCustomAction', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "updateCustomAction" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.updateCustomAction( // customActionIdentifier custom_action_identifier test.Path_Variables.custom_action_identifier , // updateCustomActionRequest UpdateCustomActionRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.updateCustomAction( // customActionIdentifier custom_action_identifier test.Path_Variables.custom_action_identifier , // updateCustomActionRequest UpdateCustomActionRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('updateDbtConnection', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "updateDbtConnection" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.updateDbtConnection( // dbtConnectionIdentifier dbt_connection_identifier , // connectionName connection_name , // databaseName database_name , // importType import_type , // accessToken access_token , // dbtUrl dbt_url , // accountId account_id , // projectId project_id , // dbtEnvId dbt_env_id , // projectName project_name , // fileContent file_content ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.updateDbtConnection( // dbtConnectionIdentifier dbt_connection_identifier , // connectionName connection_name , // databaseName database_name , // importType import_type , // accessToken access_token , // dbtUrl dbt_url , // accountId account_id , // projectId project_id , // dbtEnvId dbt_env_id , // projectName project_name , // fileContent file_content ) ).to.be.rejectedWith(Error); } }); }); }); describe('updateEmailCustomization', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "updateEmailCustomization" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.updateEmailCustomization( // updateEmailCustomizationRequest UpdateEmailCustomizationRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.updateEmailCustomization( // updateEmailCustomizationRequest UpdateEmailCustomizationRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('updateMetadataHeader', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "updateMetadataHeader" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.updateMetadataHeader( // updateMetadataHeaderRequest UpdateMetadataHeaderRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.updateMetadataHeader( // updateMetadataHeaderRequest UpdateMetadataHeaderRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('updateMetadataObjId', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "updateMetadataObjId" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.updateMetadataObjId( // updateMetadataObjIdRequest UpdateMetadataObjIdRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.updateMetadataObjId( // updateMetadataObjIdRequest UpdateMetadataObjIdRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('updateOrg', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "updateOrg" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.updateOrg( // orgIdentifier org_identifier test.Path_Variables.org_identifier , // updateOrgRequest UpdateOrgRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.updateOrg( // orgIdentifier org_identifier test.Path_Variables.org_identifier , // updateOrgRequest UpdateOrgRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('updateRole', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "updateRole" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.updateRole( // roleIdentifier role_identifier test.Path_Variables.role_identifier , // updateRoleRequest UpdateRoleRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.updateRole( // roleIdentifier role_identifier test.Path_Variables.role_identifier , // updateRoleRequest UpdateRoleRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('updateSchedule', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "updateSchedule" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.updateSchedule( // scheduleIdentifier schedule_identifier test.Path_Variables.schedule_identifier , // updateScheduleRequest UpdateScheduleRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.updateSchedule( // scheduleIdentifier schedule_identifier test.Path_Variables.schedule_identifier , // updateScheduleRequest UpdateScheduleRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('updateSystemConfig', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "updateSystemConfig" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.updateSystemConfig( // updateSystemConfigRequest UpdateSystemConfigRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.updateSystemConfig( // updateSystemConfigRequest UpdateSystemConfigRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('updateTag', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "updateTag" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.updateTag( // tagIdentifier tag_identifier test.Path_Variables.tag_identifier , // updateTagRequest UpdateTagRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.updateTag( // tagIdentifier tag_identifier test.Path_Variables.tag_identifier , // updateTagRequest UpdateTagRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('updateUser', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "updateUser" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.updateUser( // userIdentifier user_identifier test.Path_Variables.user_identifier , // updateUserRequest UpdateUserRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.updateUser( // userIdentifier user_identifier test.Path_Variables.user_identifier , // updateUserRequest UpdateUserRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('updateUserGroup', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "updateUserGroup" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.updateUserGroup( // groupIdentifier group_identifier test.Path_Variables.group_identifier , // updateUserGroupRequest UpdateUserGroupRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.updateUserGroup( // groupIdentifier group_identifier test.Path_Variables.group_identifier , // updateUserGroupRequest UpdateUserGroupRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('updateVariable', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "updateVariable" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.updateVariable( // identifier identifier test.Path_Variables.identifier , // updateVariableRequest UpdateVariableRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.updateVariable( // identifier identifier test.Path_Variables.identifier , // updateVariableRequest UpdateVariableRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('updateVariableValues', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "updateVariableValues" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.updateVariableValues( // updateVariableValuesRequest UpdateVariableValuesRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.updateVariableValues( // updateVariableValuesRequest UpdateVariableValuesRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('updateWebhookConfiguration', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "updateWebhookConfiguration" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.updateWebhookConfiguration( // webhookIdentifier webhook_identifier test.Path_Variables.webhook_identifier , // updateWebhookConfigurationRequest UpdateWebhookConfigurationRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.updateWebhookConfiguration( // webhookIdentifier webhook_identifier test.Path_Variables.webhook_identifier , // updateWebhookConfigurationRequest UpdateWebhookConfigurationRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('validateCommunicationChannel', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "validateCommunicationChannel" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.validateCommunicationChannel( // validateCommunicationChannelRequest ValidateCommunicationChannelRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.validateCommunicationChannel( // validateCommunicationChannelRequest ValidateCommunicationChannelRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('validateEmailCustomization', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "validateEmailCustomization" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.validateEmailCustomization( ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.validateEmailCustomization( ) ).to.be.rejectedWith(Error); } }); }); }); describe('validateMerge', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "validateMerge" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.validateMerge( // validateMergeRequest ValidateMergeRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.validateMerge( // validateMergeRequest ValidateMergeRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); describe('validateToken', function() { const testReqBodies = requestBodies.filter( (body: any) => body.Metadata.operationId === "validateToken" ); testReqBodies.forEach(async (test: any) => { it(`${test.Metadata.operationId} - ${test.Metadata.scenario} : Testid - ${test.Metadata.testId}`, async function () { if (test.Metadata.scenario === "positive") { var data; try { data = await instance.validateToken( // validateTokenRequest ValidateTokenRequest test.Body ) } catch (er) { console.error(er, "Response", data) expect(er).to.be.undefined } } else { await expect( instance.validateToken( // validateTokenRequest ValidateTokenRequest test.Body ) ).to.be.rejectedWith(Error); } }); }); }); });