microservices-demo / load-test

A load-test script & container for Sock Shop
Apache License 2.0
50 stars 137 forks source link

Fixing the exceptions #3

Closed errordeveloper closed 7 years ago

errordeveloper commented 7 years ago

I've been seeing exceptions all the time, and this is an attempt to fix those.

First of all, it turned out that using local Docker results in slightly broken DNS, and some of requests endup hitting my ISPs redirects (the good old advancedsearch2.virginmedia.com).

Testing against ECS doesn't result in as many exceptions, as DNS is not an issue.

So here is one things that sure is a bug –

we call:

customer = self.client.post("/register", json={"username": self.username, "password": self.password})

And treat the response as JSON, and look for attribute id, and it's not there. All we get is "Cookie is set" in plain text. The question is whether I should be looking to fix users service or the load test code?

pidster commented 7 years ago

Fix the users service.