Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

chore(deps): Bump sigs.k8s.io/e2e-framework from 0.0.7 to 0.1.0 #66

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 8, 2023

Bumps sigs.k8s.io/e2e-framework from 0.0.7 to 0.1.0.

Release notes

Sourced from sigs.k8s.io/e2e-framework's releases.

v0.1.0

The e2e-framework continues to evolve with useful features for code writers looking for tooling to test their components running in Kubernetes. As with previous releases, members of the community contributed the lion share of this release.

Version number change

After nearly 2 years of being in development, this release will adopt the minor version number, starting with v0.1.0, to indicate the relative stability and continued adoption of the project.

Run commands inside pods

New in this release is the ability to programmatically launch commands that get executed inside a pod. This a useful feature that allows e2e-framework test writers to test code from within the pod itself. For instance, the following uses the ExecInPod method call to check connectivity from whithin a running pod.

func TestExecPod(t *testing.T) {
    deploymentName := "test-deployment"
    containerName := "curl"
    feature := features.New("Call external service").
        Assess("check connectivity to wikipedia.org main page", func(ctx context.Context, t *testing.T, c *envconf.Config) context.Context {
            client, _ := c.NewClient()
            pods := &corev1.PodList{}
            err = client.Resources(c.Namespace()).List(context.TODO(), pods)
            if err != nil || pods.Items == nil {
                t.Error("error while getting pods", err)
            }
            var stdout, stderr bytes.Buffer
            podName := pods.Items[0].Name
            command := []string{"curl", "-I", "https://en.wikipedia.org/wiki/Main_Page"}
        err := client.Resources().ExecInPod(c.Namespace(), podName, containerName, command, &stdout, &stderr)
        if err != nil {
            t.Log(stderr.String())
            t.Fatal(err)
        }
    httpStatus := strings.Split(stdout.String(), "\n")[0]
    if !strings.Contains(httpStatus, "200") {
        t.Fatal("Couldn't connect to en.wikipedia.org")
    }
    return ctx
}).Feature()

testEnv.Test(t, feature)

}

For further detail, see the example on ExecInPod.

Support for Kubernetes-SIGs/Kubetest2

Another feature introduced in this release is the support for running e2e-framework tests using the kubetest2. Assuming that your environment has the kubetest2 binary and KinD installed on the OS path, the following example will launch kind, run the e2e-framework tests found in the specified package directory, and shutdown kind when done.

kubetest2 kind --up --down           \
     --test=e2e-framework --         \
     --packages ./cluster            \
</tr></table> 

... (truncated)

Commits
  • 8c683de Merge pull request #184 from vladimirvivien/add-harsha-approver
  • 502dfc6 Merge pull request #168 from vladimirvivien/kubetest2-integration
  • 597cd48 Adding harshanarayana as review/approver
  • d07ad9b E2E-Framework kubetest2 support
  • 840f9d5 Merge pull request #183 from kubernetes-sigs/dependabot/go_modules/sigs.k8s.i...
  • 7bcfe38 Bump sigs.k8s.io/controller-runtime from 0.14.0 to 0.14.1
  • f849980 Merge pull request #182 from kubernetes-sigs/dependabot/go_modules/sigs.k8s.i...
  • 5866511 Bump sigs.k8s.io/controller-runtime from 0.13.1 to 0.14.0
  • a81b7e5 Merge pull request #181 from cpanato/update-k8x-deps
  • bda45f0 update k8s dependencies
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Feb 8, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #66 (f0b3242) into main (3b30da4) will not change coverage.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@           Coverage Diff           @@
##             main      #66   +/-   ##
=======================================
  Coverage   67.94%   67.94%           
=======================================
  Files           5        5           
  Lines         234      234           
=======================================
  Hits          159      159           
  Misses         57       57           
  Partials       18       18           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Bumps [sigs.k8s.io/e2e-framework](https://github.com/kubernetes-sigs/e2e-framework) from 0.0.7 to 0.1.0.
- [Release notes](https://github.com/kubernetes-sigs/e2e-framework/releases)
- [Changelog](https://github.com/kubernetes-sigs/e2e-framework/blob/main/RELEASE.md)
- [Commits](kubernetes-sigs/e2e-framework@v0.0.7...v0.1.0)

---
updated-dependencies:
- dependency-name: sigs.k8s.io/e2e-framework
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/go_modules/sigs.k8s.io/e2e-framework-0.1.0 branch from f0b3242 to 1a5dcba Compare February 8, 2023 07:46
@embano1 embano1 merged commit f18c4dd into main Feb 8, 2023
@embano1 embano1 deleted the dependabot/go_modules/sigs.k8s.io/e2e-framework-0.1.0 branch February 8, 2023 07:51
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants