update dependencies
[websub-hub] / test / test-data / db-integration.js
1 'use strict';
2
3 const remoteAddress = '127.0.0.10';
4 const callbackUrl = 'https://example.com/consume?id=123&token=abc';
5 const topicUrl = 'https://example.com/some_blog';
6 const modeSubscribe = 'subscribe';
7
8 module.exports = {
9 topicSet: {
10 url: topicUrl,
11 leaseSecondsPreferred: null,
12 leaseSecondsMin: 86400,
13 leaseSecondsMax: 8640000,
14 publisherValidationUrl: null,
15 },
16 anotherTopicSet: {
17 url: 'https://example.com/another_blog/',
18 leaseSecondsPreferred: null,
19 leaseSecondsMin: 86400,
20 leaseSecondsMax: 8640000,
21 publisherValidationUrl: null,
22 },
23 topicUpdate: {
24 url: topicUrl,
25 leaseSecondsPreferred: 864000,
26 },
27 topicSetContent: {
28 topicId: undefined,
29 content: 'content',
30 contentHash: 'b2d1d285b5199c85f988d03649c37e44fd3dde01e5d69c50fef90651962f48110e9340b60d49a479c4c0b53f5f07d690686dd87d2481937a512e8b85ee7c617f',
31 contentType: 'text/plain',
32 },
33 subscriptionUpsert: {
34 callback: callbackUrl,
35 topicId: undefined,
36 leaseSeconds: 172800,
37 secret: 'SecretSecret',
38 httpRemoteAddr: remoteAddress,
39 },
40 verificationInsert: {
41 topicId: undefined,
42 callback: callbackUrl,
43 mode: modeSubscribe,
44 secret: 'SecretSecret',
45 leaseSeconds: 864000,
46 httpRemoteAddr: remoteAddress,
47 isPublisherValidated: false,
48 },
49 verificationUpdate: {
50 mode: modeSubscribe,
51 reason: 'reason',
52 isPublisherValidated: true,
53 },
54 };