Skip to content

Commit b5a274a

Browse files
Make it easier to build INT env file.
1 parent 2ef3bd1 commit b5a274a

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

scripts/env/app/pds.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ get_pds_url() {
99
return 0
1010
;;
1111
int)
12-
echo "https://int.api.service.nhs.uk/personal-demographics/FHIR/R4/"
12+
# echo "https://int.api.service.nhs.uk/personal-demographics/FHIR/R4/" # TODO [GPCAPIM-395]: Remove stubbing
13+
echo "stub"
1314
return 0
1415
;;
1516
*)
@@ -25,7 +26,8 @@ get_pds_api_token() {
2526
case "$env" in
2627
int)
2728
if [[ -f "$secret_file" ]]; then
28-
cat "$secret_file"
29+
# cat "$secret_file" # TODO [GPCAPIM-395]: Remove stubbing
30+
echo ""
2931
return 0
3032
else
3133
printf "Warning: $secret_file not found." >&2
@@ -45,7 +47,8 @@ get_pds_api_secret() {
4547
case "$env" in
4648
int)
4749
if [[ -f "$secret_file" ]]; then
48-
cat "$secret_file"
50+
# cat "$secret_file" # TODO [GPCAPIM-395]: Remove stubbing
51+
echo ""
4952
return 0
5053
else
5154
printf "Warning: $secret_file not found." >&2
@@ -65,7 +68,8 @@ get_pds_api_kid() {
6568
case "$env" in
6669
int)
6770
if [[ -f "$secret_file" ]]; then
68-
cat "$secret_file"
71+
# cat "$secret_file" # TODO [GPCAPIM-395]: Remove stubbing
72+
echo ""
6973
return 0
7074
else
7175
printf "Warning: $secret_file not found." >&2

scripts/env/app/sds.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ get_sds_url() {
99
return 0
1010
;;
1111
int)
12-
echo "https://int.api.service.nhs.uk/spine-directory/FHIR/R4"
12+
# echo "https://int.api.service.nhs.uk/spine-directory/FHIR/R4" # TODO [GPCAPIM-396]: Remove stubbing
13+
echo "stub"
1314
return 0
1415
;;
1516
*)
@@ -25,7 +26,8 @@ get_sds_api_token() {
2526
case "$env" in
2627
int)
2728
if [[ -f "$secret_file" ]]; then
28-
cat "$secret_file"
29+
# cat "$secret_file" # TODO [GPCAPIM-396]: Remove stubbing
30+
echo ""
2931
return 0
3032
else
3133
printf "Warning: $secret_file not found." >&2

0 commit comments

Comments
 (0)