-
Notifications
You must be signed in to change notification settings - Fork 44
/
sandbox-invoke-mocks.js
245 lines (217 loc) · 10.6 KB
/
sandbox-invoke-mocks.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
const testString = `From: "LastName, FirstName"
To: "[email protected]" <[email protected]>
Subject: GRB 230207B: Detection by GRBAlpha
Thread-Topic: GRB 230207B: Detection by GRBAlpha
Thread-Index: Adk9dI5aYPr6M3WhQFmrIV1eoz5z1A==
Date: Fri, 10 Feb 2023 17:24:40 +0000
Accept-Language: en-US
Content-Language: en-US
Content-Type: multipart/alternative;
boundary="_000_PH0PR09MB78840D967BF3AA3F19E64A96A1DE9PH0PR09MB7884namp_"
MIME-Version: 1.0
--_000_PH0PR09MB78840D967BF3AA3F19E64A96A1DE9PH0PR09MB7884namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
There is no strife, no prejudice, no national conflict in outer space as yet. Its hazards are hostile to us all. Its conquest deserves the best of all mankind, and its opportunity for peaceful cooperation many never come again. But why, some say, the moon? Why choose this as our goal? And they may well ask why climb the highest mountain? Why, 35 years ago, fly the Atlantic? Why does Rice play Texas?
We choose to go to the moon. We choose to go to the moon in this decade and do the other things, not because they are easy, but because they are hard, because that goal will serve to organize and measure the best of our energies and skills, because that challenge is one that we are willing to accept, one we are unwilling to postpone, and one which we intend to win, and the others, too.
It is for these reasons that I regard the decision last year to shift our efforts in space from low to high gear as among the most important decisions that will be made during my incumbency in the office of the Presidency.
In the last 24 hours we have seen facilities now being created for the greatest and most complex exploration in man's history. We have felt the ground shake and the air shattered by the testing of a Saturn C-1 booster rocket, many times as powerful as the Atlas which launched John Glenn, generating power equivalent to 10,000 automobiles with their accelerators on the floor. We have seen the site where the F-1 rocket engines, each one as powerful as all eight engines of the Saturn combined, will be clustered together to make the advanced Saturn missile, assembled in a new building to be built at Cape Canaveral as tall as a 48 story structure, as wide as a city block, and as long as two lengths of this field.
There is no strife, no prejudice, no national conflict in outer space as yet. Its hazards are hostile to us all. Its conquest deserves the best of all mankind, and its opportunity for peaceful cooperation many never come again. But why, some say, the moon? Why choose this as
our goal? And they may well ask why climb the highest mountain? Why, 35 years ago, fly the Atlantic? Why does Rice play Texas?
We choose to go to the moon. We choose to go to the moon in this decade and do the other things, not because they are easy, but because they are hard, because that goal will serve to organize and measure the best of our energies and skills, because that challenge is one that
we are willing to accept, one we are unwilling to postpone, and one which we intend to win, and the others, too.
It is for these reasons that I regard the decision last year to shift our efforts in space from low to high gear as among the most important decisions that will be made during my incumbency in the office of the Presidency.
In the last 24 hours we have seen facilities now being created for the greatest and most complex exploration in man's history. We have felt the ground shake and the air shattered by the testing of a Saturn C-1 booster rocket, many times as powerful as the Atlas which launched John Glenn, generating power equivalent to 10,000 automobiles with their accelerators on the floor. We have seen the site where the F-1 rocket engines, each one as powerful as all eight engines of the Saturn combined, will be clustered together to make the advanced Saturn missile, assembled in a new building to be built at Cape Canaveral as tall as a 48 story structure, as wide as a city block, and as long as
two lengths of this field.
¢ £ ¤ ¥ ¦ § ¨ © ª « ¶ µ À Á Â Ã
--_000_PH0PR09MB78840D967BF3AA3F19E64A96A1DE9PH0PR09MB7884namp_
`
const invalidUserTestString = `From: "LastName, FirstName"
To: "[email protected]" <[email protected]>
Subject: GRB 230207B: Detection by GRBAlpha
Thread-Topic: GRB 230207B: Detection by GRBAlpha
Thread-Index: Adk9dI5aYPr6M3WhQFmrIV1eoz5z1A==
Date: Fri, 10 Feb 2023 17:24:40 +0000
Accept-Language: en-US
Content-Language: en-US
Content-Type: multipart/alternative;
boundary="_000_PH0PR09MB78840D967BF3AA3F19E64A96A1DE9PH0PR09MB7884namp_"
MIME-Version: 1.0
--_000_PH0PR09MB78840D967BF3AA3F19E64A96A1DE9PH0PR09MB7884namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
This is a test
¢ £ ¤ ¥ ¦ § ¨ © ª « ¶ µ À Á Â Ã
--_000_PH0PR09MB78840D967BF3AA3F19E64A96A1DE9PH0PR09MB7884namp_
`
const validLegacyUserTestString = `From: "LastName, FirstName"
To: "[email protected]" <[email protected]>
Subject: GRB 230207B: Detection by GRBAlpha
Thread-Topic: GRB 230207B: Detection by GRBAlpha
Thread-Index: Adk9dI5aYPr6M3WhQFmrIV1eoz5z1A==
Date: Fri, 10 Feb 2023 17:24:40 +0000
Accept-Language: en-US
Content-Language: en-US
Content-Type: multipart/alternative;
boundary="_000_PH0PR09MB78840D967BF3AA3F19E64A96A1DE9PH0PR09MB7884namp_"
MIME-Version: 1.0
--_000_PH0PR09MB78840D967BF3AA3F19E64A96A1DE9PH0PR09MB7884namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
This is a test for legacy user stuff
--_000_PH0PR09MB78840D967BF3AA3F19E64A96A1DE9PH0PR09MB7884namp_
`
const emailSpamAndVirusScan = `From: "LastName, FirstName"
To: "[email protected]" <[email protected]>
Subject: GRB 230207B: Detection by GRBAlpha
Thread-Topic: GRB 230207B: Detection by GRBAlpha
Thread-Index: Adk9dI5aYPr6M3WhQFmrIV1eoz5z1A==
Date: Fri, 10 Feb 2023 17:24:40 +0000
Accept-Language: en-US
Content-Language: en-US
Content-Type: multipart/alternative;
boundary="_000_PH0PR09MB78840D967BF3AA3F19E64A96A1DE9PH0PR09MB7884namp_"
MIME-Version: 1.0
--_000_PH0PR09MB78840D967BF3AA3F19E64A96A1DE9PH0PR09MB7884namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
This is a test for Spam/Virus
--_000_PH0PR09MB78840D967BF3AA3F19E64A96A1DE9PH0PR09MB7884namp_
`
export default {
events: {
'email-incoming': {
main: {
content: Buffer.from(testString).toString('base64'),
receipt: {
timestamp: '2023-03-01T19:59:12.905Z',
processingTimeMillis: 1052,
recipients: ['[email protected]'],
spamVerdict: { status: 'PASS' },
virusVerdict: { status: 'PASS' },
spfVerdict: { status: 'PASS' },
dkimVerdict: { status: 'PASS' },
dmarcVerdict: { status: 'PASS' },
action: {
type: 'SNS',
topicArn: 'fake-string-here',
encoding: 'BASE64',
},
},
},
legacy_user_fail: {
content: Buffer.from(invalidUserTestString).toString('base64'),
receipt: {
timestamp: '2023-03-01T19:59:12.905Z',
processingTimeMillis: 1052,
recipients: ['[email protected]'],
spamVerdict: { status: 'PASS' },
virusVerdict: { status: 'PASS' },
spfVerdict: { status: 'PASS' },
dkimVerdict: { status: 'PASS' },
dmarcVerdict: { status: 'PASS' },
action: {
type: 'SNS',
topicArn: 'fake-string-here',
encoding: 'BASE64',
},
},
},
legacy_user_success: {
content: Buffer.from(validLegacyUserTestString).toString('base64'),
receipt: {
timestamp: '2023-03-01T19:59:12.905Z',
processingTimeMillis: 1052,
recipients: ['[email protected]'],
spamVerdict: { status: 'PASS' },
virusVerdict: { status: 'PASS' },
spfVerdict: { status: 'PASS' },
dkimVerdict: { status: 'PASS' },
dmarcVerdict: { status: 'PASS' },
action: {
type: 'SNS',
topicArn: 'fake-string-here',
encoding: 'BASE64',
},
},
},
spam_pass_virus_fail: {
content: Buffer.from(emailSpamAndVirusScan).toString('base64'),
receipt: {
timestamp: '2023-03-01T19:59:12.905Z',
processingTimeMillis: 1052,
recipients: ['[email protected]'],
spamVerdict: { status: 'PASS' },
virusVerdict: { status: 'FAIL' },
spfVerdict: { status: 'PASS' },
dkimVerdict: { status: 'PASS' },
dmarcVerdict: { status: 'PASS' },
action: {
type: 'SNS',
topicArn: 'fake-string-here',
encoding: 'BASE64',
},
},
},
spam_fail_virus_pass: {
content: Buffer.from(emailSpamAndVirusScan).toString('base64'),
receipt: {
timestamp: '2023-03-01T19:59:12.905Z',
processingTimeMillis: 1052,
recipients: ['[email protected]'],
spamVerdict: { status: 'FAIL' },
virusVerdict: { status: 'PASS' },
spfVerdict: { status: 'PASS' },
dkimVerdict: { status: 'PASS' },
dmarcVerdict: { status: 'PASS' },
action: {
type: 'SNS',
topicArn: 'fake-string-here',
encoding: 'BASE64',
},
},
},
},
},
scheduled: {},
'tables-streams': {
circulars: {
INSERT: {
circularId: 40000,
createdOn: 1677530723000,
submitter: 'Example User at Example <[email protected]>',
email: '[email protected]',
subject: 'GRB 230000A: Global MASTER-Net observations',
body: 'This is a test',
},
},
synonyms: {
INSERT: {
eventId: 'GRB 230727A',
synonymId: 'fe00636d-ae9a-45fe-9941-9cbc6e84da04',
},
REMOVE: {
eventId: 'GRB 230727A',
synonymId: 'fe00636d-ae9a-45fe-9941-9cbc6e84da04',
},
MODIFY: {
eventId: 'GRB 230727A',
synonymId: 'fe00636d-ae9a-45fe-9941-9cbc6e84da04',
},
},
'circulars-kafka-distribution': {
INSERT: {
circularId: 40000,
createdOn: 1677530723000,
submitter: 'Example User at Example <[email protected]>',
email: '[email protected]',
subject: 'GRB 230000A: Global MASTER-Net observations',
body: 'This is a test',
},
},
},
}