UNPKG

component-dbs-core

Version:

DTO objects shared among device backend

54 lines 2.37 kB
"use strict"; /* istanbul ignore file */ /* eslint-disable */ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ChangePwdTestSuite = void 0; const testCases_1 = require("./testCases"); class ChangePwdTestSuite { constructor() { this.params = [ [testCases_1.IdentityTestCase.CHANGEPASSWORD_SUCCESS, true], [ testCases_1.IdentityTestCase.CHANGEPASSWORD_UNKNOWN_ERROR, false, ], ]; } getParameterForTestCase(testCase, deviceService) { return __awaiter(this, void 0, void 0, function* () { switch (testCase) { case testCases_1.IdentityTestCase.CHANGEPASSWORD_SUCCESS: return { password: 'kisParol123!', userId: 'auth0|5ee711dfe183270019294c10', testCaseCode: testCase, }; case testCases_1.IdentityTestCase.CHANGEPASSWORD_UNKNOWN_ERROR: { return { password: 'kisparol', userId: 'auth0|5ee711dfe183270019294c10', testCaseCode: testCase, }; } case testCases_1.IdentityTestCase.CHANGEPASSWORD_USER_NOT_FOUND: { return { password: 'kisparol', userId: 'auth0|5ee711dfe183270019294c11', testCaseCode: testCase, }; } } }); } } exports.ChangePwdTestSuite = ChangePwdTestSuite; //# sourceMappingURL=changePwdTestSuite.js.map