Send header for leftover calls
This commit is contained in:
@@ -51,9 +51,9 @@ class UserBehavior(HttpUser):
|
|||||||
uniqueid = user['uuid']
|
uniqueid = user['uuid']
|
||||||
print('User {}'.format(uniqueid))
|
print('User {}'.format(uniqueid))
|
||||||
|
|
||||||
self.client.get('/api/catalogue/categories')
|
self.client.get('/api/catalogue/categories', headers={'x-forwarded-for': fake_ip})
|
||||||
# all products in catalogue
|
# all products in catalogue
|
||||||
products = self.client.get('/api/catalogue/products').json()
|
products = self.client.get('/api/catalogue/products', headers={'x-forwarded-for': fake_ip}).json()
|
||||||
for i in range(2):
|
for i in range(2):
|
||||||
item = None
|
item = None
|
||||||
while True:
|
while True:
|
||||||
|
Reference in New Issue
Block a user