Skip to content

Commit

Permalink
Test: Pruebas de carga GitHub ; 41
Browse files Browse the repository at this point in the history
Se han hecho una prueba de carga de forma que pruebe la página de redirección de autenticación de GitHub. Se ha asegurado un funcionamiento correcto con mas de 8000 usuarios.
modificado:     locustfile.py
  • Loading branch information
jesgamlar committed Jan 8, 2022
1 parent 979f6ef commit a604566
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions loadtest/locustfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
HOST = "http://localhost:8000"
VOTING = 1

class DefGithubAuthenticationRedirection(TaskSet):

@task
def index(self):
self.client.get("/authentication/accounts/github/login/")

class DefVisualizer(TaskSet):

@task
Expand Down Expand Up @@ -73,3 +78,8 @@ class Voters(HttpUser):
host = HOST
tasks = [DefVoters]
wait_time= between(3,5)

class GithubAuthenticationRedirection(HttpUser):
host = HOST
tasks = [DefGithubAuthenticationRedirection]
wait_time= between(3,5)

0 comments on commit a604566

Please sign in to comment.