Skip to content

Commit 29622f7

Browse files
committed
clean
1 parent 474e907 commit 29622f7

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

tests/performance2/common/__init__.py

Whitespace-only changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from pydantic import Field
2+
from pydantic_settings import BaseSettings, SettingsConfigDict
3+
4+
5+
class MonitoringBasicAuth(BaseSettings):
6+
model_config = SettingsConfigDict(extra="ignore")
7+
SC_USER_NAME: str = Field(default=..., examples=["<your username>"])
8+
SC_PASSWORD: str = Field(default=..., examples=["<your password>"])

tests/performance2/locustfiles/__init__.py

Whitespace-only changes.

tests/performance2/locustfiles/deployment_max_rps_endpoint.py renamed to tests/performance2/locustfiles/deployment_max_rps_single_endpoint.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
import logging
66

77
import locust_plugins
8+
from common.deploy_auth import MonitoringBasicAuth
89
from locust import task
910
from locust.contrib.fasthttp import FastHttpUser
10-
from pydantic import Field
11-
from pydantic_settings import BaseSettings, SettingsConfigDict
1211

1312
logging.basicConfig(level=logging.INFO)
1413

@@ -19,12 +18,6 @@
1918
assert locust_plugins # nosec
2019

2120

22-
class MonitoringBasicAuth(BaseSettings):
23-
model_config = SettingsConfigDict(extra="ignore")
24-
SC_USER_NAME: str = Field(default=..., examples=["<your username>"])
25-
SC_PASSWORD: str = Field(default=..., examples=["<your password>"])
26-
27-
2821
class WebApiUser(FastHttpUser):
2922
def __init__(self, *args, **kwargs):
3023
super().__init__(*args, **kwargs)

0 commit comments

Comments
 (0)