Skip to content
Snippets Groups Projects
Commit 5838679d authored by Ján Macháček's avatar Ján Macháček
Browse files

scenario - delete old at start

parent 66c6db01
No related branches found
No related tags found
No related merge requests found
......@@ -50,26 +50,6 @@ class Admin(HttpUser):
}
})
def on_start(self):
tenant_id = "tenant123"
client_id = "client123"
secret = "secret123"
scope = "api://123/.default"
body ="grant_type=client_credentials&client_id=" + client_id + "&client_secret=" + secret + "&scope=" + scope
tokenResponse = self.client.post(
f"https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/token",
body,
headers = { "ContentType": "application/x-www-form-urlencoded"}
)
response = tokenResponse.json()
responseToken = response['access_token']
self.headers = {'Authorization': 'Bearer ' + responseToken}
@task
def create_airplane_type(self):
self.client.post(":8080/api/airplaneTypes", json=
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment