Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@Krunal2017 | Challenge2016 Solution #175

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Krunal2017
Copy link

Instructions to run the service and tests are present in the README.
Stress Test logs:

Distributor Name: distributor-6
Include List: ['16:BG', 'BI', 'AF', '03:NO', '04:MT', 'TV', 'KAUBB:04:MY']
Exclude List: ['BIRKA:04:MT', 'ZLENI:16:BG']
POST Request: distributor-6, Include=['16:BG', 'BI', 'AF', '03:NO', '04:MT', 'TV', 'KAUBB:04:MY'], Exclude=['BIRKA:04:MT', 'ZLENI:16:BG']
GET Request: distributor-6, Location=TV, Response:YES
GET Request: distributor-6, Location=BIRKA:04:MT, Response:NO
Distributor Name: distributor-7
Include List: ['08:LI', 'TW', 'SAHNI:RD:SY', 'AR', 'OMRSK:SRP:BA', 'DALAB:MM:GN', 'SS:ES', 'CA', 'MX', 'LY', 'SFRAI:D:AR', 'GM', 'JARGN:069:MN', 'M:KM', 'PDCIA:02:SM', 'TM', 'BA', 'XYLMB:03:CY', '16:PT', 'JURAS:TA:LT', 'KOSAN:06:KP', '09:ZM', 'EQ:CD', 'BOP:NZ', 'MY', 'IE']
Exclude List: ['ZRODN:M:KM']
POST Request: distributor-7, Include=['08:LI', 'TW', 'SAHNI:RD:SY', 'AR', 'OMRSK:SRP:BA', 'DALAB:MM:GN', 'SS:ES', 'CA', 'MX', 'LY', 'SFRAI:D:AR', 'GM', 'JARGN:069:MN', 'M:KM', 'PDCIA:02:SM', 'TM', 'BA', 'XYLMB:03:CY', '16:PT', 'JURAS:TA:LT', 'KOSAN:06:KP', '09:ZM', 'EQ:CD', 'BOP:NZ', 'MY', 'IE'], Exclude=['ZRODN:M:KM']
GET Request: distributor-7, Location=DALAB:MM:GN, Response:YES
GET Request: distributor-7, Location=ZRODN:M:KM, Response:NO

Service logs:

2024/11/09 00:28:29 Processing POST request for distributor 'distributor-6'
2024/11/09 00:28:29 Distributor 'distributor-6' created successfully
2024/11/09 00:28:29 Response status: 201, response body: {"Name":"distributor-6","Include":["16:BG","BI","AF","03:NO","04:MT","TV","KAUBB:04:MY"],"Exclude":["BIRKA:04:MT","ZLENI:16:BG"],"Inherits":""}
2024/11/09 00:28:29 Received GET request with distributor='distributor-6', location='TV'
2024/11/09 00:28:29 Handling GET request for distributor 'distributor-6' at location 'TV'
2024/11/09 00:28:29 Checking distributor 'distributor-6' for location 'TV'
2024/11/09 00:28:29 Distributor 'distributor-6' authorized for location 'TV'
2024/11/09 00:28:29 Response status: 200, response body: YES
2024/11/09 00:28:29 Received GET request with distributor='distributor-6', location='BIRKA:04:MT'
2024/11/09 00:28:29 Handling GET request for distributor 'distributor-6' at location 'BIRKA:04:MT'
2024/11/09 00:28:29 Checking distributor 'distributor-6' for location 'BIRKA:04:MT'
2024/11/09 00:28:29 Distributor 'distributor-6' not authorized for location 'BIRKA:04:MT'
2024/11/09 00:28:29 Response status: 403, response body: NO
2024/11/09 00:28:29 Processing POST request for distributor 'distributor-7'
2024/11/09 00:28:29 Distributor 'distributor-7' created successfully
2024/11/09 00:28:29 Response status: 201, response body: {"Name":"distributor-7","Include":["08:LI","TW","SAHNI:RD:SY","AR","OMRSK:SRP:BA","DALAB:MM:GN","SS:ES","CA","MX","LY","SFRAI:D:AR","GM","JARGN:069:MN","M:KM","PDCIA:02:SM","TM","BA","XYLMB:03:CY","16:PT","JURAS:TA:LT","KOSAN:06:KP","09:ZM","EQ:CD","BOP:NZ","MY","IE"],"Exclude":["ZRODN:M:KM"],"Inherits":""}
2024/11/09 00:28:29 Received GET request with distributor='distributor-7', location='DALAB:MM:GN'
2024/11/09 00:28:29 Handling GET request for distributor 'distributor-7' at location 'DALAB:MM:GN'
2024/11/09 00:28:29 Checking distributor 'distributor-7' for location 'DALAB:MM:GN'
2024/11/09 00:28:29 Distributor 'distributor-7' authorized for location 'DALAB:MM:GN'
2024/11/09 00:28:29 Response status: 200, response body: YES
2024/11/09 00:28:29 Received GET request with distributor='distributor-7', location='ZRODN:M:KM'
2024/11/09 00:28:29 Handling GET request for distributor 'distributor-7' at location 'ZRODN:M:KM'
2024/11/09 00:28:29 Checking distributor 'distributor-7' for location 'ZRODN:M:KM'
2024/11/09 00:28:29 Distributor 'distributor-7' not authorized for location 'ZRODN:M:KM'
2024/11/09 00:28:29 Response status: 403, response body: NO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant