1138 Commits

Author SHA1 Message Date
dandds
d7478e322a Use Celery instead of RQ.
Celery provides a more robust set of queueing options for both tasks and
worker processes. Updates include:
- infrastructure necessary to run Celery, including celery entrypoint
- backgrounded functions are now imported directly from atst.jobs
- update tests as-needed
- update kubernetes worker pod command
2019-08-29 09:33:47 -04:00
dandds
caa633c3db Fix more tests broken by expiring CRL.
There are still a few tests that rely on physical certificate files.
These are slightly more complicated to replace with pytest fixtures.
Updated the script for generating a CRL chain so that the CRL is good
for roughly ten years and regenerated the certs and CRL.
2019-08-21 05:47:54 -04:00
leigh-mil
0cbd971c11
Merge pull request #1032 from dod-ccpo/dont-include-last-login-update-in-auditlog
Do not create AuditEvent if updating the User.last_login
2019-08-19 11:26:36 -04:00
leigh-mil
96a2520e0c Don't use domain methods in tests 2019-08-19 10:39:16 -04:00
leigh-mil
2776926dea Move custom audit log logic into the User class 2019-08-19 10:25:26 -04:00
leigh-mil
1efe9cb5e4
Merge pull request #1023 from dod-ccpo/csp-links
Env roles bug fix
2019-08-19 09:43:54 -04:00
leigh-mil
0d6f7aa3cc Do not create AuditEvent if updating the User.last_login 2019-08-16 16:41:58 -04:00
dandds
24b2d95f03 Application members should not see deleted applications.
This updates the `Portfolios.for_user` method to screen out deleted
ApplicationRole entities. For extra assurance, we also mark application
roles as disabled when they are deleted.
2019-08-15 10:20:30 -04:00
leigh-mil
c37c5d72b9 move data property into the base EnvironmentForm so that NO_ACCESS is converted to None when creating a new application member 2019-08-15 10:13:34 -04:00
leigh-mil
afd84e178f Add tests to check if environment roles are being created correctly 2019-08-15 10:13:34 -04:00
dandds
16c9b826b3
Merge pull request #1019 from dod-ccpo/upload-error-handling
Add validations and error states for TO upload form
2019-08-14 14:30:46 -04:00
richard-dds
36d39dc949 Use unique attachment object names 2019-08-14 10:39:58 -04:00
leigh-mil
e59e3b959c Add listener to User model to record permission set updates and update user audit log template 2019-08-13 16:36:38 -04:00
richard-dds
71bb1be130 Validate filename and object_name for TO PDF upload 2019-08-13 10:51:09 -04:00
leigh-mil
e35399d8f5 Update route function to revoke CCPO superuser status 2019-08-13 10:32:26 -04:00
leigh-mil
fa83dfe6bd When user not found, redirect to users page and show flash message 2019-08-09 11:08:23 -04:00
leigh-mil
864e11ea11 Remove redundant 'ccpo' from ccpo route function names 2019-08-09 11:08:23 -04:00
leigh-mil
feb24b8e16 Break class method for ccpo perms into two methods instead of switching on a kwarg to determine if perms are given or removed 2019-08-09 11:08:23 -04:00
leigh-mil
1b86147ab6 Move text into translations file 2019-08-09 11:08:23 -04:00
leigh-mil
a6eb89ffb8 Add tests for route functions 2019-08-09 11:08:22 -04:00
leigh-mil
1f8337485f Move ccpo routes into their own file 2019-08-09 11:08:22 -04:00
leigh-mil
5b008e044a Add tests 2019-08-09 10:50:34 -04:00
richard-dds
8fce880ae6
Merge pull request #1013 from dod-ccpo/fix-cancel-button
Update TO form cancel button behavior
2019-08-09 09:50:38 -04:00
richard-dds
915ccfadfc Clean up assertion 2019-08-08 16:28:26 -04:00
richard-dds
f042b12416 Real assertion in TO delete test 2019-08-08 16:26:59 -04:00
richard-dds
7fdb27ddbf Delete TO draft when click "delete it" on cancel modal 2019-08-08 16:03:47 -04:00
richard-dds
02900ff771 Allow TOs to be deleted, along with their associated CLINs 2019-08-08 16:03:42 -04:00
dandds
9fc6514d80 Clean up defunct upload and CRL logic.
- Applies our previous CSP namespacing pattern to the upload classes.
- Removes code and config for previous uploader implementation.
- Removes Attachment model's ability to upload files directly and
  adjusts tests that expected that behavior.
2019-08-08 13:20:27 -04:00
richard-dds
736e2aa21d
Merge pull request #994 from dod-ccpo/cloud-pdf-uploads
CSP PDF uploads
2019-08-08 11:17:07 -04:00
leigh-mil
86b66e5685
Merge pull request #999 from dod-ccpo/ccpo-user-list
Page for CCPO users list
2019-08-06 13:18:57 -04:00
leigh-mil
9cf72e9466 Update name of permission 2019-08-06 10:38:58 -04:00
leigh-mil
90ae235cd0 Create query to get all CCPO users 2019-08-05 16:04:31 -04:00
leigh-mil
41820813ed Add in route for CCPO users page and permissions to view page 2019-08-05 15:23:17 -04:00
richard-dds
6405d9b958 Make Azure account name and bucket name configurable 2019-08-05 14:58:10 -04:00
richard-dds
81a478915d Fix uploader test and refactor makeTestWrapper to accept data fn 2019-08-05 14:58:10 -04:00
richard-dds
3d414e1a60 Fix TO upload tests 2019-08-05 14:58:10 -04:00
richard-dds
e034269a02 Don't flash when cancelling TO form with invalid data 2019-08-05 09:56:15 -04:00
richard-dds
24049c4c81 Formatting 2019-08-05 09:56:15 -04:00
richard-dds
ec6494c6c3 Add another route for new TOs 2019-08-05 09:56:15 -04:00
richard-dds
dd93dd5aea Allow user to cancel without saving 2019-08-05 09:56:15 -04:00
richard-dds
88853e352c Formatting 2019-08-05 09:55:34 -04:00
richard-dds
470df0a572 New route for cancelling TO form 2019-08-05 09:55:34 -04:00
leigh-mil
25ab64f748 Add validation to form for enforcing chronological order of PoP start and end dates 2019-08-01 14:45:50 -04:00
leigh-mil
c9451e0f93 Update tests to use proper route
Pass portfolio and creator to TOFactory so user has perms to edit TO
2019-07-30 15:26:07 -04:00
richard-dds
43ed257f10 Future proof edit route 2019-07-30 14:07:04 -04:00
richard-dds
136b97b23f Use new edit route 2019-07-30 14:06:40 -04:00
richard-dds
ce6b526da1 Add task order /edit route 2019-07-30 13:54:47 -04:00
leigh-mil
299804ade2 Check to make sure clins complete as part of checking if TO is complete 2019-07-29 15:50:50 -04:00
leigh-mil
b3515bb14d Reorder tests so that tests for each step are grouped together 2019-07-18 13:33:37 -04:00
leigh-mil
e3dfd18c7f Raise error if TO review or signature page are accessed when the TO is incomplete 2019-07-18 13:33:37 -04:00