[] Adding validation to snapshot class defaulting

This commit is contained in:
Shawn Hurley
2022-03-25 11:19:24 -04:00
parent 3a396906eb
commit eeb9897c67
5 changed files with 153 additions and 23 deletions

View File

@@ -208,7 +208,7 @@ func TestAdmitVolumeSnapshotV1beta1(t *testing.T) {
Operation: tc.operation,
},
}
response := admitSnapshot(review)
response := admitSnapshot(review, nil)
shouldAdmit := response.Allowed
msg := response.Result.Message
@@ -391,7 +391,7 @@ func TestAdmitVolumeSnapshotV1(t *testing.T) {
Operation: tc.operation,
},
}
response := admitSnapshot(review)
response := admitSnapshot(review, nil)
shouldAdmit := response.Allowed
msg := response.Result.Message
@@ -541,7 +541,7 @@ func TestAdmitVolumeSnapshotContentV1beta1(t *testing.T) {
Operation: tc.operation,
},
}
response := admitSnapshot(review)
response := admitSnapshot(review, nil)
shouldAdmit := response.Allowed
msg := response.Result.Message
@@ -685,7 +685,7 @@ func TestAdmitVolumeSnapshotContentV1(t *testing.T) {
Operation: tc.operation,
},
}
response := admitSnapshot(review)
response := admitSnapshot(review, nil)
shouldAdmit := response.Allowed
msg := response.Result.Message
@@ -701,3 +701,7 @@ func TestAdmitVolumeSnapshotContentV1(t *testing.T) {
})
}
}
func TestAdmitVolumeSnapshotClassV1beta1(t *testing.T) {
}