| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- 'use strict';
- const registeredReportMin = {
- _type: 'oadrRegisteredReport',
- responseCode: '200',
- responseRequestId: '31c5ce71a68a73ece370',
- };
- const registeredReportMax = {
- _type: 'oadrRegisteredReport',
- responseCode: '200',
- responseDescription: 'OK',
- responseRequestId: '31c5ce71a68a73ece370',
- requests: [
- {
- reportRequestId: '87bbc1d44d903f317758',
- reportSpecifierId: 'TELEMETRY_USAGE',
- granularityDuration: 'PT30S',
- reportBackDuration: 'PT1M',
- startDate: '2020-05-09T03:24:48.000Z',
- duration: 'PT24H',
- specifiers: [
- {
- reportId: 'rep1',
- readingType: 'x-notApplicable',
- },
- {
- reportId: 'rep2',
- readingType: 'x-notApplicable',
- },
- ],
- },
- {
- reportRequestId: '3d92d98e0b65d94e60a7',
- reportSpecifierId: 'TELEMETRY_STATUS',
- granularityDuration: 'PT30S',
- reportBackDuration: 'PT2M',
- startDate: '2020-05-09T03:25:44.000Z',
- duration: 'PT24H',
- specifiers: [
- {
- reportId: 'ts1',
- readingType: 'x-notApplicable',
- },
- ],
- },
- ],
- };
- const createReportMin = {
- _type: 'oadrCreateReport',
- requests: [],
- requestId: '4323',
- };
- const createReportMax = {
- _type: 'oadrCreateReport',
- requestId: '31c5ce71a68a73ece370',
- requests: [
- {
- reportRequestId: '87bbc1d44d903f317758',
- reportSpecifierId: 'TELEMETRY_USAGE',
- granularityDuration: 'PT30S',
- reportBackDuration: 'PT1M',
- startDate: '2020-05-09T03:24:48.000Z',
- duration: 'PT24H',
- specifiers: [
- {
- reportId: 'rep1',
- readingType: 'x-notApplicable',
- },
- {
- reportId: 'rep2',
- readingType: 'x-notApplicable',
- },
- ],
- },
- {
- reportRequestId: '3d92d98e0b65d94e60a7',
- reportSpecifierId: 'TELEMETRY_STATUS',
- granularityDuration: 'PT30S',
- reportBackDuration: 'PT2M',
- startDate: '2020-05-09T03:25:44.000Z',
- duration: 'PT24H',
- specifiers: [
- {
- reportId: 'ts1',
- readingType: 'x-notApplicable',
- },
- ],
- },
- ],
- };
- const createReportGenerated1 = {
- _type: 'oadrCreateReport',
- requestId: 'uuid2',
- requests: [
- {
- reportRequestId: 'uuid0',
- reportSpecifierId: 'TELEMETRY_STATUS',
- granularityDuration: 'PT60S',
- reportBackDuration: 'PT60S',
- startDate: '2020-04-26T01:00:00.000Z',
- duration: 'PT3600S',
- specifiers: [
- {
- reportId: 'ts1',
- readingType: 'x-notApplicable',
- },
- ],
- },
- {
- reportRequestId: 'uuid1',
- reportSpecifierId: 'TELEMETRY_USAGE',
- granularityDuration: 'PT60S',
- reportBackDuration: 'PT60S',
- startDate: '2020-04-26T01:00:00.000Z',
- duration: 'PT3600S',
- specifiers: [
- {
- reportId: 'rep1',
- readingType: 'x-notApplicable',
- },
- {
- reportId: 'rep2',
- readingType: 'x-notApplicable',
- },
- ],
- },
- ],
- };
- const createReportGenerated2 = {
- _type: 'oadrCreateReport',
- requestId: 'uuid2',
- requests: [
- {
- reportRequestId: 'uuid0',
- reportSpecifierId: 'TELEMETRY_STATUS',
- granularityDuration: 'PT60S',
- reportBackDuration: 'PT60S',
- startDate: '2020-04-26T01:01:30.000Z',
- duration: 'PT3600S',
- specifiers: [
- {
- reportId: 'ts1',
- readingType: 'x-notApplicable',
- },
- ],
- },
- {
- reportRequestId: 'uuid1',
- reportSpecifierId: 'TELEMETRY_USAGE',
- granularityDuration: 'PT60S',
- reportBackDuration: 'PT60S',
- startDate: '2020-04-26T01:01:30.000Z',
- duration: 'PT3600S',
- specifiers: [
- {
- reportId: 'rep1',
- readingType: 'x-notApplicable',
- },
- {
- reportId: 'rep2',
- readingType: 'x-notApplicable',
- },
- ],
- },
- ],
- };
- const updatedReportMin = {
- _type: 'oadrUpdatedReport',
- responseCode: '200',
- responseRequestId: '4323',
- };
- const updatedReportMax = {
- _type: 'oadrUpdatedReport',
- responseCode: '200',
- responseDescription: 'OK',
- responseRequestId: '4323',
- venId: 'D8:1D:4B:20:5A:65:4C:50:32:FA',
- };
- module.exports = {
- createReportMax,
- createReportMin,
- createReportGenerated1,
- createReportGenerated2,
- registeredReportMax,
- registeredReportMin,
- updatedReportMin,
- updatedReportMax,
- };
|