Merge pull request #125477 from my-git9/namespaceformat

Modify some error words
This commit is contained in:
Kubernetes Prow Robot 2024-10-17 17:17:17 +01:00 committed by GitHub
commit c6ad6fa951
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -21984,15 +21984,15 @@ func TestCrossNamespaceSource(t *testing.T) {
expectedFail: true,
claimSpec: pvcSpecWithCrossNamespaceSource(nil, "UnsupportedKind", &goodNS, goodName, false),
}, {
testName: "Feature gate enabled and xns DataSourceRef with invalid namspace specified",
testName: "Feature gate enabled and xns DataSourceRef with invalid namespace specified",
expectedFail: true,
claimSpec: pvcSpecWithCrossNamespaceSource(&snapAPIGroup, snapKind, &badNS, goodName, false),
}, {
testName: "Feature gate enabled and xns DataSourceRef with nil namspace specified",
testName: "Feature gate enabled and xns DataSourceRef with nil namespace specified",
expectedFail: false,
claimSpec: pvcSpecWithCrossNamespaceSource(&snapAPIGroup, snapKind, nil, goodName, false),
}, {
testName: "Feature gate enabled and xns DataSourceRef with empty namspace specified",
testName: "Feature gate enabled and xns DataSourceRef with empty namespace specified",
expectedFail: false,
claimSpec: pvcSpecWithCrossNamespaceSource(&snapAPIGroup, snapKind, &emptyNS, goodName, false),
}, {

View File

@ -1315,7 +1315,7 @@ func teardownSampleDevicePluginOrFail(ctx context.Context, f *framework.Framewor
ginkgo.By(fmt.Sprintf("Delete sample device plugin pod %s/%s", pod.Namespace, pod.Name))
err := f.ClientSet.CoreV1().Pods(pod.Namespace).Delete(ctx, pod.Name, deleteOptions)
framework.ExpectNoError(err, "Failed to delete Pod %v in Namspace %v", pod.Name, pod.Namespace)
framework.ExpectNoError(err, "Failed to delete Pod %v in Namespace %v", pod.Name, pod.Namespace)
waitForAllContainerRemoval(ctx, pod.Name, pod.Namespace)
}