| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- 'use strict';
- const sampleEvent1 = {
- _id: '5f076b8e4d122ec1152361ec',
- active_period: {
- duration_seconds: 1800,
- notification_duration_seconds: 86400,
- ramp_up_duration_seconds: 3600,
- start_tolerance_duration_seconds: 0,
- start_time: '2020-07-10T00:00:00Z',
- },
- cancelled: false,
- company: 'cyberdyne',
- created_at: '2020-07-09T19:10:06.332Z',
- dis: 'Test Event 1',
- market_context: 'http://emix',
- modification_number: 0,
- priority: 0,
- response_required: true,
- signals: {
- event: [
- {
- signal_id: 'id1',
- signal_name: 'BID_LOAD',
- signal_type: 'setpoint',
- current_value: 45.5,
- duration_seconds: 1800,
- start_time: '2020-07-10T00:00:00.000Z',
- intervals: [
- {
- duration_seconds: 1740,
- signal_payloads: [50],
- uid: '0',
- },
- {
- duration_seconds: 60,
- signal_payloads: [51],
- uid: '1',
- },
- ],
- item_base: {
- type: 'power-real',
- dis: 'RealPower',
- units: 'W',
- si_scale_code: 'none',
- power_attributes: {
- hertz: 60,
- voltage: 120,
- ac: true,
- },
- },
- },
- ],
- baseline: {
- baseline_id: 'id2',
- baseline_name: 'bname',
- duration_seconds: 1800,
- intervals: [
- {
- duration_seconds: 1740,
- signal_payloads: [50],
- uid: '0',
- },
- {
- duration_seconds: 60,
- signal_payloads: [51],
- uid: '1',
- },
- ],
- item_base: {
- type: 'power-real',
- dis: 'RealPower',
- units: 'W',
- si_scale_code: 'none',
- power_attributes: {
- hertz: 60,
- voltage: 120,
- ac: true,
- },
- },
- start_time: '2020-07-10T00:00:00Z',
- },
- },
- targets: [
- {
- dis: 'ven target',
- target_type: 'ven',
- value: 'D8:1D:4B:20:5A:65:4C:50:32:FA',
- },
- ],
- test_event: false,
- };
- const sampleVen1 = {
- dis: 'Test VEN 1',
- oadr_utility_ven_registrationId: '123123123123123123129999',
- company: 'cyberdyne',
- created_at: new Date(),
- };
- const sampleVenRegistration1 = {
- _id: '123123123123123123129999',
- company: 'cyberdyne',
- created_at: new Date(),
- dis: 'Test VEN Registration 1',
- ns: 'cyberdyne_studios',
- profile_name: '2.0b',
- is_report_only: false,
- supports_xml_sig: false,
- transport_name: 'simpleHttp',
- uses_http_pull: true,
- client_certificate_common_name: 'aabbccddeeff',
- client_certificate_fingerprint: 'D8:1D:4B:20:5A:65:4C:50:32:FA',
- };
- const sampleReport1 = [
- {
- report_request_ids: ['uuid0'],
- report_specifier_id: 'TELEMETRY_STATUS',
- descriptions: [
- {
- report_id: 'TelemetryStatusReport',
- report_type: 'x-resourceStatus',
- reading_type: 'x-notApplicable',
- sampling_rate: {
- min_period: 'PT1M',
- max_period: 'PT1H',
- on_change: false,
- },
- },
- ],
- last_received_register: '2020-04-26T01:00:00.000Z',
- },
- {
- report_request_ids: ['uuid1'],
- report_specifier_id: 'TELEMETRY_USAGE',
- descriptions: [
- {
- report_id: 'rep1',
- report_type: 'usage',
- reading_type: 'Direct Read',
- sampling_rate: {
- min_period: 'PT1M',
- max_period: 'PT1H',
- on_change: false,
- },
- },
- {
- report_id: 'rep2',
- report_type: 'usage',
- reading_type: 'Direct Read',
- sampling_rate: {
- min_period: 'PT1M',
- max_period: 'PT1H',
- on_change: false,
- },
- },
- ],
- last_received_register: '2020-04-26T01:00:00.000Z',
- },
- ];
- module.exports = {
- sampleEvent1,
- sampleReport1,
- sampleVen1,
- sampleVenRegistration1,
- };
|