Skip to content

Commit

Permalink
fixing API tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes committed Sep 30, 2020
1 parent 54bb62a commit c261094
Show file tree
Hide file tree
Showing 19 changed files with 19,603 additions and 3,468 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ export default function ApiTest({ getService }: FtrProviderContext) {
expect(response.body.serviceCount).to.be.greaterThan(0);
expect(response.body.transactionCoordinates.length).to.be.greaterThan(0);

expectSnapshot(response.body.serviceCount).toMatchInline(`7`);
expectSnapshot(response.body.serviceCount).toMatchInline(`8`);

expectSnapshot(response.body.transactionCoordinates.length).toMatchInline(`31`);
expectSnapshot(response.body.transactionCoordinates.length).toMatchInline(`30`);

expectSnapshot(
response.body.transactionCoordinates
Expand All @@ -59,24 +59,24 @@ export default function ApiTest({ getService }: FtrProviderContext) {
).toMatchInline(`
Array [
Object {
"x": "2020-09-15T08:53:00.000Z",
"y": 1,
"x": "2020-09-29T14:30:00.000Z",
"y": 2.26666666666667,
},
Object {
"x": "2020-09-15T08:54:00.000Z",
"y": 1.86666666666667,
"x": "2020-09-29T14:31:00.000Z",
"y": 1.03333333333333,
},
Object {
"x": "2020-09-15T08:55:00.000Z",
"y": 0.966666666666667,
"x": "2020-09-29T14:32:00.000Z",
"y": 1.9,
},
Object {
"x": "2020-09-15T08:56:00.000Z",
"y": 1.93333333333333,
"x": "2020-09-29T14:33:00.000Z",
"y": 0.8,
},
Object {
"x": "2020-09-15T08:57:00.000Z",
"y": 1.1,
"x": "2020-09-29T14:34:00.000Z",
"y": 1.9,
},
]
`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@ export default function ApiTest({ getService }: FtrProviderContext) {
Array [
"opbeans-python",
"opbeans-node",
"opbeans-go",
"opbeans-ruby",
"opbeans-go",
"opbeans-dotnet",
"opbeans-java",
"opbeans-rum",
"elastic-co-frontend",
]
`);
});
Expand All @@ -91,76 +92,84 @@ export default function ApiTest({ getService }: FtrProviderContext) {
Array [
Object {
"avgResponseTime": Object {
"value": 213583.765249538,
"value": 219090.56261343,
},
"transactionErrorRate": Object {
"value": 0,
"value": 0.317604355716878,
},
"transactionsPerMinute": Object {
"value": 18.0333333333333,
"value": 18.3666666666667,
},
},
Object {
"avgResponseTime": Object {
"value": 600255.707964602,
"value": 600888.274678112,
},
"transactionErrorRate": Object {
"value": 0,
},
"transactionsPerMinute": Object {
"value": 7.53333333333333,
"value": 7.76666666666667,
},
},
Object {
"avgResponseTime": Object {
"value": 1818501.06081081,
"value": 120020.290123457,
},
"transactionErrorRate": Object {
"value": 0.0202702702702703,
"value": 0.0185185185185185,
},
"transactionsPerMinute": Object {
"value": 4.93333333333333,
"value": 5.4,
},
},
Object {
"avgResponseTime": Object {
"value": 290900.571428571,
"value": 489731.277777778,
},
"transactionErrorRate": Object {
"value": 0.0136054421768707,
"value": 0.0238095238095238,
},
"transactionsPerMinute": Object {
"value": 4.9,
"value": 4.2,
},
},
Object {
"avgResponseTime": Object {
"value": 1123903.7027027,
"value": 1250898.95081967,
},
"transactionErrorRate": Object {
"value": 0.00900900900900901,
"value": 0.0163934426229508,
},
"transactionsPerMinute": Object {
"value": 3.7,
"value": 4.06666666666667,
},
},
Object {
"avgResponseTime": Object {
"value": 80364.6296296296,
"value": 311287.565217391,
},
"transactionErrorRate": Object {
"value": 0.185185185185185,
"value": 0.152173913043478,
},
"transactionsPerMinute": Object {
"value": 3.6,
"value": 3.06666666666667,
},
},
Object {
"avgResponseTime": Object {
"value": 1365102.94117647,
"value": 1827564.51612903,
},
"transactionsPerMinute": Object {
"value": 2.26666666666667,
"value": 2.06666666666667,
},
},
Object {
"avgResponseTime": Object {
"value": 7480000,
},
"transactionsPerMinute": Object {
"value": 0.0333333333333333,
},
},
]
Expand All @@ -178,10 +187,10 @@ export default function ApiTest({ getService }: FtrProviderContext) {
"testing",
],
Array [
"testing",
"production",
],
Array [
"production",
"testing",
],
Array [
"production",
Expand All @@ -192,6 +201,7 @@ export default function ApiTest({ getService }: FtrProviderContext) {
Array [
"testing",
],
Array [],
]
`);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export default function agentConfigurationTests({ getService }: FtrProviderConte
expectSnapshot(body).toMatchInline(`
Array [
"ALL_OPTION_VALUE",
"elastic-co-frontend",
"opbeans-dotnet",
"opbeans-go",
"opbeans-java",
Expand Down
Loading

0 comments on commit c261094

Please sign in to comment.