From 6e53e6035768f9e1de574fcc95bacc9809ee0a4c Mon Sep 17 00:00:00 2001 From: Liam Toozer Date: Mon, 2 Sep 2024 14:38:54 +0100 Subject: [PATCH] Remove redundant benchmark tests --- README.md | 6 +- requests/feedback.json | 135 ------------------ requests/individual_response.json | 220 ------------------------------ 3 files changed, 4 insertions(+), 357 deletions(-) delete mode 100644 requests/feedback.json delete mode 100644 requests/individual_response.json diff --git a/README.md b/README.md index 63a2acb2..9968d26e 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,9 @@ Open the network inspector in Chrome or Firefox and ensure 'preserve log' is tic **Important:** The captured test should not include the `/session` endpoint. -After the test is complete, right-click on one of the requests in the network inspector and save the log as a HAR file. To generate a requests file from the HAR file run: +After the test is complete, right-click on one of the requests in the network inspector and save the log as a HAR file. + +To generate a requests file from the HAR file run: ```bash poetry run python generate_requests.py @@ -167,7 +169,7 @@ helm tiller run \ - helm upgrade --install \ - runner-benchmark \ - k8s/helm \ -- --set requestsJson=requests/census_individual_gb_eng.json \ +- --set requestsJson=requests/test_checkbox.json \ - --set locustOptions="--clients 1000 --spawn-rate 50 -L WARNING" \ - --set host=https://your-runner.gcp.dev.eq.ons.digital \ - --set container.image=europe-west2-docker.pkg.dev/ons-eq-ci/docker-images/eq-benchmark-deploy-image:latest diff --git a/requests/feedback.json b/requests/feedback.json deleted file mode 100644 index eede879f..00000000 --- a/requests/feedback.json +++ /dev/null @@ -1,135 +0,0 @@ -{ - "requests": [ - { - "method": "GET", - "url": "/questionnaire/feedback/" - }, - { - "method": "POST", - "url": "/questionnaire/feedback/", - "data": { - "schema-feedback-answer": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/submit/" - }, - { - "method": "POST", - "url": "/questionnaire/submit/", - "data": {} - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - }, - { - "method": "GET", - "url": "/submitted/feedback/send" - }, - { - "method": "POST", - "url": "/submitted/feedback/send", - "data": { - "feedback-type": "The census questions", - "feedback-type-question-category": "General", - "feedback-text": "Test" - } - }, - { - "method": "GET", - "url": "/submitted/feedback/sent" - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - }, - { - "method": "GET", - "url": "/submitted/feedback/send" - }, - { - "method": "POST", - "url": "/submitted/feedback/send", - "data": { - "feedback-type": "The census questions", - "feedback-type-question-category": "General", - "feedback-text": "Test" - } - }, - { - "method": "GET", - "url": "/submitted/feedback/sent" - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - }, - { - "method": "GET", - "url": "/submitted/feedback/send" - }, - { - "method": "POST", - "url": "/submitted/feedback/send", - "data": { - "feedback-type": "The census questions", - "feedback-type-question-category": "General", - "feedback-text": "Test" - } - }, - { - "method": "GET", - "url": "/submitted/feedback/sent" - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - }, - { - "method": "GET", - "url": "/submitted/feedback/send" - }, - { - "method": "POST", - "url": "/submitted/feedback/send", - "data": { - "feedback-type": "The census questions", - "feedback-type-question-category": "General", - "feedback-text": "Test" - } - }, - { - "method": "GET", - "url": "/submitted/feedback/sent" - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - }, - { - "method": "GET", - "url": "/submitted/feedback/send" - }, - { - "method": "POST", - "url": "/submitted/feedback/send", - "data": { - "feedback-type": "The census questions", - "feedback-type-question-category": "General", - "feedback-text": "Test" - } - }, - { - "method": "GET", - "url": "/submitted/feedback/sent" - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - } - ], - "schema_name": "test_feedback", - "schema_url": "https://storage.googleapis.com/eq-questionnaire-schemas/test_feedback.json" -} diff --git a/requests/individual_response.json b/requests/individual_response.json deleted file mode 100644 index 0ec42a32..00000000 --- a/requests/individual_response.json +++ /dev/null @@ -1,220 +0,0 @@ -{ - "requests": [ - { - "method": "GET", - "url": "/questionnaire/primary-person-list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/primary-person-list-collector/", - "data": { - "you-live-here": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/list-collector/", - "data": { - "anyone-else": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/household/add-person/" - }, - { - "method": "POST", - "url": "/questionnaire/household/add-person/", - "data": { - "first-name": "John", - "middle-names": "", - "last-name": "Doe" - } - }, - { - "method": "GET", - "url": "/questionnaire/list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/list-collector/", - "data": { - "anyone-else": "Yes" - } - }, - { - "method": "GET", - "url": "/questionnaire/household/add-person/" - }, - { - "method": "POST", - "url": "/questionnaire/household/add-person/", - "data": { - "first-name": "Jane", - "middle-names": "", - "last-name": "Doe" - } - }, - { - "method": "GET", - "url": "/questionnaire/list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/list-collector/", - "data": { - "anyone-else": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/visitor-list-collector/" - }, - { - "method": "POST", - "url": "/questionnaire/visitor-list-collector/", - "data": { - "any-visitors": "No" - } - }, - { - "method": "GET", - "url": "/questionnaire/sections/section/" - }, - { - "method": "POST", - "url": "/questionnaire/sections/section/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/" - }, - { - "method": "POST", - "url": "/questionnaire/", - "data": {}, - "redirect_route": "/questionnaire/household/{person_1_list_id}/individual-interstitial/" - }, - { - "method": "GET", - "url": "/questionnaire/household/{person_1_list_id}/individual-interstitial/" - }, - { - "method": "GET", - "url": "/individual-response/?list_item_id={person_1_list_id}" - }, - { - "method": "GET", - "url": "/individual-response/{person_1_list_id}/how" - }, - { - "method": "POST", - "url": "/individual-response/{person_1_list_id}/how", - "data": { - "individual-response-how-answer": "Text message" - } - }, - { - "method": "GET", - "url": "/individual-response/{person_1_list_id}/text/enter-number" - }, - { - "method": "POST", - "url": "/individual-response/{person_1_list_id}/text/enter-number", - "data": { - "individual-response-enter-number-answer": "07700900345" - }, - "redirect_route": "/individual-response/{person_1_list_id}/text/confirm-number?mobile_number={mobile_number}" - - }, - { - "method": "GET", - "url": "/individual-response/{person_1_list_id}/text/confirm-number?mobile_number={mobile_number}" - }, - { - "method": "POST", - "url": "/individual-response/{person_1_list_id}/text/confirm-number?mobile_number={mobile_number}", - "data": { - "individual-response-text-confirm-answer": "Yes, send the text" - } - }, - { - "method": "GET", - "url": "/individual-response/text/confirmation?mobile_number={mobile_number}" - }, - { - "method": "POST", - "url": "/individual-response/text/confirmation?mobile_number={mobile_number}", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/" - }, - { - "method": "POST", - "url": "/questionnaire/", - "redirect_route": "/questionnaire/household/{person_2_list_id}/individual-interstitial/", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/household/{person_2_list_id}/individual-interstitial/" - }, - { - "method": "GET", - "url": "/individual-response/?list_item_id={person_2_list_id}" - }, - { - "method": "GET", - "url": "/individual-response/{person_2_list_id}/how" - }, - { - "method": "POST", - "url": "/individual-response/{person_2_list_id}/how", - "data": { - "individual-response-how-answer": "Post" - } - }, - { - "method": "GET", - "url": "/individual-response/{person_2_list_id}/post/confirm-address" - }, - { - "method": "POST", - "url": "/individual-response/{person_2_list_id}/post/confirm-address", - "data": { - "individual-response-post-confirm-answer": "Yes, send the access code by post" - } - }, - { - "method": "GET", - "url": "/individual-response/post/confirmation" - }, - { - "method": "POST", - "url": "/individual-response/post/confirmation", - "data": {} - }, - { - "method": "GET", - "url": "/questionnaire/" - }, - { - "method": "POST", - "url": "/questionnaire/", - "data": {} - }, - { - "method": "GET", - "url": "/submitted/thank-you/" - } - ], - "schema_name": "test_individual_response", - "schema_url": "https://storage.googleapis.com/eq-questionnaire-schemas/test_individual_response.json" -} \ No newline at end of file