Skip to content

Commit

Permalink
update piece repo test version
Browse files Browse the repository at this point in the history
  • Loading branch information
vinicvaz committed Feb 15, 2024
1 parent 736ceef commit 489dbbf
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion rest/routers/workflow_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def list_run_tasks(
)
except (BaseException, ForbiddenException, ResourceNotFoundException) as e:
raise HTTPException(status_code=e.status_code, detail=e.message)

@router.get(
"/{workflow_id}/runs/{workflow_run_id}/tasks/report",
status_code=200,
Expand Down
4 changes: 2 additions & 2 deletions rest/services/auth_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ def workspace_access_authorizer(
)
if not workspace_associative_data:
raise HTTPException(
status_code=400,#ResourceNotFoundError().status_code,
detail="error test",#ResourceNotFoundError(message='Workspace not found').message
status_code=ResourceNotFoundError().status_code,
detail=ResourceNotFoundError(message='Workspace not found').message
)
if workspace_associative_data and not workspace_associative_data.permission:
raise HTTPException(status_code=ForbiddenError().status_code, detail=ForbiddenError().message)
Expand Down
2 changes: 1 addition & 1 deletion rest/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def piece_repository():
id=1,
source="github",
path="Tauffer-Consulting/default_domino_pieces_tests",
version="0.0.3",
version="0.0.4",
workspace_id=1,
url='https://github.com/Tauffer-Consulting/default_domino_pieces_tests'
)
Expand Down
2 changes: 1 addition & 1 deletion rest/tests/piece/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_pieces_mock_response(piece_repository: PieceRepository):
},
repository_url='https://github.com/Tauffer-Consulting/default_domino_pieces_tests',
source_url='https://github.com/Tauffer-Consulting/default_domino_pieces_tests/tree/main/pieces/SimpleLogPiece',
source_image = "ghcr.io/tauffer-consulting/default_domino_pieces_tests:0.0.3-group0",
source_image = "ghcr.io/tauffer-consulting/default_domino_pieces_tests:0.0.4-group0",
input_schema = {
"title": "SimpleLogPiece",
"description": "Example Operator",
Expand Down
2 changes: 1 addition & 1 deletion rest/tests/workflow/create_workflow_request_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@
"task_id": "SimpleLogP_0298c1669d404e08b631ebe1490e1c45",
"piece": {
"name": "SimpleLogPiece",
"source_image": "ghcr.io/tauffer-consulting/default_domino_pieces_tests:0.0.3-group0"
"source_image": "ghcr.io/tauffer-consulting/default_domino_pieces_tests:0.0.4-group0"
},
"workflow_shared_storage": {
"source": "None",
Expand Down
1 change: 1 addition & 0 deletions rest/tests/workflow/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
@pytest.fixture(scope="class")
def create_workflow(client: ApiTestClient, authorization_token: Dict, edit_workflow_request_model: Dict, workflow: Workflow, default_workspace: Workspace):
workflow_request_model = edit_workflow_request_model
print('Using workspace_id', default_workspace.id)
body = workflow_request_model
response = client.post(
f"/workspaces/{default_workspace.id}/workflows",
Expand Down
8 changes: 4 additions & 4 deletions rest/tests/workspace/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ def invite_user(client: ApiTestClient, authorization_token: Dict, workspace: Wor

@pytest.fixture(scope='function')
def accept_invite(
client: ApiTestClient,
client: ApiTestClient,
login_user_extra: Response,
authorization_token_user_extra: Dict,
authorization_token_user_extra: Dict,
workspace: Workspace,
):
return client.post(
Expand All @@ -103,9 +103,9 @@ def accept_invite(

@pytest.fixture(scope='function')
def reject_invite(
client: ApiTestClient,
client: ApiTestClient,
login_user_extra: Response,
authorization_token_user_extra: Dict,
authorization_token_user_extra: Dict,
workspace: Workspace
):
return client.post(
Expand Down

0 comments on commit 489dbbf

Please sign in to comment.