Skip to content

Commit

Permalink
osim constants and environments renaming
Browse files Browse the repository at this point in the history
Signed-off-by: Conrado Costa <[email protected]>
  • Loading branch information
costaconrado committed Nov 30, 2023
1 parent 15d75db commit ee52842
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/workflows/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
Workflows constants
"""

OSIM_API_VERSION: str = "v1"
WORKFLOWS_API_VERSION: str = "v1"
WORKFLOW_DIR = "apps/workflows/workflows"
6 changes: 3 additions & 3 deletions apps/workflows/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from apps.workflows.constants import OSIM_API_VERSION
from apps.workflows.constants import WORKFLOWS_API_VERSION
from apps.workflows.workflow import WorkflowFramework
from osidb.helpers import get_env

Expand Down Expand Up @@ -35,7 +35,7 @@ def ldap_test_password():

@pytest.fixture
def test_scheme_host():
return "http://osidb-service:8000/osim"
return "http://osidb-service:8000/workflows"


@pytest.fixture
Expand All @@ -45,7 +45,7 @@ def test_scheme_host_osidb():

@pytest.fixture
def api_version():
return OSIM_API_VERSION
return WORKFLOWS_API_VERSION


@pytest.fixture
Expand Down
12 changes: 6 additions & 6 deletions apps/workflows/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from django.urls import path

from .api import adjust, classification, healthy, index, workflows
from .constants import OSIM_API_VERSION
from .constants import WORKFLOWS_API_VERSION
from .views import classification as graph_classification
from .views import workflows as graph_workflows

Expand All @@ -16,12 +16,12 @@
urlpatterns = [
path("", index.as_view()),
path("healthy", healthy.as_view()),
path(f"api/{OSIM_API_VERSION}/workflows", workflows.as_view()),
path(f"api/{OSIM_API_VERSION}/workflows/<str:pk>", classification.as_view()),
path(f"api/{OSIM_API_VERSION}/workflows/<str:pk>/adjust", adjust.as_view()),
path(f"api/{OSIM_API_VERSION}/graph/workflows", graph_workflows.as_view()),
path(f"api/{WORKFLOWS_API_VERSION}/workflows", workflows.as_view()),
path(f"api/{WORKFLOWS_API_VERSION}/workflows/<str:pk>", classification.as_view()),
path(f"api/{WORKFLOWS_API_VERSION}/workflows/<str:pk>/adjust", adjust.as_view()),
path(f"api/{WORKFLOWS_API_VERSION}/graph/workflows", graph_workflows.as_view()),
path(
f"api/{OSIM_API_VERSION}/graph/workflows/<str:pk>",
f"api/{WORKFLOWS_API_VERSION}/graph/workflows/<str:pk>",
graph_classification.as_view(),
),
]

0 comments on commit ee52842

Please sign in to comment.