From 725199cf8af93df9e09f6ec722f1edb21e7aa88d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A1n=20Mach=C3=A1=C4=8Dek?= <xmachac5@fi.muni.cz>
Date: Sun, 7 May 2023 19:53:02 +0200
Subject: [PATCH] scenario - delete old at start

---
 locust-scenarios/locustfile.py | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/locust-scenarios/locustfile.py b/locust-scenarios/locustfile.py
index 127a93a..c099743 100644
--- a/locust-scenarios/locustfile.py
+++ b/locust-scenarios/locustfile.py
@@ -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=
-- 
GitLab