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 #30

Merged
merged 4 commits into from
Aug 30, 2023
Merged

Add e2e tests #30

merged 4 commits into from
Aug 30, 2023

Conversation

ialidzhikov
Copy link
Member

@ialidzhikov ialidzhikov commented Aug 17, 2023

How to categorize this PR?

/area testing
/kind enhancement

What this PR does / why we need it:
This PR adds 2 e2e tests. The plan forward is to execute these e2e tests in prow on PR.
The added e2e tests:

  • create Shoot, enable and disable the registry-cache extension, delete Shoot
  • create Shoot with registry-cache extension enabled, hibernate Shoot, reconcile Shoot, delete Shoot

Which issue(s) this PR fixes:
Part of #3

Special notes for your reviewer:
N/A

Release note:

The registry-cache extension does now have e2e tests that use Gardener's kind based local setup.

@gardener-prow gardener-prow bot added area/testing Testing related kind/enhancement Enhancement, improvement, extension cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. labels Aug 17, 2023
@gardener-prow gardener-prow bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Aug 17, 2023
@ialidzhikov ialidzhikov force-pushed the enh/e2e-tests branch 2 times, most recently from 989d79f to 74cf72b Compare August 18, 2023 06:30
@gardener-prow gardener-prow bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 22, 2023
`make extension-up` fails with:
```
Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: resource mapping not found for name: "gardener-extension-registry-cache-admission" namespace: "garden" from "": no matches for kind "PodDisruptionBudget" in version "policy/v1beta1"
```
It seems to work also without the `https://` prefix but to be aligned with the upstream docs/examples (ref https://github.com/containerd/containerd/blob/main/docs/hosts.md) and provider-local (ref https://github.com/gardener/gardener/blob/v1.77.0/pkg/provider-local/webhook/controlplane/ensurer.go#L167-L174) I decided to add the prefix for the registry-cache as well.
@gardener-prow gardener-prow bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 22, 2023
@ialidzhikov
Copy link
Member Author

/approve

@gardener-prow
Copy link
Contributor

gardener-prow bot commented Aug 25, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ialidzhikov

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gardener-prow gardener-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 25, 2023
Copy link
Contributor

@dimitar-kostadinov dimitar-kostadinov left a comment

Choose a reason for hiding this comment

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

/lgtm

@gardener-prow gardener-prow bot added the lgtm Indicates that a PR is ready to be merged. label Aug 30, 2023
@gardener-prow
Copy link
Contributor

gardener-prow bot commented Aug 30, 2023

LGTM label has been added.

Git tree hash: 743cf1a36fd4ec70f1714f0a49347fe5d91fd05e

@gardener-prow gardener-prow bot merged commit c9416a1 into gardener:main Aug 30, 2023
5 checks passed
@ialidzhikov ialidzhikov deleted the enh/e2e-tests branch August 30, 2023 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/testing Testing related cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. kind/enhancement Enhancement, improvement, extension lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants