mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-12 13:53:30 +00:00
* Always derive the summary and method fields from the entry in the database on read * Update the expected JSONs in the protocol unit tests * Add test cases for `Summarize` method * Remove unused `GetEntry` method, `DataUnmarshaler` struct and `UnmarshalData` method * Temporarily enable the acceptance tests * Temporarily disable Slack notification on failure * Update the Cypress tests * Fix an issue in Redis * Fix a typo and the Cypress tests * Revert "Temporarily disable Slack notification on failure" This reverts commitcad1901ea4
. * Revert "Temporarily enable the acceptance tests" This reverts commitbad7706c9b
.
53 lines
1.4 KiB
JavaScript
53 lines
1.4 KiB
JavaScript
import {checkFilterByMethod, valueTabs,} from "../testHelpers/TrafficHelper";
|
|
|
|
it('opening mizu', function () {
|
|
cy.visit(Cypress.env('testUrl'));
|
|
});
|
|
|
|
const redisProtocolDetails = {name: 'redis', text: 'Redis Serialization Protocol'};
|
|
|
|
checkFilterByMethod({
|
|
protocol: redisProtocolDetails,
|
|
method: 'PING',
|
|
methodQuery: 'request.command == "PING"',
|
|
summary: null,
|
|
summaryQuery: '',
|
|
value: null
|
|
})
|
|
|
|
checkFilterByMethod({
|
|
protocol: redisProtocolDetails,
|
|
method: 'SET',
|
|
methodQuery: 'request.command == "SET"',
|
|
summary: 'key',
|
|
summaryQuery: 'request.key == "key"',
|
|
value: {tab: valueTabs.request, regex: /^\[value, keepttl]$/mg}
|
|
})
|
|
|
|
checkFilterByMethod({
|
|
protocol: redisProtocolDetails,
|
|
method: 'EXISTS',
|
|
methodQuery: 'request.command == "EXISTS"',
|
|
summary: 'key',
|
|
summaryQuery: 'request.key == "key"',
|
|
value: {tab: valueTabs.response, regex: /^1$/mg}
|
|
})
|
|
|
|
checkFilterByMethod({
|
|
protocol: redisProtocolDetails,
|
|
method: 'GET',
|
|
methodQuery: 'request.command == "GET"',
|
|
summary: 'key',
|
|
summaryQuery: 'request.key == "key"',
|
|
value: {tab: valueTabs.response, regex: /^value$/mg}
|
|
})
|
|
|
|
checkFilterByMethod({
|
|
protocol: redisProtocolDetails,
|
|
method: 'DEL',
|
|
methodQuery: 'request.command == "DEL"',
|
|
summary: 'key',
|
|
summaryQuery: 'request.key == "key"',
|
|
value: {tab: valueTabs.response, regex: /^1$|^0$/mg}
|
|
})
|