Commit Graph

285 Commits

Author SHA1 Message Date
jasquat 01f62b6dd0 refactored tests to prepare for adding new message test w/ burnettk 2022-08-30 12:19:45 -04:00
jasquat 376912f3a2 added method to get data for a process instance in its current state w/ burnettk cullerton 2022-08-26 16:52:15 -04:00
jasquat 01938b88f5 add api to terminate a process instance w/ burnettk cullerton 2022-08-26 13:04:40 -04:00
jasquat bb7a062838 added api endpoint to send payloads to messages w/ burnettk cullerton 2022-08-25 17:35:24 -04:00
jasquat 352b453643 only update items we specified in the process_model_update api w/ burnettk cullerton 2022-08-23 16:40:42 -04:00
jasquat 70bb2e3681 only save the values to process model that are passed in w/ burnettk cullerton 2022-08-23 16:18:32 -04:00
jasquat 4cc2601210 most lints and checks are passing and cleaned up some debug code 2022-08-23 09:30:34 -04:00
jasquat cbab371fd3 tests pass 2022-08-23 09:15:31 -04:00
jasquat c5c1a45e60 precommit w/ burnettk 2022-08-22 17:49:05 -04:00
jasquat ddc6740825 we can send and receive 2 messages w/ burnettk 2022-08-22 17:45:51 -04:00
jasquat 926b158753 message test passes if there are no messages in the queun_tmux_pane /home/jason/projects/github/sartography/spiffworkflow-backend/t tests/spiffworkflow_backend/unit/test_message_service.pyu w/ burnettk 2022-08-22 16:09:06 -04:00
jasquat 94f110786f message test passes if there are no messages in the queue w/ burnettk 2022-08-22 16:08:20 -04:00
jasquat 75f817ca73 added new correlation models to link messages together w/ burnettk 2022-08-22 14:07:20 -04:00
jasquat 5952f199ed some more debug code and stuff for messages w/ burnettk cullerton 2022-08-19 16:53:22 -04:00
jasquat be33f79729 messages are mostly working now w/ burnettk cullerton 2022-08-19 16:17:22 -04:00
mike cullerton 13ba5327c6 testing waku setup 2022-08-19 09:43:48 -04:00
jasquat e9ab9981ee some more progress with messages w/ burnettk cullerton 2022-08-18 17:17:27 -04:00
jasquat 435b1ccde8 wip: trying to get a test going for messages 2022-08-15 09:19:53 -04:00
jasquat ccd67489cb some fixes and updates to actually parse and save correlations 2022-08-11 09:10:30 -04:00
jasquat 9f0acd3b3f precommit 2022-08-04 14:28:50 -04:00
jasquat 4ef8ccea1e added validations to message instances and tests for it 2022-08-04 14:26:41 -04:00
jasquat f317671ad9 added a base db query to link send and receive messages together 2022-08-02 17:39:47 -04:00
jasquat 9613aabca0 merged in main and resolved conflicts 2022-08-02 16:43:56 -04:00
jasquat 209e67bf8b some basis for testing messages now. it still does not do anything though 2022-08-02 16:27:47 -04:00
mike cullerton a2703d6c6e keycloak -> open_id
also, assert we have a valid service when adding a user
2022-08-02 15:59:43 -04:00
jasquat 0a77926801 merged in main and resolved conflicts 2022-08-02 15:31:56 -04:00
mike cullerton 18013f9456 more cleanup 2022-08-02 12:54:43 -04:00
mike cullerton afa428bb97 mypy 2022-08-02 12:52:46 -04:00
mike cullerton ce0a0883cb pre commit 2022-08-02 12:49:41 -04:00
mike cullerton c16175a0e4 Start tests for auth 2022-08-02 12:43:41 -04:00
mike cullerton bfb3bd96e2 Merge branch 'main' into cullerton 2022-08-02 11:23:53 -04:00
mike cullerton b3a0424d5c pre commit again 2022-08-02 11:08:37 -04:00
mike cullerton 5c8f783276 mypy 2022-08-02 11:06:40 -04:00
mike cullerton 4df28a39d6 precommit 2022-08-02 10:49:43 -04:00
mike cullerton 4219ce6ced Use BaseTest in test_process_api
Move base_test into helpers directory
Move find_or_create_user to BaseTest
2022-08-02 10:46:53 -04:00
jasquat e1c41694b5 the verify token can contain either strings or ints as values 2022-08-02 09:31:43 -04:00
jasquat a1e69b511a precommit 2022-08-01 17:19:51 -04:00
jasquat 7b25baf4dc ignore user blueprint tests for now and updated some mypy syntax for python 3.9 2022-08-01 17:13:35 -04:00
jasquat df26c77fd7 some more framework for messages 2022-08-01 16:44:51 -04:00
mike cullerton 49d764bd3f PreCommit again 2022-08-01 16:24:12 -04:00
mike cullerton 5a37ea14d0 mypy fixes 2022-08-01 16:20:36 -04:00
mike cullerton 53449334d7 Pre-commit 2022-08-01 13:29:10 -04:00
jasquat 25c6e74a90 ran precommit stuff 2022-07-29 13:39:57 -04:00
mike cullerton 0ffd5bdee0 Moved tests to authorization 2022-07-25 14:05:32 -04:00
mike cullerton d19825a6a4 moved code to auth service 2022-07-25 14:00:42 -04:00
mike cullerton cc7198c291 Keycloak authz stuff 2022-07-25 13:35:10 -04:00
jasquat 78cde23612 return the next active task for that user when submitting a task so the frontend can cycle through all forms 2022-07-19 16:57:58 -04:00
jasquat d7fdb618fc return a 400 if a process group cannot be found instead of a 500 2022-07-18 16:23:29 -04:00
burnettk 898b116394 get controller code working 2022-07-10 20:22:16 -04:00
burnettk 65c30fec73 flatten out process instance attributes for use in reports 2022-07-10 12:24:27 -04:00
burnettk 78de9fe2e2 mypy 2022-07-10 01:38:35 -04:00
burnettk 96f770426b add generate_report and tests 2022-07-10 01:24:12 -04:00
burnettk 5047b9aa8b add process_instance_report_list 2022-07-09 13:17:21 -04:00
burnettk 15866e2297 comment out WIP tests and update report naming 2022-07-09 11:11:05 -04:00
jasquat d21e1105d0 added test for deleting process instances with task events w/ burnettk 2022-07-07 15:26:53 -04:00
jasquat ac9c2f7fff attempt to log better with gunicorn w/ burnettk 2022-07-07 14:44:19 -04:00
jasquat 093b96a2f9 added json formatting and turn debug mode off in docker so we can get stack traces to log files w/ burnettk 2022-07-07 12:27:03 -04:00
mike cullerton 82be330983 Flake8 flakiness 2022-07-06 08:37:32 -04:00
mike cullerton 8d9eb7e54e mypy changes 2022-07-06 08:30:45 -04:00
mike cullerton 7e0c06aaa5 Typing 2022-07-05 14:31:37 -04:00
mike cullerton 8480ecb8fb pre-commit with poetry 2022-07-05 14:07:23 -04:00
mike cullerton 9bc304f841 First run of tests for authentication/authorization 2022-07-05 12:13:36 -04:00
mike cullerton 020426f374 fix principal/user_id bug
fix typo in test name
2022-06-30 14:21:07 -04:00
jasquat 4cd9e33b9e precommit is passing w/ burnettk 2022-06-30 12:17:14 -04:00
jasquat e57a64361c started migrating code for updating task form data w/ burnettk 2022-06-30 12:13:14 -04:00
jasquat ab83f4feea precommit is passing w/ burnettk 2022-06-30 11:21:02 -04:00
mike cullerton 481b88f2e6 pre commit with poetry 2022-06-29 15:47:24 -04:00
mike cullerton aeb495f262 Assertions for task_event 2022-06-29 15:43:06 -04:00
mike cullerton 16394c0dd8 run precommit with poetry 2022-06-29 12:41:04 -04:00
mike cullerton 9640ffd422 use fixture to clean up db 2022-06-29 12:19:06 -04:00
mike cullerton 963d60f4e5 Merge branch 'main' into cullerton 2022-06-29 11:51:56 -04:00
jasquat 5fd85eadda delete all data in the databases before every test. we may have to control the order better w/ burnettk 2022-06-29 11:47:17 -04:00
mike cullerton bb230b5447 Merge branch 'main' into cullerton 2022-06-29 11:42:58 -04:00
mike cullerton ceef89ff55 methods, etc for running user tasks
needed for task_events
2022-06-29 11:40:52 -04:00
burnettk d427fd72d4 basic task show 2022-06-28 17:59:12 -04:00
mike cullerton e374813609 Pre commit with poetry 2022-06-27 13:26:00 -04:00
mike cullerton 58b418aad3 Add test for suspend 2022-06-27 13:24:56 -04:00
mike cullerton cfa738f128 run precommit 2022-06-27 12:56:13 -04:00
mike cullerton 59863dfcf1 run mypy with poetry 2022-06-27 12:53:47 -04:00
mike cullerton d21ad20525 run pre commit 2022-06-27 11:15:00 -04:00
mike cullerton 77227c545a Merge branch 'main' into cullerton
# Conflicts:
#	tests/spiffworkflow_backend/integration/test_process_api.py
2022-06-27 11:06:17 -04:00
mike cullerton c95e9bfebb test sending email on exception 2022-06-27 10:37:40 -04:00
jasquat b798ea4e45 precommit is passing w/ burnettk 2022-06-24 17:22:02 -04:00
jasquat 2cbf2a2129 typehints complete w/ burnettk 2022-06-24 17:21:35 -04:00
jasquat ba75d5a9fc tests are passing w/ burnettk 2022-06-24 17:13:50 -04:00
burnettk c4a933ec4c any 2022-06-24 17:09:24 -04:00
jasquat 7682e368c7 finished typehints for process_api_blueprint w/ burnettk 2022-06-24 16:46:30 -04:00
jasquat caf317c545 monkeytype w/ burnettk 2022-06-24 15:29:22 -04:00
jasquat 7f4dc0a380 fixed test w/ burnettk 2022-06-24 15:25:45 -04:00
jasquat 0a3c96b162 precommit w/ burnettk 2022-06-24 15:24:35 -04:00
jasquat 6641b9c6d4 added fixture data helper and some other changes related to acceptance tests w/ burnettk 2022-06-24 15:19:26 -04:00
mike cullerton 9b08c79ad0 Merge branch 'main' into cullerton
# Conflicts:
#	src/spiffworkflow_backend/routes/process_api_blueprint.py
2022-06-24 11:42:29 -04:00
mike cullerton 610f47bb98 run_precommit_with_poetry 2022-06-24 11:20:39 -04:00
mike cullerton f47b53e11e fix python doc_strings 2022-06-24 10:47:40 -04:00
mike cullerton 4c2def9706 Test for error_handler 2022-06-24 10:45:38 -04:00
burnettk 4fd629d427 pre-commit 2022-06-23 23:29:48 -04:00
burnettk 44117a41b8 get rid of the 150 or so easiest type hint errors ever 2022-06-23 23:29:00 -04:00
burnettk 49b59136a4 3 mypy files 2022-06-23 22:59:48 -04:00
mike cullerton aaddf2d871 run_precommit_with_poetry 2022-06-23 17:14:46 -04:00
mike cullerton 4273b67c4f fix_python_docstrings 2022-06-23 17:10:59 -04:00
mike cullerton 26f630c63c a little more with the handler 2022-06-23 16:44:06 -04:00
mike cullerton 7d019ea998 Change `notification_email_on_exception` to `exception_notification_addresses` 2022-06-23 16:43:46 -04:00
jasquat cc7e920df7 added ability to create fixture data for e2e acceptance tests w/ burnettk 2022-06-23 16:35:02 -04:00
mike cullerton cc43ec5510 Change process_instance.status column to string
Add `faulted` and `suspended` to ProcessInstanceStatus
Fix services and models to match this change
2022-06-23 15:21:54 -04:00
mike cullerton 792e6eaedc Add test for process_instance_run
Fix asserts for tests that used process_instance_create
2022-06-23 11:56:30 -04:00
jasquat 016ec34d95 precommit and some cleanup w/ burnettk 2022-06-23 10:30:57 -04:00
mike cullerton 8bbf15ed29 remove `app` from test method calls. It isn't used anywhere 2022-06-23 09:58:22 -04:00
mike cullerton 79af7efb26 Merge branch 'main' into cullerton 2022-06-23 08:26:18 -04:00
mike cullerton 775808b8dc stub for test_process_instance_run 2022-06-23 08:22:52 -04:00
mike cullerton a1798cc1ea assertions for test_process_model_file_create 2022-06-23 07:58:31 -04:00
burnettk 97bbf1ba45 rename exception to match conventions 2022-06-22 21:59:01 -04:00
burnettk 51109d26d7 type hints, raise exception when thing not found in model 2022-06-22 21:46:40 -04:00
jasquat f3111ee836 some more type fixes w/ burnettk 2022-06-22 17:15:15 -04:00
jasquat 388cee7018 some more type fixes w/ burnettk 2022-06-22 16:52:50 -04:00
jasquat f78a2b6997 some mypy fixes w/ burnettk 2022-06-22 11:39:46 -04:00
jasquat 9c9597e226 merged postgres branch into main w/ burnettk 2022-06-21 17:52:10 -04:00
jasquat 8eef5f5c36 merged main into branch and resolved conflicts w/ burnettk 2022-06-21 17:40:17 -04:00
jasquat f41490b88e fixed some more types w/ burnettk 2022-06-21 17:28:59 -04:00
mike cullerton c1b5c1ea8c pre commit 2022-06-21 17:26:58 -04:00
mike cullerton a822a10405 fix doc_strings 2022-06-21 17:23:00 -04:00
mike cullerton 949632d08d allow load_spec to accept a process_model_id 2022-06-21 17:08:36 -04:00
mike cullerton 9225931b60 Add skeletons for test_error_handler, and test_process_model_file_create
add fault_or_suspend_on_exception and notification_email_on_exception to create_process_model
allow create_spec to accept file parameters
2022-06-21 17:05:49 -04:00
jasquat 1bc2ca6179 precommit w/ burnettk 2022-06-21 15:17:42 -04:00
jasquat 7bd2a146da monkeytype ftw w/ burnettk 2022-06-21 15:13:02 -04:00
jasquat 5100b40405 precommit is passing w/ burnettk 2022-06-21 14:52:01 -04:00
jasquat 0529e24dd7 precommit is passing w/ burnettk 2022-06-21 13:51:42 -04:00
jasquat 14dfa8ff7e use new updated and created at column names and use integers instead of dates w/ burnettk 2022-06-21 12:45:47 -04:00
jasquat 388edb2df4 added file to load to all models and add event listeners for create and upate w/ burnettk 2022-06-21 12:10:47 -04:00
mike cullerton f06b1c2fc2 pre commit 2022-06-21 10:55:51 -04:00
mike cullerton 8988d3b362 fix doc strings 2022-06-21 10:54:21 -04:00
mike cullerton d73470c051 Merge branch 'main' into cullerton 2022-06-21 10:49:48 -04:00
mike cullerton 4302ef1bf8 test for filtering instances 2022-06-21 10:48:32 -04:00
burnettk c13553ff6d pre-commit 2022-06-21 07:32:02 -04:00
burnettk c2553cd433 oh that instance path 2022-06-21 00:34:40 -04:00
jasquat 65da9ccbaa fixed some precommit 2022-06-20 10:56:32 -04:00
jasquat 5cfe999d34 added process group id to all process-models api routes 2022-06-20 10:50:21 -04:00
burnettk a38ef72c26 add process_instance_report api method 2022-06-19 19:19:42 -04:00
jasquat 34248324c0 added sorting to process model w/ burnettk 2022-06-16 16:58:55 -04:00
burnettk 061722f965 update a bunch of packages, mypy issues from 183 to 178 from adding stubs 2022-06-15 22:59:11 -04:00
mike cullerton 928e920f35 run pre-commit 2022-06-14 17:57:02 -04:00
mike cullerton 784de3afb7 fix docstrings 2022-06-14 17:54:35 -04:00
mike cullerton 67403b34a1 test for process model list, with pagination 2022-06-14 17:51:04 -04:00
mike cullerton 9b1b08d61a add pagination object to response for process group list 2022-06-14 16:40:00 -04:00
mike cullerton 781e7faee9 skeleton for test_process_model_list 2022-06-14 13:47:36 -04:00
mike cullerton e634e40aa0 test process group list (with pagination) 2022-06-14 13:46:52 -04:00
mike cullerton 21a8d01afe Make create_process_model reusable in other tests.
Return the response
Move the asserts into test_process_model_add
2022-06-14 13:24:25 -04:00
mike cullerton 20810fd999 Changed ProcessModelService.get_spec to get_process_model 2022-06-14 12:10:01 -04:00
mike cullerton 0afd8e11b5 run pre-commit 2022-06-14 10:00:33 -04:00
mike cullerton 8831f122eb Fix python doc strings 2022-06-14 09:44:36 -04:00
mike cullerton 17d1a6dcbb missing import 2022-06-13 15:44:19 -04:00