Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add e2e tests for our VSHN services #267

Merged
merged 5 commits into from
Mar 18, 2024
Merged

Add e2e tests for our VSHN services #267

merged 5 commits into from
Mar 18, 2024

Conversation

TheBigLee
Copy link
Member

Checklist

  • The PR has a meaningful title. It will be used to auto generate the
    changelog.
    The PR has a meaningful description that sums up the change. It will be
    linked in the changelog.
  • PR contains a single logical change (to build a better changelog).
  • Categorize the PR by adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog.
  • Link this PR to related issues or PRs.

@TheBigLee TheBigLee added the enhancement New feature or request label Nov 30, 2023
@TheBigLee TheBigLee changed the base branch from master to feature/mariadb November 30, 2023 15:16
@TheBigLee TheBigLee closed this Nov 30, 2023
@TheBigLee TheBigLee reopened this Nov 30, 2023
@TheBigLee TheBigLee force-pushed the feature/e2e_tests branch 2 times, most recently from 2f2adbe to 07b4bff Compare December 3, 2023 15:54
@TheBigLee TheBigLee marked this pull request as ready for review December 3, 2023 15:56
@TheBigLee TheBigLee marked this pull request as draft December 3, 2023 15:59
@TheBigLee TheBigLee force-pushed the feature/mariadb branch 3 times, most recently from 4a9efd9 to 4416f34 Compare December 5, 2023 10:01
Base automatically changed from feature/mariadb to master December 5, 2023 10:04
@TheBigLee TheBigLee marked this pull request as ready for review December 5, 2023 10:23
@TheBigLee TheBigLee force-pushed the feature/e2e_tests branch 3 times, most recently from 5768d2d to d278800 Compare December 5, 2023 15:06
Copy link
Contributor

@Kidswiss Kidswiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to be a kuttl test with wrong identations.

tests/e2e/postgresql/00-assert.yaml Outdated Show resolved Hide resolved
@wejdross wejdross force-pushed the feature/e2e_tests branch 3 times, most recently from bfda383 to d216fce Compare March 13, 2024 08:39
@wejdross wejdross force-pushed the feature/e2e_tests branch 2 times, most recently from c351a0d to c10989a Compare March 13, 2024 08:41
Signed-off-by: Nicolas Bigler <[email protected]>
Copy link
Contributor

@Kidswiss Kidswiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some things to adjust.

@@ -424,6 +424,12 @@ local sgCluster = {
},
postgres: {
version: '',
extensions: [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this, there's already a fix for this in the composition functions.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deleted that section

kind: TestSuite
testDirs:
- ./test/e2e/
namespace: widera-testing
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we probably want a more generic name here.

Like vshn-appcat-e2e-tests

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated that section

tests/tests.mk Show resolved Hide resolved
restartPolicy: Never
containers:
- name: connect
image: docker.io/appuio/oc:v4.14
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This image does not work on Macs with Apple silicon: no match for platform in manifest: not found. Not sure why though, as other x86 images usually work with no problem.

However, as you only need curl, maybe some other image would be better suited here? Maybe some small alpine image with curl installed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree here. I also use a mac and a lighter image is welcomed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

switched to another image also mentioned issue with that image on our #appuio-cloud RC channel

zugao
zugao previously requested changes Mar 15, 2024
Copy link
Contributor

@zugao zugao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small things, rest is good.

@@ -6,7 +6,7 @@ parameters:
version: 17.7.1
mariadb:
source: https://charts.bitnami.com/bitnami
version: 10.1.3
version: 11.6.2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we update the chart version in an e2e PR?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because e2e tests found an issue in old charts :D

restartPolicy: Never
containers:
- name: connect
image: docker.io/appuio/oc:v4.14
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree here. I also use a mac and a lighter image is welcomed.

tests/e2e/keycloak/01-connect.yaml Show resolved Hide resolved
@wejdross wejdross self-assigned this Mar 15, 2024
@wejdross
Copy link
Member

@Kidswiss @zugao I just added new directory and file .githooks/pre-commit - it's small and simple python script to prevent user from commiting code when keycloak docker registry credentials are present in code, it's copied into .git/hooks directory whenever someone start compilation of golden files. Unfortunately this is the best protection we can apply because git doesn't like setting such script automatically

Copy link
Contributor

@Kidswiss Kidswiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wejdross wejdross requested a review from zugao March 18, 2024 08:07
Copy link
Contributor

@zugao zugao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wejdross wejdross dismissed zugao’s stale review March 18, 2024 09:05

already accepted

@wejdross wejdross merged commit e1d28e6 into master Mar 18, 2024
30 checks passed
@wejdross wejdross deleted the feature/e2e_tests branch March 18, 2024 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants