Skip to content

Commit

Permalink
dev: Disable GitHub auth and set default deployment to development
Browse files Browse the repository at this point in the history
Disabled GitHub authentication for the development setup and set the default deployment mode as development if not explicitly specified. This change affects the following files:
- : Modified to skip the  check during development.
- : Updated logic to bypass auth checks when in development mode.

Signed-off-by: AyishikD <[email protected]>
  • Loading branch information
AyishikD committed Sep 16, 2024
1 parent 60f2368 commit ef41ec8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/teuthology_api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

load_dotenv()

DEPLOYMENT = os.getenv("DEPLOYMENT", "development")
DEPLOYMENT = os.getenv("DEPLOYMENT")
SESSION_SECRET_KEY = os.getenv("SESSION_SECRET_KEY")
PULPITO_URL = os.getenv("PULPITO_URL")
PADDLES_URL = os.getenv("PADDLES_URL")
Expand Down
3 changes: 1 addition & 2 deletions src/teuthology_api/routes/suite.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import logging
import os
from fastapi import APIRouter, HTTPException, Depends, Request

from teuthology_api.services.suite import run
Expand All @@ -15,7 +14,7 @@
)


DEPLOYMENT = os.getenv("DEPLOYMENT","development")

@router.post("/", status_code=200)
def create_run(
request: Request,
Expand Down
2 changes: 1 addition & 1 deletion src/teuthology_api/services/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
PADDLES_URL = os.getenv("PADDLES_URL")
ARCHIVE_DIR = os.getenv("ARCHIVE_DIR")

DEPLOYMENT = os.getenv("DEPLOYMENT", "development")
DEPLOYMENT = os.getenv("DEPLOYMENT")
log = logging.getLogger(__name__)


Expand Down

0 comments on commit ef41ec8

Please sign in to comment.