-
Notifications
You must be signed in to change notification settings - Fork 37
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 attachedcluater e2e test #594
Conversation
✅ Deploy Preview for kurator-dev canceled.
|
02be637
to
ccad971
Compare
Signed-off-by: LiZhenCheng9527 <[email protected]>
Signed-off-by: LiZhenCheng9527 <[email protected]>
Signed-off-by: LiZhenCheng9527 <[email protected]>
@hzxuzhonghu This PR is ready for review. |
hack/e2e-test/install.sh
Outdated
KUBECONFIG_PATH=${KUBECONFIG_PATH:-"${HOME}/.kube"} | ||
MAIN_KUBECONFIG=${MAIN_KUBECONFIG:-"${KUBECONFIG_PATH}/kurator-host.config"} | ||
export KUBECONFIG=${MAIN_KUBECONFIG} | ||
VERSION=${VERSION:-"0.95.27"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change to using the commit id
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dis you test it?
REPO_ROOT=$(git rev-parse --show-toplevel) | ||
DIR="$(cd "$(dirname "$0")" && pwd)" | ||
|
||
"$DIR"/attachedcluster.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use go code to write it
You can see the details of the e2e test in the CI of this PR. |
Signed-off-by: LiZhenCheng9527 <[email protected]>
Signed-off-by: LiZhenCheng9527 <[email protected]>
Signed-off-by: LiZhenCheng9527 <[email protected]>
Signed-off-by: LiZhenCheng9527 <[email protected]>
Signed-off-by: LiZhenCheng9527 <[email protected]>
Signed-off-by: LiZhenCheng9527 <[email protected]>
e2e/attachedcluster_test.go
Outdated
) | ||
|
||
ginkgo.BeforeEach(func() { | ||
namespace = "default" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: use a random namespace for each test
}, | ||
} | ||
fleet := resources.NewFleet(namespace, fleetname, clusters) | ||
fleetCreateErr := resources.CreateFleet(kuratorClient, fleet) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't we need to check fleet status?
clusterv1a1 "kurator.dev/kurator/pkg/apis/cluster/v1alpha1" | ||
) | ||
|
||
var _ = ginkgo.Describe("[AttachedClusters] AttachedClusters testing", func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to cleanup the resources created per test
Signed-off-by: LiZhenCheng9527 <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hzxuzhonghu 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 |
What type of PR is this?
What this PR does / why we need it:
add attachedcluater e2e test
Which issue(s) this PR fixes:
a part of #436