Skip to content

Commit f0e773a

Browse files
author
kkuzmin
authored
Update al-collector-js deps (#39)
1 parent 5b55235 commit f0e773a

File tree

2 files changed

+25
-11
lines changed

2 files changed

+25
-11
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alertlogic/al-aws-collector-js",
3-
"version": "2.0.2",
3+
"version": "2.0.3",
44
"license": "MIT",
55
"description": "Alert Logic AWS Collector Common Library",
66
"repository": {
@@ -33,7 +33,7 @@
3333
"sinon": "^7.5.0"
3434
},
3535
"dependencies": {
36-
"@alertlogic/al-collector-js": "1.4.0",
36+
"@alertlogic/al-collector-js": "1.4.1",
3737
"cfn-response": "1.0.1",
3838
"async": "3.0.1",
3939
"moment": "2.24.0",

test/collector_mock.js

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ const REG_PARAMS = {
7272
};
7373
const REG_AZCOLLECT_QUERY = {
7474
body: {
75-
awsAccountId: "123456789012",
76-
collectorId: "collector-id",
77-
custom_fields: { data_type: "vpcflow", something_else: "testtest" },
78-
dataType: "secmsgs",
79-
functionName: "test-VpcFlowCollectLambdaFunction",
80-
region: "us-east-1",
75+
awsAccountId: '123456789012',
76+
collectorId: 'collector-id',
77+
custom_fields: { data_type: 'vpcflow', something_else: 'testtest' },
78+
dataType: 'secmsgs',
79+
functionName: 'test-VpcFlowCollectLambdaFunction',
80+
region: 'us-east-1',
8181
stackName: STACK_NAME,
82-
version: "1.0.0"
82+
version: '1.0.0'
8383
}
8484
};
8585

@@ -110,10 +110,14 @@ const CHECKIN_URL = '/aws/cwe/checkin/123456789012/us-east-1/' + encodeURICompon
110110

111111
const CHECKIN_AZCOLLECT_QUERY = {
112112
body: {
113+
awsAccountId: '123456789012',
114+
collectorId: 'collector-id',
115+
dataType: 'secmsgs',
116+
details: [],
117+
functionName: 'test-VpcFlowCollectLambdaFunction',
118+
region: 'us-east-1',
113119
version: '1.0.0',
114120
status: 'ok',
115-
error_code: undefined,
116-
details: [],
117121
statistics:[
118122
{'Label':'Invocations','Datapoints':[{'Timestamp':'2017-11-21T16:40:00Z','Sum':1,'Unit':'Count'}]},
119123
{'Label':'Errors','Datapoints':[{'Timestamp':'2017-11-21T16:40:00Z','Sum':1,'Unit':'Count'}]}
@@ -123,6 +127,11 @@ const CHECKIN_AZCOLLECT_QUERY = {
123127

124128
const CHECKIN_AZCOLLECT_QUERY_CUSTOM_HEALTHCHECK_ERROR = {
125129
body: {
130+
awsAccountId: '123456789012',
131+
collectorId: 'collector-id',
132+
dataType: 'secmsgs',
133+
functionName: 'test-VpcFlowCollectLambdaFunction',
134+
region: 'us-east-1',
126135
version: '1.0.0',
127136
status: 'error',
128137
error_code: 'MYCODE',
@@ -161,6 +170,11 @@ const CF_DESCRIBE_STACKS_RESPONSE = {
161170

162171
const CHECKIN_ERROR_AZCOLLECT_QUERY = {
163172
body: {
173+
awsAccountId: '123456789012',
174+
collectorId: 'collector-id',
175+
dataType: 'secmsgs',
176+
functionName: 'test-VpcFlowCollectLambdaFunction',
177+
region: 'us-east-1',
164178
version: '1.0.0',
165179
status: 'error',
166180
error_code: 'ALAWS00002',

0 commit comments

Comments
 (0)