timflannagan / rukpak

Rukpak runs in a Kubernetes cluster and defines an API for installing cloud native bundle content
Apache License 2.0
0 stars 0 forks source link

Add test cases. #55

Open github-actions[bot] opened 2 years ago

github-actions[bot] commented 2 years ago

https://github.com/timflannagan/rukpak/blob/6a85dab6a45117569f77dd5a9b9c13c67df3bd5b/internal/util/util_test.go#L20


package util

import (
    "reflect"
    "testing"

    rukpakv1alpha1 "github.com/operator-framework/rukpak/api/v1alpha1"
)

func TestCheckExistingBundlesMatchesTemplate(t *testing.T) {
    type args struct {
        existingBundles       []*rukpakv1alpha1.Bundle
        desiredBundleTemplate *rukpakv1alpha1.BundleTemplate
    }
    tests := []struct {
        name string
        args args
        want *rukpakv1alpha1.Bundle
    }{
        // TODO: Add test cases.
    }
    for _, tt := range tests {
        t.Run(tt.name, func(t *testing.T) {
            if got := CheckExistingBundlesMatchesTemplate(tt.args.existingBundles, tt.args.desiredBundleTemplate); !reflect.DeepEqual(got, tt.want) {
                t.Errorf("CheckExistingBundlesMatchesTemplate() = %v, want %v", got, tt.want)
            }
        })
    }
}
github-actions[bot] commented 2 years ago

This issue has become stale because it has been open 60 days with no activity. The maintainers of this repo will remove this label during issue triage or it will be removed automatically after an update. Adding the lifecycle/frozen label will cause this issue to ignore lifecycle events.