diff --git a/.github/workflows/run-e2e-tests.yml b/.github/workflows/run-e2e-tests.yml index 4723052..55f1259 100644 --- a/.github/workflows/run-e2e-tests.yml +++ b/.github/workflows/run-e2e-tests.yml @@ -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" diff --git a/deploy/environments/local/values.yaml.gotmpl b/deploy/environments/local/values.yaml.gotmpl index 4f52459..179d249 100644 --- a/deploy/environments/local/values.yaml.gotmpl +++ b/deploy/environments/local/values.yaml.gotmpl @@ -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" diff --git a/deploy/helmfile.yaml b/deploy/helmfile.yaml index cc5e165..5d1913b 100644 --- a/deploy/helmfile.yaml +++ b/deploy/helmfile.yaml @@ -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 @@ -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 diff --git a/deploy/values-invoices-api.yaml.gotmpl b/deploy/values-invoices-api.yaml.gotmpl new file mode 100644 index 0000000..7f9906a --- /dev/null +++ b/deploy/values-invoices-api.yaml.gotmpl @@ -0,0 +1,8 @@ +image: + tag: "latest" + +extraConfigMapEnvVars: + ASPNETCORE_HTTP_PORTS: "80" + AuthenticationOptions__PublicSigningKey: "{{ .Values.publicSigningKey }}" + ExternalDepsUrls__EmployeesApiRootUrl: "{{ .Values.employeesServiceUrl }}" + ExternalDepsUrls__TimeApiRootUrl: "{{ .Values.timeServiceUrl }}"