- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 73 for volumetest (0.17 sec)
-
pkg/volume/metrics_block_linux_test.go
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package volume_test import ( "testing" . "k8s.io/kubernetes/pkg/volume" volumetest "k8s.io/kubernetes/pkg/volume/testing" ) func TestGetMetricsBlockInvalid(t *testing.T) { // TODO: Enable this on Windows once support VolumeMode=Block is added.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 18 09:43:07 UTC 2022 - 1.6K bytes - Viewed (0) -
pkg/volume/metrics_statfs_test.go
limitations under the License. */ package volume_test import ( "os" "testing" utiltesting "k8s.io/client-go/util/testing" . "k8s.io/kubernetes/pkg/volume" volumetest "k8s.io/kubernetes/pkg/volume/testing" ) func TestGetMetricsStatFS(t *testing.T) { metrics := NewMetricsStatFS("") actual, err := metrics.GetMetrics() expected := &Metrics{} if !volumetest.MetricsEqualIgnoreTimestamp(actual, expected) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 02 23:01:59 UTC 2017 - 2K bytes - Viewed (0) -
pkg/volume/portworx/portworx_test.go
return nil } func TestPlugin(t *testing.T) { tmpDir, err := utiltesting.MkTmpdir("portworxVolumeTest") if err != nil { t.Fatalf("can't make a temp dir: %v", err) } defer os.RemoveAll(tmpDir) plugMgr := volume.VolumePluginMgr{} plugMgr.InitPlugins(ProbeVolumePlugins(), nil /* prober */, volumetest.NewFakeVolumeHost(t, tmpDir, nil, nil))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 21 02:17:04 UTC 2021 - 7.4K bytes - Viewed (0) -
pkg/kubelet/kubelet_volumes_test.go
assert.NoError(t, volumetest.VerifyWaitForAttachCallCount( 1 /* expectedWaitForAttachCallCount */, testKubelet.volumePlugin)) assert.NoError(t, volumetest.VerifyZeroAttachCalls(testKubelet.volumePlugin)) assert.NoError(t, volumetest.VerifyMountDeviceCallCount( 1 /* expectedMountDeviceCallCount */, testKubelet.volumePlugin)) assert.NoError(t, volumetest.VerifySetUpCallCount(
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 17 16:53:28 UTC 2023 - 20.4K bytes - Viewed (0) -
pkg/volume/nfs/nfs_test.go
plug, err := plugMgr.FindPersistentPluginByName("kubernetes.io/nfs") if err != nil { t.Errorf("Can't find the plugin by name") } if !volumetest.ContainsAccessMode(plug.GetAccessModes(), v1.ReadWriteOnce) || !volumetest.ContainsAccessMode(plug.GetAccessModes(), v1.ReadOnlyMany) || !volumetest.ContainsAccessMode(plug.GetAccessModes(), v1.ReadWriteMany) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 01 15:56:32 UTC 2022 - 9K bytes - Viewed (0) -
pkg/volume/metrics_du_test.go
See the License for the specific language governing permissions and limitations under the License. */ package volume_test import ( "os" "path/filepath" "testing" utiltesting "k8s.io/client-go/util/testing" . "k8s.io/kubernetes/pkg/volume" volumetest "k8s.io/kubernetes/pkg/volume/testing" ) // TestMetricsDuGetCapacity tests that MetricsDu can read disk usage // for path
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 20 14:49:03 UTC 2023 - 3.9K bytes - Viewed (0) -
pkg/volume/local/local_test.go
defer os.RemoveAll(tmpDir) modes := plug.GetAccessModes() if !volumetest.ContainsAccessMode(modes, v1.ReadWriteOnce) { t.Errorf("Expected AccessModeType %q", v1.ReadWriteOnce) } if volumetest.ContainsAccessMode(modes, v1.ReadWriteMany) { t.Errorf("Found AccessModeType %q, expected not", v1.ReadWriteMany) } if volumetest.ContainsAccessMode(modes, v1.ReadOnlyMany) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 08 10:53:39 UTC 2023 - 22.5K bytes - Viewed (0) -
pkg/volume/flexvolume/flexvolume_test.go
t.Fatalf("Could not initialize plugins: %v", err) } plugin, err := plugMgr.FindPersistentPluginByName("kubernetes.io/fakeAttacher") if err != nil { t.Fatalf("Can't find the plugin by name") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 01 15:56:32 UTC 2022 - 6.8K bytes - Viewed (0) -
pkg/volume/iscsi/iscsi_util_test.go
} } func TestClonedIfaceShowError(t *testing.T) { fakeExec := &testingexec.FakeExec{} scripts := []volumetest.CommandScript{ { Cmd: "iscsiadm", Args: []string{"-m", "iface", "-I", "", "-o", "show"}, Output: "test error", ReturnCode: 1, }, } volumetest.ScriptCommands(fakeExec, scripts) fakeExec.ExactOrder = true plugins := []volume.VolumePlugin{ &iscsiPlugin{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 18 09:43:07 UTC 2022 - 14.5K bytes - Viewed (0) -
pkg/kubelet/volumemanager/volume_manager_test.go
attachablePlug := &volumetest.FakeVolumePlugin{ PluginName: "fake", Host: nil, CanSupportFn: func(spec *volume.Spec) bool { return (spec.PersistentVolume != nil && spec.PersistentVolume.Spec.RBD != nil) || (spec.Volume != nil && spec.Volume.RBD != nil) }, } unattachablePlug := &volumetest.FakeVolumePlugin{ PluginName: "unattachable-fake-plugin",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 14.1K bytes - Viewed (0)