add test for ipv4 literal

This commit is contained in:
elbehery 2021-04-13 15:41:43 +02:00
parent 5b52146614
commit 124b71bd11

View File

@ -189,6 +189,14 @@ func TestIPV6VolumeSource(t *testing.T) {
doTestPlugin(t, volume.NewSpecFromVolume(vol))
}
func TestIPV4VolumeSource(t *testing.T) {
vol := &v1.Volume{
Name: "vol1",
VolumeSource: v1.VolumeSource{NFS: &v1.NFSVolumeSource{Server: "127.0.0.1", Path: "/somepath", ReadOnly: false}},
}
doTestPlugin(t, volume.NewSpecFromVolume(vol))
}
func TestPluginPersistentVolume(t *testing.T) {
vol := &v1.PersistentVolume{
ObjectMeta: metav1.ObjectMeta{