Skip to content

Commit c6e7e42

Browse files
committed
chore: remove useless tests after deployment
1 parent d863e3a commit c6e7e42

File tree

8 files changed

+2
-159
lines changed

8 files changed

+2
-159
lines changed

.github/workflows/nightly.yml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -124,29 +124,6 @@ jobs:
124124
push: true
125125
tags: ghcr.io/onelitefeathernet/feedback-fusion-dashboard:nightly
126126

127-
integration:
128-
needs: [docker]
129-
name: dockerize integration test
130-
runs-on: ubuntu-latest
131-
steps:
132-
- name: Checkout Sources
133-
uses: actions/checkout@v4
134-
135-
- name: Login into repository
136-
uses: docker/login-action@v3
137-
with:
138-
registry: ghcr.io
139-
username: ${{ github.actor }}
140-
password: ${{ secrets.GITHUB_TOKEN }}
141-
142-
- name: Build and push Docker image
143-
uses: docker/build-push-action@v6
144-
with:
145-
context: .
146-
push: true
147-
file: tests/integration/Dockerfile
148-
tags: ghcr.io/onelitefeathernet/feedback-fusion-integration:nightly
149-
150127
docs:
151128
needs: [docker]
152129
name: docs

.github/workflows/release.yml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -129,34 +129,6 @@ jobs:
129129
push: true
130130
tags: ghcr.io/onelitefeathernet/feedback-fusion-dashboard:${{env.VERSION}},ghcr.io/onelitefeathernet/feedback-fusion-dashboard:latest
131131

132-
integration:
133-
needs: [docker]
134-
name: dockerize integration test
135-
runs-on: ubuntu-latest
136-
steps:
137-
- name: Checkout Sources
138-
uses: actions/checkout@v4
139-
140-
- name: Extract version
141-
run: |
142-
VERSION=$(grep '^version = ' Cargo.toml | sed -E 's/version = "(.*)"/\1/')
143-
echo "VERSION=$VERSION" >> $GITHUB_ENV
144-
145-
- name: Login into repository
146-
uses: docker/login-action@v3
147-
with:
148-
registry: ghcr.io
149-
username: ${{ github.actor }}
150-
password: ${{ secrets.GITHUB_TOKEN }}
151-
152-
- name: Build and push Docker image
153-
uses: docker/build-push-action@v6
154-
with:
155-
context: .
156-
push: true
157-
file: tests/integration/Dockerfile
158-
tags: ghcr.io/onelitefeathernet/feedback-fusion-integration:${{env.VERSION}},ghcr.io/onelitefeathernet/feedback-fusion-integration:latest
159-
160132
docs:
161133
needs: [docker]
162134
name: docs

charts/feedback-fusion/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ spec:
4040
protocol: TCP
4141
env:
4242
- name: RUST_LOG
43-
value: INFO
43+
value: {{ .Values.feedbackFusion.log }}
4444
- name: FEEDBACK_FUSION_CONFIG
4545
value: /etc/config/config.yaml
4646
livenessProbe:

charts/feedback-fusion/templates/tests/integration-tests.yaml

Lines changed: 0 additions & 17 deletions
This file was deleted.

charts/feedback-fusion/values.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@ tolerations: []
9393
affinity: {}
9494

9595
feedbackFusion:
96+
log: INFO
9697
config:
9798
# with config.yaml as key
9899
secret: feedback-fusion-config
99-
100-
testSecret: feedback-fusion-integration-test
101-

docs/docs/deployment/docker.md

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -32,32 +32,3 @@ Afterwards start the application:
3232
```sh
3333
docker compose up -d
3434
```
35-
36-
## Verifying Deployment
37-
38-
To verify your deployment you can now run the dockerized integration tests using `ghcr.io/onelitefeathernet/feedback-fusion-integrtion:<version>`.
39-
The image requires the following environment variables to be set:
40-
41-
| Key | Description |
42-
|-----------------|-----------------------------------------------------|
43-
| OIDC_PROVIDER | URL of the OIDC provider |
44-
| OIDC_CLIENT_ID | The client ID |
45-
| OIDC_CLIENT_SECRET | The client secret |
46-
| GRPC_ENDPOINT | The endpoint of the deployed application |
47-
48-
### Run the tests
49-
50-
```sh
51-
docker run --network <network> \
52-
-e OIDC_PROVIDER=<oidc_provider> \
53-
-e OIDC_CLIENT_ID=<oidc_client_id> \
54-
-e OIDC_CLIENT_SECRET=<oidc_client_secret> \
55-
-e GRPC_ENDPOINT=<grpc_endpoint>
56-
--name feedback-fusion-integration-test \
57-
--rm \
58-
ghcr.io/onelitefeathernet/feedback-fusion-integrtion:<version>
59-
```
60-
61-
### On finish
62-
63-
You should now reset your database as the integration test does not delete everything it created.

docs/docs/deployment/helm.md

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -69,38 +69,3 @@ helm install feedback-fusion feedback-fusion/feedback-fusion --wait --atomic
6969
```
7070

7171
Your instance should now be up and running :)
72-
73-
## Verifying Deployment with Helm Test
74-
75-
To verify the deployment of the Helm chart, you can use the `helm test` command. However, before running the test, a secret must be created with the name `feedback-fusion-integration-test`. Alternatively, the name of another secret can be set via the Helm value `feedbackFusion.testSecret`.
76-
77-
The secret should contain the following values:
78-
79-
| Key | Description |
80-
|-----------------|-----------------------------------------------------|
81-
| OIDC_PROVIDER | URL of the OIDC provider |
82-
| OIDC_CLIENT_ID | The client ID |
83-
| OIDC_CLIENT_SECRET | The client secret |
84-
| GRPC_ENDPOINT | The endpoint of the deployed application |
85-
86-
### Creating the Secret
87-
88-
To create the secret, you can use the following `kubectl` command:
89-
90-
```sh
91-
kubectl create -n <namespace> secret generic feedback-fusion-integration-test \
92-
--from-literal=OIDC_PROVIDER=<oidc_provider_url> \
93-
--from-literal=OIDC_CLIENT_ID=<client_id> \
94-
--from-literal=OIDC_CLIENT_SECRET=<client_secret> \
95-
--from-literal=GRPC_ENDPOINT=<grpc_endpoint>
96-
```
97-
98-
### Run the tests
99-
100-
```sh
101-
helm test -n <namespace> <release>
102-
```
103-
104-
### On finish
105-
106-
You should now reset your database as the integration test does not delete everything it created.

tests/integration/Dockerfile

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)