Skip to content

Commit b566894

Browse files
make some changes based on al-collector-js changes
1 parent e066f01 commit b566894

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

master.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -367,12 +367,7 @@ class AlAzureMaster {
367367
if (errStatus) {
368368
if(typeof errStatus === 'string'){
369369
master._azureContext.log.warn('Health check failed with: ', errStatus);
370-
status = {
371-
status: 'error',
372-
details: [ errStatus ],
373-
// Set error code to code for custom health check error
374-
error_code: 'ALAZU000004'
375-
};
370+
status = master.errorStatusFmt('ALAZU000004', errStatus);
376371
} else {
377372
master._azureContext.log.warn('Health check failed with', errStatus.details);
378373
status = errStatus;

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-azure-collector-js",
3-
"version": "1.2.3",
3+
"version": "1.2.0",
44
"description": "Alert Logic Azure Collector Common Library",
55
"license": "MIT",
66
"repository": {
@@ -28,7 +28,7 @@
2828
"sinon": "^7.2.3"
2929
},
3030
"dependencies": {
31-
"@alertlogic/al-collector-js": "^1.1.2",
31+
"@alertlogic/al-collector-js": "^1.3.0",
3232
"async": "^2.6.1",
3333
"azure": "^2.3.1-preview",
3434
"parse-key-value": "^1.0.0",

test/collector_test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ describe('Collector tests', function() {
6464

6565
fakePost = sinon.stub(alcollector.AlServiceC.prototype, 'post').callsFake(
6666
function fakeFn(path, extraOptions) {
67-
assert.equal(extraOptions.headers['Content-Type'], 'alertlogic.com/pass-through');
68-
assert.equal(path, '/data/aicspmsgs');
67+
assert.equal(extraOptions.headers['Content-Type'], 'alertlogic.com/lm3-protobuf');
68+
assert.equal(path, '/data/logmsgs');
6969
assert.equal(expectedBody, extraOptions.body.toString('base64'));
7070

7171
return new Promise(function(resolve, reject){
@@ -106,8 +106,8 @@ describe('Collector tests', function() {
106106

107107
fakePost = sinon.stub(alcollector.AlServiceC.prototype, 'post').callsFake(
108108
function fakeFn(path, extraOptions) {
109-
assert.equal(extraOptions.headers['Content-Type'], 'alertlogic.com/pass-through');
110-
assert.equal(path, '/data/aicspmsgs');
109+
assert.equal(extraOptions.headers['Content-Type'], 'alertlogic.com/lm3-protobuf');
110+
assert.equal(path, '/data/logmsgs');
111111
assert.equal(expectedBody, extraOptions.body.toString('base64'));
112112

113113
return new Promise(function(resolve, reject){

0 commit comments

Comments
 (0)