Skip to content
This repository was archived by the owner on Feb 20, 2024. It is now read-only.

Commit ac88bc3

Browse files
authored
Merge pull request #29 from Virtual-Finland-Development/fix/local-prh-mock-testbed-gw
fix: on local dev use the local prh-mock
2 parents dd9db10 + e39bd58 commit ac88bc3

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

.env.local

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# @TODO: needs a local testbed product gw router sim
22
USER_PROFILE_PRODUCTIZER_ENDPOINT=http://host.docker.internal:5001/productizer
33
USER_STATUS_INFO_PRODUCTIZER_ENDPOINT=http://host.docker.internal:5747/productizers
4+
PRH_MOCK_PRODUCTIZER_ENDPOINT=http://host.docker.internal:5059
45

56
# All good for these endpoints
67
USERS_API_ENDPOINT_ORIGIN=http://host.docker.internal:5001

src/lib/api_app/src/api/routes/testbed/productizers/mod.rs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ use utils::environment::get_stage;
66

77
pub mod figure;
88
pub mod job;
9+
pub mod non_listed_company;
910
pub mod person;
1011
pub mod user;
11-
pub mod non_listed_company;
1212

1313
/**
1414
* Parses the authorization headers from the input request
@@ -69,6 +69,18 @@ fn build_data_product_uri(data_product: &str, data_source: &str) -> String {
6969
testbed_base_url = env::var("USER_STATUS_INFO_PRODUCTIZER_ENDPOINT")
7070
.expect("USER_STATUS_INFO_PRODUCTIZER_ENDPOINT must be set");
7171
}
72+
"draft/NSG/Agent/LegalEntity/NonListedCompany/Establishment/Write" => {
73+
testbed_base_url = env::var("PRH_MOCK_PRODUCTIZER_ENDPOINT")
74+
.expect("PRH_MOCK_PRODUCTIZER_ENDPOINT must be set");
75+
}
76+
"draft/NSG/Agent/LegalEntity/NonListedCompany/BeneficialOwners" => {
77+
testbed_base_url = env::var("PRH_MOCK_PRODUCTIZER_ENDPOINT")
78+
.expect("PRH_MOCK_PRODUCTIZER_ENDPOINT must be set");
79+
}
80+
"draft/NSG/Agent/LegalEntity/NonListedCompany/SignatoryRights" => {
81+
testbed_base_url = env::var("PRH_MOCK_PRODUCTIZER_ENDPOINT")
82+
.expect("PRH_MOCK_PRODUCTIZER_ENDPOINT must be set");
83+
}
7284
_ => {}
7385
}
7486
}

0 commit comments

Comments
 (0)