1345 Commits

Author SHA1 Message Date
richard-dds
c5284fd8f9
Merge pull request #1005 from dod-ccpo/cloud-pdf-downloads
Cloud pdf downloads
2019-08-30 16:11:27 -04:00
dandds
883947b75f Enable debug mode in tests.
Debug mode allows route integration tests to raise explicit exceptions on
errors, instead of returning error pages. Some portions of the test
suite need to be able to ignore exceptions (the response is not under
test) so they use a separate pytest fixture version of the app and
client that are configured with debug disabled, as it would be in
production.
2019-08-30 15:32:57 -04:00
graham-dds
38ba8b7e5f LOAs are so out of this codebase 2019-08-30 09:57:23 -05:00
richard-dds
b26cd3ffae Allow user to download a previously uploaded pdf 2019-08-29 16:00:25 -04:00
tomdds
1fe9399f99 Update CloudProviderInterface for provision job consumption 2019-08-29 14:06:18 -04:00
dandds
2b11debe5d
Merge pull request #1041 from dod-ccpo/use-celery
Use Celery instead of RQ.
2019-08-29 13:17:27 -04:00
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
richard-dds
bb9d76dd09 Fix Vue tests 2019-08-28 15:56:55 -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