|
@@ -1,9 +1,15 @@
|
|
|
'use strict';
|
|
'use strict';
|
|
|
|
|
|
|
|
-const generatedEvent1 = {
|
|
|
|
|
|
|
+const distributeEventMin1 = {
|
|
|
|
|
+ _type: 'oadrDistributeEvent',
|
|
|
|
|
+ requestId: '81dc20dfea7df7a2bb9e',
|
|
|
|
|
+ vtnId: 'NANTUM_VTN',
|
|
|
|
|
+ events: [],
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+const distributeEventMin2 = {
|
|
|
_type: 'oadrDistributeEvent',
|
|
_type: 'oadrDistributeEvent',
|
|
|
responseCode: '200',
|
|
responseCode: '200',
|
|
|
- responseDescription: 'OK',
|
|
|
|
|
responseRequestId: '9383fc5946cb0e14ef5a',
|
|
responseRequestId: '9383fc5946cb0e14ef5a',
|
|
|
requestId: '81dc20dfea7df7a2bb9e',
|
|
requestId: '81dc20dfea7df7a2bb9e',
|
|
|
vtnId: 'NANTUM_VTN',
|
|
vtnId: 'NANTUM_VTN',
|
|
@@ -16,17 +22,10 @@ const generatedEvent1 = {
|
|
|
createdDateTime: '2020-04-14T16:06:39.000Z',
|
|
createdDateTime: '2020-04-14T16:06:39.000Z',
|
|
|
eventStatus: 'far',
|
|
eventStatus: 'far',
|
|
|
testEvent: false,
|
|
testEvent: false,
|
|
|
- modificationReason: '',
|
|
|
|
|
- priority: 0,
|
|
|
|
|
- vtnComment: '',
|
|
|
|
|
},
|
|
},
|
|
|
activePeriod: {
|
|
activePeriod: {
|
|
|
- startDate: '2020-04-18T16:21:00.000Z',
|
|
|
|
|
|
|
+ startDate: '2020-04-14T16:21:00.000Z',
|
|
|
duration: 'PT60M',
|
|
duration: 'PT60M',
|
|
|
- toleranceTolerateStartAfter: 'PT5M',
|
|
|
|
|
- notificationDuration: 'PT5M',
|
|
|
|
|
- rampUpDuration: 'PT10M',
|
|
|
|
|
- recoveryDuration: 'PT12M',
|
|
|
|
|
},
|
|
},
|
|
|
signals: {
|
|
signals: {
|
|
|
event: [
|
|
event: [
|
|
@@ -34,7 +33,7 @@ const generatedEvent1 = {
|
|
|
intervals: [
|
|
intervals: [
|
|
|
{
|
|
{
|
|
|
signalPayloads: [50],
|
|
signalPayloads: [50],
|
|
|
- duration: 'PT60M',
|
|
|
|
|
|
|
+ duration: 'PT10M',
|
|
|
uid: '1',
|
|
uid: '1',
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
@@ -52,7 +51,7 @@ const generatedEvent1 = {
|
|
|
],
|
|
],
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-const generatedEvent2 = {
|
|
|
|
|
|
|
+const distributeEventMax = {
|
|
|
_type: 'oadrDistributeEvent',
|
|
_type: 'oadrDistributeEvent',
|
|
|
responseCode: '200',
|
|
responseCode: '200',
|
|
|
responseDescription: 'OK',
|
|
responseDescription: 'OK',
|
|
@@ -265,7 +264,7 @@ const generatedEvent2 = {
|
|
|
],
|
|
],
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-const epriEvent1 = {
|
|
|
|
|
|
|
+const distributeEventEpri1 = {
|
|
|
_type: 'oadrDistributeEvent',
|
|
_type: 'oadrDistributeEvent',
|
|
|
responseCode: '200',
|
|
responseCode: '200',
|
|
|
responseDescription: 'OK',
|
|
responseDescription: 'OK',
|
|
@@ -530,8 +529,9 @@ const generatedFromNantumEvent1 = {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
module.exports = {
|
|
module.exports = {
|
|
|
- generatedEvent1,
|
|
|
|
|
- generatedEvent2,
|
|
|
|
|
|
|
+ distributeEventMin1,
|
|
|
|
|
+ distributeEventMin2,
|
|
|
|
|
+ distributeEventMax,
|
|
|
|
|
+ distributeEventEpri1,
|
|
|
generatedFromNantumEvent1,
|
|
generatedFromNantumEvent1,
|
|
|
- epriEvent1,
|
|
|
|
|
};
|
|
};
|