diff --git a/locustfile.py b/locustfile.py new file mode 100644 index 0000000000000000000000000000000000000000..ff454ec2f3e6e0b3a491b9ae87972cb247c0aab1 --- /dev/null +++ b/locustfile.py @@ -0,0 +1,20 @@ +from locust import HttpUser, task, between +import json + +class ObsUser(HttpUser): + + host = "http://localhost:8082" + + @task + def test_task(self): + datajson = { + "withdrawsFromAccountNumber": "bank-1", + "depositsToAccountNumber": "account-1", + "withdrawAmount": 1000 + } + + request = json.dumps(datajson) + + response = self.client.post("/api/transaction-service/v1/transactions/transaction/create", data=request, headers={'Content-Type': 'application/json', 'Accept': 'application/json'}) + + print(response.json()) \ No newline at end of file diff --git a/transaction-service/src/main/resources/application.yml b/transaction-service/src/main/resources/application.yml index a606be9e781b5f59395c47e0fafd931ddb9eac06..72d9d90ff18ba0a966c199b02de903e80cd5dc33 100644 --- a/transaction-service/src/main/resources/application.yml +++ b/transaction-service/src/main/resources/application.yml @@ -31,7 +31,6 @@ spring: database-platform: org.hibernate.dialect.PostgreSQLDialect hibernate: ddl-auto: validate - show-sql: true flyway: locations: db.migration baseline-on-migrate: true