-
Notifications
You must be signed in to change notification settings - Fork 95
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
e2e: enable more than one pod in one test case #1645
e2e: enable more than one pod in one test case #1645
Conversation
abcf6a1
to
3434d4f
Compare
The case is tested against self managed cluster on ibmcloud. Test log as below.
|
test/e2e/common_suite_test.go
Outdated
@@ -445,3 +445,38 @@ func doTestPodVMwithAnnotationsLargerCPU(t *testing.T, assert CloudAssert) { | |||
} | |||
newTestCase(t, "PodVMwithAnnotationsLargerCPU", assert, "Failed to Create PodVM with Annotations Larger CPU").withPod(pod).withInstanceTypes(testInstanceTypes).withCustomPodState(v1.PodPending).run() | |||
} | |||
|
|||
func doTestExtraPods(t *testing.T, assert CloudAssert) { |
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.
All the other test cases are have one test content related name, can we change this function name to
doTestServiceAndExtraPod
test/e2e/ibmcloud_test.go
Outdated
@@ -502,6 +502,13 @@ func TestIBMCreateNginxDeployment(t *testing.T) { | |||
doTestNginxDeployment(t, assert) | |||
} | |||
|
|||
func TestExtraPods(t *testing.T) { |
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.
All the other test cases are have one test content related name, can we change this function name to
TestServiceAndExtraPod
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.
And this test is good for other providers, so maybe we add this test case in other provider test file too, at last include it in the libvirt_test.go, TestLibvirtServiceAndExtraPod
?
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.
How about rename to TestPodToServiceCommunication
?
667242a
to
c37d3b7
Compare
test/e2e/ibmcloud_test.go
Outdated
@@ -502,6 +502,13 @@ func TestIBMCreateNginxDeployment(t *testing.T) { | |||
doTestNginxDeployment(t, assert) | |||
} | |||
|
|||
func TestExtraPods(t *testing.T) { |
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.
How about rename to TestPodToServiceCommunication
?
f31994e
to
e74e0e6
Compare
Enable test framework to support more than one pod in one test case Fixes: confidential-containers#16 Signed-off-by: Yuan Yuan Wang <wyuany@cn.ibm.com>
e74e0e6
to
57b8fd7
Compare
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
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, thanks @wyuany
Enable test framework to support more than one pod in one test case
Fixes: #16