aboutsummaryrefslogtreecommitdiffstats
path: root/cucumber-js-test-apis-ci
AgeCommit message (Expand)AuthorFilesLines
2020-03-23Entitlement Pool - Support Type FieldBen David, Elad (eb7504)1-9/+28
2020-03-12Disable SecurityFilterOfir Sonsino1-2/+2
2020-02-02Move to version 1.6.1shrek20001-2/+2
2019-12-05Fix failed merge jobvasraz1-6/+2
2019-12-01Upgrade Node & npm versionvasraz1-10/+16
2019-10-29Bump SDC version 1.6.0Ofir Sonsino1-2/+2
2019-09-10Bump SDC version 1.5.2Ofir Sonsino1-2/+2
2019-08-06Minor feature by checking for status code in addition to error codeilanap2-23/+31
2019-08-04Issue-ID: SDC-2483ilanap30-358/+575
2019-07-28Update SDC version 1.5.1Ofir Sonsino1-2/+2
2019-06-17Change-Id: Ia2e7429fab8ea4e73bcdd4b0a74c966ec80e7023dfx19711-1/+1
2019-05-07Update SDC version 1.5.0Sonsino, Ofir (os0695)1-2/+2
2019-02-07Fixes to docker runilanap3-8/+8
2019-02-05Fixes to docker runilanap2-6/+10
2019-02-04Fixes to docker runilanap2-34/+30
2019-02-03Fixes to docker runilanap2-6/+10
2019-01-31Fixes to testsilanap5-16/+8
2019-01-27Fix for parent versionilanap1-1/+0
2019-01-27Fix for parent versionilanap1-1/+1
2019-01-24Cucumber test fixessiddharth090513-12/+31
2019-01-14Interface operation feature enhancementspriyanshu13-388/+263
2019-01-06fix for pom and scriptilanap1-50/+34
2019-01-06fix for pom and scriptilanap2-4/+111
2019-01-02docker for cucumber BDDilanap119-0/+6146
"app/models/attributes-outputs/attribute-output-detail"; import {AttributeBEModel} from "app/models/attributes-outputs/attribute-be-model"; export class AttributesGroup { constructor(attributesObj?: AttributesGroup) { _.forEach(attributesObj, (attributes: Array<AttributeModel>, instance) => { this[instance] = []; _.forEach(attributes, (attribute: AttributeModel): void => { attribute.resourceInstanceUniqueId = instance; attribute.readonly = true; this[instance].push(new AttributeModel(attribute)); }); }); } } export interface IAttributeModel { //server data uniqueId: string; name: string; _default: string; description: string; type: string; schema: SchemaAttributeGroupModel; status: string; value: string; parentUniqueId: string; //custom data resourceInstanceUniqueId: string; readonly: boolean; valueUniqueUid: string; } export class AttributeModel extends AttributeBEModel implements IAttributeModel { //server data uniqueId: string; name: string; _default: string; description: string; type: string; schema: SchemaAttributeGroupModel; status: string; value: string; parentUniqueId: string; //custom data resourceInstanceUniqueId: string; readonly: boolean; valueUniqueUid: string; getOutputValues: AttributeOutputDetail[]; subAttributeOutputPath: string; outputPath: string; constructor(attribute?: AttributeModel) { super(attribute); if (attribute) { this.uniqueId = attribute.uniqueId; this.name = attribute.name; this._default = attribute._default; this.description = attribute.description; this.type = attribute.type; this.status = attribute.status; this.schema = attribute.schema; this.value = attribute.value; this.parentUniqueId = attribute.parentUniqueId; this.resourceInstanceUniqueId = attribute.resourceInstanceUniqueId; this.readonly = attribute.readonly; this.valueUniqueUid = attribute.valueUniqueUid; this.getOutputValues = attribute.getOutputValues; this.subAttributeOutputPath = attribute.subAttributeOutputPath; this.outputPath = attribute.outputPath; } else { this._default = ''; } if (!this.schema || !this.schema.property) { this.schema = new SchemaAttributeGroupModel(new SchemaAttribute()); } else { //forcing creating new object, so editing different one than the object in the table this.schema = new SchemaAttributeGroupModel(new SchemaAttribute(this.schema.property)); } this.convertValueToView(); } public convertToServerObject(): string { if (this._default && this.type === 'map') { this._default = '{' + this._default + '}'; } if (this._default && this.type === 'list') { this._default = '[' + this._default + ']'; } this._default = this._default != "" && this._default != "[]" && this._default != "{}" ? this._default : null; return JSON.stringify(this); } public convertValueToView() { //unwrapping value {} or [] if type is complex if (this._default && (this.type === 'map' || this.type === 'list') && ['[', '{'].indexOf(this._default.charAt(0)) > -1 && [']', '}'].indexOf(this._default.slice(-1)) > -1) { this._default = this._default.slice(1, -1); } //also for value - for the modal in canvas if (this.value && (this.type === 'map' || this.type === 'list') && ['[', '{'].indexOf(this.value.charAt(0)) > -1 && [']', '}'].indexOf(this.value.slice(-1)) > -1) { this.value = this.value.slice(1, -1); } } public toJSON = (): any => { if (!this.resourceInstanceUniqueId) { this.value = undefined; } this.readonly = undefined; this.resourceInstanceUniqueId = undefined; return this; }; }