Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit 3433be8

Browse files
author
Chris Wiechmann
committed
Test-Cases fixed
1 parent 7e03a81 commit 3433be8

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

apibuilder4elastic/test/trafficMonitorAPI/asAdmin/payload/test_payload.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ describe('Payload', function () {
7070
expect(response.headers["content-type"]).to.equal("application/vordel-xact-data; charset=utf-8");
7171
expect(body).to.be.an('String');
7272
expect(body).to.include(testPayload);
73-
//expect(decodedDody).to.include('X-CorrelationID: Id-5d7bf75fae00e64a0245fd25');
74-
//expect(decodedDody).to.include('Server: Gateway');
7573
});
7674
});
7775

@@ -91,8 +89,6 @@ describe('Payload', function () {
9189
expect(body).to.be.an('String');
9290
expect(body).to.be.an('String');
9391
expect(body).to.include(testPayload);
94-
//expect(decodedDody).to.include('X-CorrelationID: Id-5d7bf75fae00e64a0245fd25');
95-
//expect(decodedDody).to.include('Server: Gateway');
9692
});
9793
});
9894

@@ -110,9 +106,7 @@ describe('Payload', function () {
110106
expect(response.statusCode).to.equal(200);
111107
expect(response.headers["content-type"]).to.equal("application/vordel-xact-data; charset=utf-8");
112108
expect(body).to.be.an('String');
113-
expect(body).to.equal("This is a large payload, that should be limited.");
114-
//expect(decodedDody).to.include('X-CorrelationID: Id-5d7bf75fae00e64a0245fd25');
115-
//expect(decodedDody).to.include('Server: Gateway');
109+
expect(body).to.equal("HTTP/1.1 200 OK\r\nserver: API Builder/4.27.29\r\nrequest-id: e923342a-cf72-4c93-a774-78d1fa80c002\r\nx-xss-protection: 1; mode=block\r\nx-frame-options: DENY\r\nsurrogate-control: no-store\r\ncache-control: no-store, no-cache, must-revalidate, proxy-revalidate\r\npragma: no-cache\r\nexpires: 0\r\nx-content-type-options: nosniff\r\nstart-time: 1593791748423\r\ncontent-type: application/json; charset=utf-8\r\nresponse-time: 1\r\ncontent-md5: 0c682d056c69de8e90bbdf0a677891d8\r\ncontent-length: 281\r\netag: W/\"119-iMSR0WMPy7z6deRjls2eUuMCX5I\"\r\nVary: Accept-Encoding\r\nDate: Fri, 03 Jul 2020 15:55:48 GMT\r\nConnection: close\r\n\r\n\r\nThis is a large payload, that should be limited.");
116110
});
117111
});
118112

@@ -132,8 +126,6 @@ describe('Payload', function () {
132126
expect(response.headers["content-type"]).to.equal("application/vordel-xact-data; charset=utf-8");
133127
expect(body).to.be.an('String');
134128
expect(body).to.include(testPayload);
135-
//expect(decodedDody).to.include('X-CorrelationID: Id-5d7bf75fae00e64a0245fd25');
136-
//expect(decodedDody).to.include('Server: Gateway');
137129
});
138130
});
139131
});

apibuilder4elastic/test/trafficMonitorAPI/restricted/http/test_payload_restricted.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ describe('Payload restricted', function () {
8080
json: true
8181
}).then(({ response, body }) => {
8282
expect(response.statusCode).to.equal(200);
83-
expect(body).to.be.equal('RECEIVED-PAYLOAD-LEG-1');
83+
expect(body).to.be.equal('HTTP/1.1 200 OK\r\nserver: API Builder/4.27.29\r\nrequest-id: e923342a-cf72-4c93-a774-78d1fa80c002\r\nx-xss-protection: 1; mode=block\r\nx-frame-options: DENY\r\nsurrogate-control: no-store\r\ncache-control: no-store, no-cache, must-revalidate, proxy-revalidate\r\npragma: no-cache\r\nexpires: 0\r\nx-content-type-options: nosniff\r\nstart-time: 1593791748423\r\ncontent-type: application/json; charset=utf-8\r\nresponse-time: 1\r\ncontent-md5: 0c682d056c69de8e90bbdf0a677891d8\r\ncontent-length: 281\r\netag: W/"119-iMSR0WMPy7z6deRjls2eUuMCX5I"\r\nVary: Accept-Encoding\r\nDate: Fri, 03 Jul 2020 15:55:48 GMT\r\nConnection: close\r\n\r\n\r\nRECEIVED-PAYLOAD-LEG-1');
8484
nock.cleanAll();
8585
});
8686
});

0 commit comments

Comments
 (0)