2a79b6ea6d
test jobs update the last before COMPLETED state
2020-03-09 11:18:23 -04:00
leigh-mil
c2814416fb
Update atst to atat
2020-03-04 11:51:15 -05:00
leigh-mil
2a2fafe7ea
Use Environment.portofolio and portfolio_id properties instead of accessing them through application
2020-02-26 16:05:16 -05:00
leigh-mil
da0141a390
Refactor tests
2020-02-26 11:27:16 -05:00
leigh-mil
2c37b16963
Send email to user when env role is created
2020-02-26 11:27:16 -05:00
leigh-mil
0bda0c481e
Explicitly pass in kwargs instead of splatting clin and portfolio data
2020-02-19 16:07:45 -05:00
leigh-mil
5c7dfc428e
Add new tests and refactor existing tests
2020-02-19 16:07:44 -05:00
leigh-mil
6ef3265cb5
Create celery task for create_billing_instruction
2020-02-19 16:03:30 -05:00
leigh-mil
1d8bb2811d
Update name of function
2020-02-19 12:25:34 -05:00
leigh-mil
b8bf106a96
Move dispatch_send_task_order_files tests into a test class
2020-02-19 12:25:34 -05:00
leigh-mil
0deca6afcb
Refactor tests
2020-02-19 11:12:24 -05:00
leigh-mil
207c34e536
Send email to user when App Role is created
2020-02-19 11:12:24 -05:00
graham-dds
9b25a4b907
Move 'onmicrosoft.com' to an app constant
2020-02-13 10:56:01 -05:00
graham-dds
8f52443b5d
Send email to PPOC when portfolio is provisioned
...
When a portfolio state machine transitions to the COMPLETED state, an
email is sent to the PPOC letting them know it's ready, and provides
them with their username needed to create a password.
2020-02-13 10:55:47 -05:00
dandds
3f60d3494e
Merge branch 'staging' into environment-role-creation
2020-02-09 14:29:03 -05:00
leigh-mil
903f5ca33b
Add todo about fixing tests
2020-02-06 13:07:46 -05:00
leigh-mil
b2da9de040
Log error when sending email fails. Wrap recipients in a list instead of putting the logic inside Mailer _build_message().
2020-02-06 13:07:46 -05:00
leigh-mil
0f69a48bbe
Refactor to catch errors and not update TaskOrder.pdf_last_sent_at unless the email has been sent. Add tests for failure cases
2020-02-06 13:07:46 -05:00
leigh-mil
0af29f485e
Add celery task for finding unsent TO and sending them to Microsoft
2020-02-06 13:07:46 -05:00
dandds
872500099e
Merge branch 'staging' into environment-role-creation
2020-02-06 05:57:06 -05:00
dandds
4da68a1fab
WIP: orchestration for env role creation
2020-02-05 15:56:53 -05:00
tomdds
e702c42fa5
Merge branch 'staging' into environment-mgmt-grp-provisioning
2020-02-04 17:05:24 -05:00
tomdds
ca4feaa403
post-rebase fixes
2020-02-04 15:39:03 -05:00
tomdds
1a7db62dac
Remove Environment level user provisioning
2020-02-04 15:22:34 -05:00
tomdds
bcb552134b
Update tests for environment management group provisioning
2020-02-04 15:21:41 -05:00
dandds
05f6b36ece
Update SQL query to find pending portfolios.
...
The query to find portfolios that are pending provisioning is updated to
check for:
- a period of performance that has started
- a portfolio state machine that has an UNSTARTED or one of the CREATED
states
I left several TODOs to ensure that the orchestration functions
correctly for portfolio.
2020-02-04 10:16:02 -05:00
dandds
6b8d9d1d65
Celery wrapper for creating a user.
2020-02-02 14:42:44 -05:00
dandds
cc28f53999
Function for claiming multiple resources at once.
...
Like claim_for_update, the claim_many_for_update claims resources with
an expiring lock. This was written to allow the updating of multiple
application roles with a single cloud_id, since multiple application
roles will map to a single Azure Active Directory user.
2020-02-02 14:19:13 -05:00
dandds
8810a59e0a
Orchestration for creating app management groups.
...
This adds:
- A Celery beat task for enqueuing application creation tasks
- A Celery task for creating the application
- Payload and Response dataclasses for creating management groups
It also does some incidental cleanup.
2020-01-26 12:23:33 -05:00
dandds
bfc0692063
Remove multiple job failure tables in favor of one.
...
We don't know yet how useful the job failue tables will be, and
maintaining multiple failure tables--one for every entity involved in
CSP provisioning--is burdensome. This collapses them all into a single
table that track the entity type (environment, portfolio, etc.) and the
entity ID. That way we can construct queries when needed to find task
results.
2020-01-25 15:50:01 -05:00
tomdds
d81d953c31
Fix formatting and some typos
2020-01-14 16:36:16 -05:00
Philip Kalinsky
69bd2f43a5
provision portfolio state machine
2020-01-14 16:36:16 -05:00
leigh-mil
17864cc060
Add migration to change environment_roles role column from string to
...
enum type.
Fix tests and functions affected by the column type change.
2020-01-14 13:12:29 -05:00
leigh-mil
e64900245d
Remove baseline_info column from environments table
2019-10-30 14:46:33 -04:00
richard-dds
184b58d5d2
Remove AWSCloudProvider
2019-10-28 13:55:34 -04:00
richard-dds
6ea17bb4f8
Merge create_environment and create_environment_baseline
2019-10-28 13:39:40 -04:00
richard-dds
1bce0a1f01
Revert user deletion job
2019-10-14 16:51:19 -04:00
leigh-mil
10c16cc4ef
Send email after environment is provisioned
2019-10-10 09:45:01 -04:00
richard-dds
ed7bc33e44
Set deleted flag in do_delete_user
2019-10-08 16:42:25 -04:00
richard-dds
343e989de8
Update comments
2019-10-08 16:42:25 -04:00
richard-dds
2ad30b5fa4
Implement dispatch_delete_user job
2019-10-08 16:42:25 -04:00
richard-dds
00f76ae5af
Add delete user job
2019-10-08 16:42:25 -04:00
richard-dds
d60cc58dee
Merge pull request #1083 from dod-ccpo/user-provisioning-task
...
Add create_user task
2019-09-24 13:50:17 -04:00
dandds
0d45be68d5
Adjust environment claim test to avoid race condition
2019-09-23 14:53:18 -04:00
richard-dds
399cf74ed6
Only provision EnvironmentRoles with active ApplicationRoles
2019-09-23 11:30:06 -04:00
richard-dds
4eee06ba44
Add test for do_provision_user
2019-09-20 11:43:19 -04:00
richard-dds
2fca542100
Implement dispatch query for provision_user
2019-09-20 11:37:18 -04:00
richard-dds
d1e146f577
Add create_user task
2019-09-19 16:56:36 -04:00
richard-dds
6c7667b7fc
Filter out deleted envs in dispatch_create_environment
2019-09-19 14:24:39 -04:00
richard-dds
2fc7a0d460
Add small sleep to claims test to avoid random failures
2019-09-18 16:34:56 -04:00