-
Notifications
You must be signed in to change notification settings - Fork 339
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
Refactor Controller Test #585
Refactor Controller Test #585
Conversation
/hold |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Kartik494 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
8177a29
to
204cfdf
Compare
8d275fb
to
504b7e0
Compare
@@ -3114,6 +3100,35 @@ func TestProvisionFromSnapshot(t *testing.T) { | |||
} | |||
} | |||
|
|||
func (s *testcase) notNilSnapshotStatusTest(notNilSnapshotStatusTest bool) { |
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.
Hi @msau42 , i think added a constructor could be useful while i changing removing if-else statement and using a method instead. i am facing error when fetching expectedpvSpec
property from testcase struct.
/assign @mauriciopoppe |
t.Run(k, func(t *testing.T) { | ||
runFSTypeProvisionTest(t, k, tc, requestedBytes, driverName, "" /* no migration */) | ||
runFSTypeProvisionTest(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.
for every k, testcase := range testcase
we're trying to test testcase
however I don't see any reference to it here
@@ -2190,7 +2194,12 @@ func runFSTypeProvisionTest(t *testing.T, k string, tc provisioningFSTypeTestcas | |||
} | |||
} | |||
|
|||
func runProvisionTest(t *testing.T, tc provisioningTestcase, requestedBytes int64, provisionDriverName, supportsMigrationFromInTreePluginName string, testProvision bool) { | |||
func runProvisionTest(t *testing.T) *provisioningTestcase { | |||
var k string |
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 of these local variables aren't set, if set they should be coming from the current testcase
@Kartik494: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
@Kartik494: this needs a rebase. @mauriciopoppe also had some review comments for which I don't see a response. |
@pohly Sorry for the delay i was busy with some other work. I will update this PR and addressed the comments ASAP. |
@Kartik494: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #376
Special notes for your reviewer:
Does this PR introduce a user-facing change?: