-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: ii2day <ji.li@daocloud.io>
- Loading branch information
ii2day
committed
Jun 26, 2023
1 parent
d606747
commit 11daec2
Showing
12 changed files
with
1,160 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# E2E Cases for AppHttpHealth | ||
|
||
| Case ID | Title | Priority | Smoke | Status | Other | | ||
|---------|-----------------------------------------------------------------------------|----------|-------|--------|-------------| | ||
| A00001 | Successfully http testing appHttpHealth method GET case | p1 | | done | | | ||
| A00002 | Failed http testing appHttpHealth due to status code case | p1 | | done | | | ||
| A00003 | Failed http testing appHttpHealth due to delay case | p1 | | done | | | ||
| A00004 | Successfully https testing appHttpHealth method GET case | p1 | | done | | | ||
| A00005 | Failed https testing appHttpHealth due to tls case | p1 | | done | | | ||
| A00006 | Successfully http testing appHttpHealth method PUT case | p1 | | done | | | ||
| A00007 | Successfully http testing appHttpHealth method POST With Body case | p1 | | done | | | ||
| A00008 | Successfully http testing appHttpHealth method HEAD case | p1 | | done | | | ||
| A00009 | Successfully http testing appHttpHealth method PATCH case | p1 | | done | | | ||
| A000010 | Successfully http testing appHttpHealth method OPTIONS case | p1 | | done | | | ||
| A000011 | After QPS is specified, the number of requests meets the requirements case | p1 | | done | | | ||
| A000012 | Successfully http testing appHttpHealth due to success rate case | p1 | | done | | | ||
| A000013 | Successfully https testing appHttpHealth method GET Protocol Http2 case | p1 | | done | | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# E2E Cases for IP NetReach | ||
|
||
| Case ID | Title | Priority | Smoke | Status | Other | | ||
|--------|-------------------------------------------------------------|----------|-------|--------|-------------| | ||
| B00001 | Successfully dual testing netReach case | p1 | | done | | | ||
| B00002 | Successfully ipv4 testing netReach case | p1 | | done | | | ||
| B00003 | Successfully ipv6 testing netReach case | p1 | | done | | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# E2E Cases for IP schedule | ||
|
||
| Case ID | Title | Priority | Smoke | Status | Other | | ||
|---------|-------------------------------------------------|----------|-------|--------|-------------| | ||
| C00001 | Successfully testing NetReach crontab case | p1 | | done | | | ||
| C00002 | Successfully testing AppHttpHealth crontab case | p1 | | done | | | ||
| C00003 | Successfully testing NetReach sample case | p1 | | done | | | ||
| C00004 | Successfully testing AppHttpHealth sample case | p1 | | done | | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// Copyright 2023 Authors of kdoctor-io | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package apphttphealth_test | ||
|
||
import ( | ||
kdoctor_v1beta1 "github.com/kdoctor-io/kdoctor/pkg/k8s/apis/kdoctor.io/v1beta1" | ||
"github.com/kdoctor-io/kdoctor/test/e2e/common" | ||
. "github.com/onsi/ginkgo/v2" | ||
. "github.com/onsi/gomega" | ||
e2e "github.com/spidernet-io/e2eframework/framework" | ||
"k8s.io/apimachinery/pkg/runtime" | ||
"testing" | ||
) | ||
|
||
func TestNetReach(t *testing.T) { | ||
RegisterFailHandler(Fail) | ||
RunSpecs(t, "AppHttpHealth Suite") | ||
} | ||
|
||
var frame *e2e.Framework | ||
var testSvcIP string | ||
var testPodIPs = make([]string, 0) | ||
var httpPort = 80 | ||
var httpsPort = 443 | ||
|
||
var _ = BeforeSuite(func() { | ||
defer GinkgoRecover() | ||
var e error | ||
frame, e = e2e.NewFramework(GinkgoT(), []func(*runtime.Scheme) error{kdoctor_v1beta1.AddToScheme}) | ||
Expect(e).NotTo(HaveOccurred()) | ||
|
||
testSvc, e := frame.GetService(common.KDoctorTestSVCName, common.KDoctorTestDSNamespace) | ||
Expect(e).NotTo(HaveOccurred(), "get kdoctor test service") | ||
testSvcIP = testSvc.Spec.ClusterIP | ||
GinkgoWriter.Println("get test service ip %v", testSvcIP) | ||
|
||
testDS, e := frame.GetDaemonSet(common.KDoctorAgentDSName, common.KDoctorAgentNS) | ||
Expect(e).NotTo(HaveOccurred(), "get kdoctor test daemonset") | ||
|
||
testPods, e := frame.GetDaemonSetPodList(testDS) | ||
Expect(e).NotTo(HaveOccurred(), "get kdoctor test pod list") | ||
|
||
for _, v := range testPods.Items { | ||
testPodIPs = append(testPodIPs, v.Status.PodIP) | ||
} | ||
GinkgoWriter.Println("get test pod ips %v", testPodIPs) | ||
|
||
}) |
Oops, something went wrong.