2a79b6ea6d
test jobs update the last before COMPLETED state
2020-03-09 11:18:23 -04:00
f9a45e68bb
tenant admin pw reset use secrets lib, csp calls do not return the result data class
2020-03-06 10:50:06 -05:00
16cf5dfe00
step in state machine to reset tenant admin password to random value
2020-03-05 12:57:56 -05:00
leigh-mil
c2814416fb
Update atst to atat
2020-03-04 11:51:15 -05:00
leigh-mil
337ad57f26
Add function for generating a unique tenant name
2020-03-03 07:30:20 -05:00
4ed1240140
csp disable user mock_csp test update call
2020-02-27 13:13:32 -05:00
b99d41e4a0
mock csp disable user test correct variable names. formatting.
2020-02-27 13:11:02 -05:00
a977beb7f6
mock csp disable user test correct variable names
2020-02-27 13:11:02 -05:00
90bf69afd3
rename csp method disable_user arg
2020-02-27 13:11:02 -05:00
7a49afafd9
azure disable_user update url, assignment id
2020-02-27 13:11:02 -05:00
ea87fa7308
azure disable user call
2020-02-27 13:11:02 -05:00
leigh-mil
2247657c32
Add tests for build_subscription_payload()
2020-02-26 16:05:16 -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
graham-dds
dd19a12381
Replace csp data factory with to_dictionary method
2020-02-21 14:31:29 -05:00
graham-dds
bb886dbe0f
Add tests for portfolio.initial_clin_dict property
...
In doing this, fixed a bug on the clin.is_active property
2020-02-21 14:31:29 -05:00
graham-dds
d46ed2b5b4
Specify clin sorting in TO <> CLIN relationship
...
This also removes the sorted_clins property on the task_order model
2020-02-21 14:31:29 -05:00
tomdds
be53a1fd1a
Merge branch 'staging' into state-machine-unit-tests
2020-02-20 10:21:41 -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
aa2d353260
Add query for finding new CLINs that have not been sent.
...
Use fixtures in tests.
2020-02-19 15:59:24 -05:00
1f58f40cb0
state machine unit tests csp data factory
2020-02-19 14:43:56 -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
tomdds
f956b41f98
Fully set up portfolio fixture for state machine tests
...
Also fixes some formatting problems
2020-02-19 10:40:06 -05:00
graham-dds
237848c2c9
Azure cloud method to get a url to the calculator
2020-02-18 16:15:07 -05:00
daf4a0ba68
state machine unit tests
2020-02-18 15:56:01 -05:00
tomdds
b7d044b3b1
Merge branch 'staging' into state-machine-error-handling
2020-02-18 13:08:33 -05:00
graham-dds
108f65f928
Use pendulum for datetime operations when possible
...
Currently, we use both Python's built-in datetime library and Pendulum
to do datetime operations. For the sake of consistency, we should try to
stick to one library for datetimes. We could have used either, but
Pendulum has a more ergonomic API, so I decided to go with it when
possible.
The places where were we didn't / couldn't replace datetime are:
- checking instances of datetimes. Pendulum's objects are subclasses of
python native datetime objects, so it's still useful to import
datetime in those cases of using is_instance()
- WTForms date validators expect datetime style string formats --
Pendulum has its own format for formatting/ parsing strings. As such,
our custom validator DateRange needs to use datetime.stptime() to
account for this format.
2020-02-17 10:38:52 -05:00
e41fd63c2d
state machine fix failing test
2020-02-13 14:00:47 -05:00
077c68ce87
state machine test corrected
2020-02-13 13:22:28 -05:00
89d56d55a1
merge staging
2020-02-13 12:49:29 -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
88b3df7906
csp provider tests requests.HTTPError exceptions
2020-02-12 21:32:48 -05:00
4569066024
state machine last CREATED state transition to COMPLETED
2020-02-12 09:31:52 -05:00
efe042fac3
merge staging. update create_create_billing_owner azure csp tests
2020-02-11 16:57:37 -05:00
dandds
285021de7c
Merge branch 'staging' into billing-owner
2020-02-11 16:01:27 -05:00
3163c73a0d
resolve merge conflict
2020-02-11 15:40:15 -05:00
41e2ae5253
azure csp tests catch exceptions resulting from raised requests exceptions
2020-02-11 15:32:47 -05:00
dandds
ceb8cdc198
update state machine enum
2020-02-11 15:18:45 -05:00
dandds
facaae5cb1
Merge branch 'staging' into billing-owner
2020-02-11 14:50:11 -05:00
graham-dds
e553a673b1
Tests for total_obligated_funds portfolio prop
2020-02-11 14:27:29 -05:00
graham-dds
52489b6bca
Add upcoming_obligated_funds property to portfolio
2020-02-11 14:27:29 -05:00
441e81ba8d
azure csp unit tests WIP
2020-02-11 14:11:11 -05:00
dandds
10014e696d
Merge branch 'staging' into environment-role-creation
2020-02-11 12:12:45 -05:00