-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into LTD-5688-productionise-footnotes-endpoint
- Loading branch information
Showing
17 changed files
with
392 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ swig | |
imagemagick | ||
poppler-utils | ||
libsqlite3-dev | ||
postgresql-client-14 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ builder: | |
version: 0.3.339 | ||
packs: | ||
- acodeninja/install | ||
- acodeninja/psql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
web: SWIG_LIB=/home/vcap/deps/0/apt/usr/share/swig4.0 CFLAGS=-I/home/vcap/deps/1/python/include/python3.9.18m pip3 install endesive==1.5.9 && python manage.py migrate && gunicorn --worker-class gevent -c api/conf/gconfig.py -b 0.0.0.0:$PORT api.conf.wsgi | ||
web-dbt-platform: python manage.py migrate && gunicorn -c api/conf/gconfig-dbt-platform.py -b 0.0.0.0:$PORT api.conf.wsgi | ||
dump-and-anonymise: python manage.py dump_and_anonymise | ||
rebuild-search-index: python manage.py search_index --rebuild -f | ||
seed-internal-users: ./bin/seed_internal_users.sh | ||
celeryworker: celery -A api.conf worker -l info | ||
celeryscheduler: celery -A api.conf beat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
api/data_workspace/v2/tests/bdd/scenarios/goods_on_licences.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
@db | ||
Feature: Goods On Licences | ||
|
||
Scenario: Issue a licence | ||
Given a standard application with the following goods: | ||
| id | name | | ||
| 61d193bd-a4d8-4f7d-8c07-1ac5e03ea2c7 | A controlled good | | ||
And a draft licence with attributes: | ||
| name | value | | ||
| id | 962b4948-b87a-42fe-9c2b-61bdefd9cd21 | | ||
When the licence is issued | ||
Then the `goods_on_licences` table has the following rows: | ||
| good_id | licence_id | | ||
| 61d193bd-a4d8-4f7d-8c07-1ac5e03ea2c7 | 962b4948-b87a-42fe-9c2b-61bdefd9cd21 | | ||
|
||
Scenario: NLR goods not on licence | ||
Given a standard application with the following goods: | ||
| id | name | | ||
| aa9736f9-48f5-4d44-ace9-e4b8738591a5 | Another controlled good | | ||
| 56f562f6-b554-4bb3-923b-8695ab15afca | An NLR good | | ||
And the goods are assessed by TAU as: | ||
| id | Control list entry | Report summary prefix | Report summary subject | | ||
| aa9736f9-48f5-4d44-ace9-e4b8738591a5 | ML5b | accessories for | network analysers | | ||
| 56f562f6-b554-4bb3-923b-8695ab15afca | NLR | | | | ||
And a draft licence with attributes: | ||
| name | value | | ||
| id | 847a9a03-c35f-4036-ab8c-8b58d13482ab | | ||
When the licence is issued | ||
Then the `goods_on_licences` table has the following rows: | ||
| good_id | licence_id | | ||
| aa9736f9-48f5-4d44-ace9-e4b8738591a5 | 847a9a03-c35f-4036-ab8c-8b58d13482ab | | ||
|
||
Scenario: Draft licences | ||
Given a standard application with the following goods: | ||
| id | name | | ||
| f7c674b1-cd5e-4a6d-a1f5-d6ab58149d05 | A controlled good 2 | | ||
And a draft licence with attributes: | ||
| name | value | | ||
| id | 297e89b9-fc93-4f38-be46-c2ab38914007 | | ||
Then the `goods_on_licences` table is empty | ||
|
||
Scenario: Draft applications | ||
Given a draft standard application with the following goods: | ||
| id | name | | ||
| 8262dcf7-d932-4a33-978d-b5aa8a7878ee | A controlled good 3 | | ||
And a draft licence with attributes: | ||
| name | value | | ||
| id | 2078827b-6d67-406c-becc-41c423720cfc | | ||
Then the `goods_on_licences` table is empty |
33 changes: 33 additions & 0 deletions
33
api/data_workspace/v2/tests/bdd/scenarios/goods_ratings.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@db | ||
Feature: goods_ratings Table | ||
|
||
Scenario: Draft application | ||
Given a draft standard application | ||
Then the `goods_ratings` table is empty | ||
|
||
Scenario: Submitted application | ||
Given a draft standard application | ||
And the application has the following goods: | ||
| id | name | | ||
| 8fa8dc3c-c103-42f5-ba94-2d9098b8821d | A controlled good | | ||
| 4dad5dc6-38ef-4bf7-99fd-0c6bc5d86048 | An NLR good | | ||
When the application is submitted | ||
Then the `goods_ratings` table is empty | ||
|
||
Scenario: Assess application | ||
Given a draft standard application | ||
And the application has the following goods: | ||
| id | name | | ||
| 8fa8dc3c-c103-42f5-ba94-2d9098b8821d | A controlled good | | ||
| 118a003c-7191-4a2c-97e9-be243722cbb2 | Another controlled good | | ||
| 4dad5dc6-38ef-4bf7-99fd-0c6bc5d86048 | An NLR good | | ||
When the application is submitted | ||
And the goods are assessed by TAU as: | ||
| id | Control list entry | Report summary prefix | Report summary subject | | ||
| 8fa8dc3c-c103-42f5-ba94-2d9098b8821d | ML22a | accessories for | composite laminates | | ||
| 118a003c-7191-4a2c-97e9-be243722cbb2 | PL9010 | | composite laminates | | ||
| 4dad5dc6-38ef-4bf7-99fd-0c6bc5d86048 | NLR | | | | ||
Then the `goods_ratings` table has the following rows: | ||
| good_id | rating | | ||
| 8fa8dc3c-c103-42f5-ba94-2d9098b8821d | ML22a | | ||
| 118a003c-7191-4a2c-97e9-be243722cbb2 | PL9010 | |
Oops, something went wrong.