mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-07 03:25:37 +00:00
* Fix `checkFilterByMethod` in acceptance tests * #run_acceptance_tests * Add `numberOfRecords` parameter to test specs #run_acceptance_tests * Fix the values #run_acceptance_tests * Fix the values #run_acceptance_tests * Fix #run_acceptance_tests * #run_acceptance_tests * Reduce value duplication #run_acceptance_tests Co-authored-by: gadotroee <55343099+gadotroee@users.noreply.github.com> Co-authored-by: Roee Gadot <roee.gadot@up9.com>
69 lines
2.0 KiB
JavaScript
69 lines
2.0 KiB
JavaScript
import {checkFilterByMethod, valueTabs,} from "../testHelpers/TrafficHelper";
|
|
|
|
it('opening mizu', function () {
|
|
cy.visit(Cypress.env('testUrl'));
|
|
});
|
|
|
|
const rabbitProtocolDetails = {name: 'AMQP', text: 'Advanced Message Queuing Protocol 0-9-1'};
|
|
const numberOfRecords = 5;
|
|
|
|
checkFilterByMethod({
|
|
protocol: rabbitProtocolDetails,
|
|
method: 'exchange declare',
|
|
methodQuery: 'request.method == "exchange declare"',
|
|
summary: 'exchange',
|
|
summaryQuery: 'request.exchange == "exchange"',
|
|
numberOfRecords: numberOfRecords,
|
|
value: null
|
|
});
|
|
|
|
checkFilterByMethod({
|
|
protocol: rabbitProtocolDetails,
|
|
method: 'queue declare',
|
|
methodQuery: 'request.method == "queue declare"',
|
|
summary: 'queue',
|
|
summaryQuery: 'request.queue == "queue"',
|
|
numberOfRecords: numberOfRecords,
|
|
value: null
|
|
});
|
|
|
|
checkFilterByMethod({
|
|
protocol: rabbitProtocolDetails,
|
|
method: 'queue bind',
|
|
methodQuery: 'request.method == "queue bind"',
|
|
summary: 'queue',
|
|
summaryQuery: 'request.queue == "queue"',
|
|
numberOfRecords: numberOfRecords,
|
|
value: null
|
|
});
|
|
|
|
checkFilterByMethod({
|
|
protocol: rabbitProtocolDetails,
|
|
method: 'basic publish',
|
|
methodQuery: 'request.method == "basic publish"',
|
|
summary: 'exchange',
|
|
summaryQuery: 'request.exchange == "exchange"',
|
|
numberOfRecords: numberOfRecords,
|
|
value: {tab: valueTabs.request, regex: /^message$/mg}
|
|
});
|
|
|
|
checkFilterByMethod({
|
|
protocol: rabbitProtocolDetails,
|
|
method: 'basic consume',
|
|
methodQuery: 'request.method == "basic consume"',
|
|
summary: 'queue',
|
|
summaryQuery: 'request.queue == "queue"',
|
|
numberOfRecords: numberOfRecords,
|
|
value: null
|
|
});
|
|
|
|
checkFilterByMethod({
|
|
protocol: rabbitProtocolDetails,
|
|
method: 'basic deliver',
|
|
methodQuery: 'request.method == "basic deliver"',
|
|
summary: 'exchange',
|
|
summaryQuery: 'request.queue == "exchange"',
|
|
numberOfRecords: numberOfRecords,
|
|
value: {tab: valueTabs.request, regex: /^message$/mg}
|
|
});
|