Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/run-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -265,3 +265,24 @@ jobs:
"AUTH_API_ROOT_URL": "http://localhost:30090/api/auth"
"API_ROOT_URL": "http://localhost:30090/api/time"
"SHOULD_USE_FAKE_EXTERNAL_DEPENDENCIES": "false"

- name: Checkout Invoices API
uses: actions/checkout@v4
with:
repository: TourmalineCore/inner-circle-invoice-api

- name: Karate Run Against Invoices API
run: |
java -jar /tmp/karate.jar .
env:
"AUTH_SLYTHERINE_TENANT_DRACO_MALFOY_LOGIN_WITH_ALL_PERMISSIONS": "malfoy@tourmalinecore.com"
"AUTH_SLYTHERINE_TENANT_DRACO_MALFOY_PASSWORD_WITH_ALL_PERMISSIONS": "Serpens1!"
"AUTH_SLYTHERINE_TENANT_SEVERUS_SNAPE_LOGIN_WITH_ALL_PERMISSIONS": "snape@tourmalinecore.com"
"AUTH_SLYTHERINE_TENANT_SEVERUS_SNAPE_PASSWORD_WITH_ALL_PERMISSIONS": "Silencio1!"
"AUTH_RAVENCLAW_TENANT_CHO_CHANG_LOGIN_WITH_ALL_PERMISSIONS": "chang@tourmalinecore.com"
"AUTH_RAVENCLAW_TENANT_CHO_CHANG_PASSWORD_WITH_ALL_PERMISSIONS": "Reparo1!"
"AUTH_SLYTHERINE_TENANT_GREGORY_GOYLE_LOGIN_WITHOUT_PERMISSIONS": "goyle@tourmalinecore.com"
"AUTH_SLYTHERINE_TENANT_GREGORY_GOYLE_PASSWORD_WITHOUT_PERMISSIONS": "Crucio1!"
"AUTH_API_ROOT_URL": "http://localhost:30090/api/auth"
"API_ROOT_URL": "http://localhost:30090/api/invoices"
"SHOULD_USE_FAKE_EXTERNAL_DEPENDENCIES": "false"
1 change: 1 addition & 0 deletions deploy/environments/local/values.yaml.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ authUiServiceUrl: "http://inner-circle-auth-ui-nginx:30090"
accountsServiceUrl: "http://inner-circle-accounts-api-nginx:30090"
authServiceUrl: "http://auth-api-nginx:30090/api/auth"
employeesServiceUrl: "http://inner-circle-employees-api-nginx:30090"
timeServiceUrl: "http://inner-circle-time-api-aspnet-core:30090/api"
mailSmtpHost: "tobemodified"
mailSmtpPort: "tobemodified"
fromEmail: "tobemodified"
Expand Down
21 changes: 20 additions & 1 deletion deploy/helmfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,25 @@ releases:
- values.yaml.gotmpl
- values-time-api.yaml.gotmpl

- name: inner-circle-invoices-api
labels:
app: inner-circle-invoices-api
wait: true
chart: bitnami/aspnet-core
version: 4.4.7
# it won't work anyway until ingress controller is created
# thus we wait for it to be ready first
needs:
- ingress-nginx
- inner-circle-employees-api
- inner-circle-time-api
- postgresql
values:
# https://helmfile.readthedocs.io/en/latest/#loading-remote-environment-values-files
- git::https://github.com/TourmalineCore/inner-circle-invoices-api.git@/ci/values.yaml?ref=master
- values.yaml.gotmpl
- values-invoices-api.yaml.gotmpl

- name: inner-circle-email-sender
labels:
app: inner-circle-email-sender
Expand Down Expand Up @@ -356,7 +375,7 @@ releases:
# thus we wait for it to be ready first
needs:
- ingress-nginx
# - inner-circle-invoices-api
- inner-circle-invoices-api
values:
# https://helmfile.readthedocs.io/en/latest/#loading-remote-environment-values-files
- git::https://github.com/TourmalineCore/inner-circle-invoices-ui.git@/ci/values.yaml?ref=master
Expand Down
8 changes: 8 additions & 0 deletions deploy/values-invoices-api.yaml.gotmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
image:
tag: "latest"

extraConfigMapEnvVars:
ASPNETCORE_HTTP_PORTS: "80"
AuthenticationOptions__PublicSigningKey: "{{ .Values.publicSigningKey }}"
ExternalDepsUrls__EmployeesApiRootUrl: "{{ .Values.employeesServiceUrl }}"
ExternalDepsUrls__TimeApiRootUrl: "{{ .Values.timeServiceUrl }}"
Loading