Merge remote-tracking branch 'origin/main' into feature/home_page_filter_links
This commit is contained in:
commit
6a9d30e3fe
|
@ -148,6 +148,21 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/OkTrue"
|
||||
|
||||
/debug/test-raise-error:
|
||||
get:
|
||||
operationId: spiffworkflow_backend.routes.debug_controller.test_raise_error
|
||||
summary: Returns an unhandled exception that should notify sentry, if sentry is configured
|
||||
tags:
|
||||
- Status
|
||||
responses:
|
||||
"500":
|
||||
description: The server raises a test error as expected.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/OkTrue"
|
||||
|
||||
|
||||
/process-groups:
|
||||
parameters:
|
||||
- name: process_group_identifier
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
"""APIs for dealing with process groups, process models, and process instances."""
|
||||
from flask.wrappers import Response
|
||||
|
||||
|
||||
def test_raise_error() -> Response:
|
||||
raise Exception("This exception was generated by /debug/test-raise-error for testing purposes. Please ignore.")
|
|
@ -9,3 +9,7 @@ def status() -> Response:
|
|||
"""Status."""
|
||||
ProcessInstanceModel.query.filter().first()
|
||||
return make_response({"ok": True}, 200)
|
||||
|
||||
|
||||
def test_raise_error() -> Response:
|
||||
raise Exception("This exception was generated by /status/test-raise-error for testing purposes. Please ignore.")
|
||||
|
|
|
@ -310,6 +310,7 @@ class AuthorizationService:
|
|||
swagger_functions = ["get_json_spec"]
|
||||
authentication_exclusion_list = [
|
||||
"status",
|
||||
"test_raise_error",
|
||||
"authentication_callback",
|
||||
"github_webhook_receive",
|
||||
]
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
from flask.app import Flask
|
||||
from flask.testing import FlaskClient
|
||||
from tests.spiffworkflow_backend.helpers.base_test import BaseTest
|
||||
|
||||
|
||||
class TestDebugController(BaseTest):
|
||||
|
||||
def test_test_raise_error(
|
||||
self,
|
||||
app: Flask,
|
||||
client: FlaskClient,
|
||||
with_db_and_bpmn_file_cleanup: None,
|
||||
) -> None:
|
||||
response = client.get(
|
||||
"/v1.0/debug/test-raise-error",
|
||||
)
|
||||
assert response.status_code == 500
|
|
@ -0,0 +1,16 @@
|
|||
from flask.app import Flask
|
||||
from flask.testing import FlaskClient
|
||||
from tests.spiffworkflow_backend.helpers.base_test import BaseTest
|
||||
|
||||
|
||||
class TestHealthController(BaseTest):
|
||||
def test_status(
|
||||
self,
|
||||
app: Flask,
|
||||
client: FlaskClient,
|
||||
with_db_and_bpmn_file_cleanup: None,
|
||||
) -> None:
|
||||
response = client.get(
|
||||
"/v1.0/status",
|
||||
)
|
||||
assert response.status_code == 200
|
|
@ -141,7 +141,7 @@ export default function ProcessInterstitial() {
|
|||
<h4 className="heading-compact-01">Waiting on Someone Else</h4>
|
||||
<p>
|
||||
This next task is assigned to a different person or team. There is
|
||||
no action for you take at this time.
|
||||
no action for you to take at this time.
|
||||
</p>
|
||||
</>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue