Skip to content

Commit

Permalink
fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
CrocBomber committed Aug 4, 2023
1 parent caa3866 commit 4d3b0f2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/dynamic_provisioning.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var _ = Describe("[ebs-csi-e2e] [single-az] Dynamic Provisioning", func() {
ns *v1.Namespace
ebsDriver driver.PVTestDriver
volumeTypes = awscloud.ValidVolumeTypes
fsTypes = []string{ebscsidriver.FSTypeXfs}
fsTypes = []string{ebscsidriver.FSTypeExt4} // Поменял xfs на ext4 из-за https://jira.croc.ru/browse/C2DEVEL-13229?focusedCommentId=6268126
)

BeforeEach(func() {
Expand Down Expand Up @@ -452,7 +452,7 @@ var _ = Describe("[ebs-csi-e2e] [single-az] Snapshot", func() {
BeforeEach(func() {
cs = f.ClientSet
var err error
snapshotrcs, err = restClient(testsuites.SnapshotAPIGroup, testsuites.APIVersionv1beta1)
snapshotrcs, err = restClient(testsuites.SnapshotAPIGroup, testsuites.APIVersionv1)
if err != nil {
Fail(fmt.Sprintf("could not get rest clientset: %v", err))
}
Expand Down
5 changes: 3 additions & 2 deletions tests/e2e/pre_provsioning.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ var _ = Describe("[ebs-csi-e2e] [single-az] Pre-Provisioned", func() {
}
volumeID = disk.VolumeID
diskSize = fmt.Sprintf("%dGi", defaultDiskSize)
snapshotrcs, err = restClient(testsuites.SnapshotAPIGroup, testsuites.APIVersionv1beta1)
snapshotrcs, err = restClient(testsuites.SnapshotAPIGroup, testsuites.APIVersionv1)
if err != nil {
Fail(fmt.Sprintf("could not get rest clientset: %v", err))
}
Expand Down Expand Up @@ -158,7 +158,8 @@ var _ = Describe("[ebs-csi-e2e] [single-az] Pre-Provisioned", func() {
Cmd: "echo 'hello world' >> /mnt/test-1/data && grep 'hello world' /mnt/test-1/data && sync",
Volumes: []testsuites.VolumeDetails{
{
ClaimSize: diskSize,
VolumeType: defaultVoluemType, // без этой строки ebs-plugin ругался: Unknown VolumeType
ClaimSize: diskSize,
VolumeMount: testsuites.VolumeMountDetails{
NameGenerate: "test-volume-",
MountPathGenerate: "/mnt/test-",
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/testsuites/specs.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ const (
const (
VolumeSnapshotKind = "VolumeSnapshot"
VolumeSnapshotContentKind = "VolumeSnapshotContent"
SnapshotAPIVersion = "snapshot.storage.k8s.io/v1beta1"
APIVersionv1beta1 = "v1beta1"
SnapshotAPIVersion = "snapshot.storage.k8s.io/v1"
APIVersionv1 = "v1"
)

var (
Expand Down

0 comments on commit 4d3b0f2

Please sign in to comment.