mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
add test for ipv4 literal
This commit is contained in:
parent
5b52146614
commit
124b71bd11
@ -189,6 +189,14 @@ func TestIPV6VolumeSource(t *testing.T) {
|
|||||||
doTestPlugin(t, volume.NewSpecFromVolume(vol))
|
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) {
|
func TestPluginPersistentVolume(t *testing.T) {
|
||||||
vol := &v1.PersistentVolume{
|
vol := &v1.PersistentVolume{
|
||||||
ObjectMeta: metav1.ObjectMeta{
|
ObjectMeta: metav1.ObjectMeta{
|
||||||
|
Loading…
Reference in New Issue
Block a user