Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix integration test naming for UC Files #868

Merged
merged 3 commits into from
Mar 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions internal/files_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (buf hashable) Hash() uint32 {
return h.Sum32()
}

func TestAccUCUploadAndDownloadFilesAPI(t *testing.T) {
func TestUcAccFilesUploadAndDownload(t *testing.T) {
ctx, w, volume := setupUCVolume(t)

filePath := RandomName("/Volumes/" + volume.CatalogName + "/" + volume.SchemaName + "/" + volume.Name + "/files-")
Expand Down Expand Up @@ -57,7 +57,7 @@ func TestAccUCUploadAndDownloadFilesAPI(t *testing.T) {
assert.Equal(t, "abcd", string(contents))
}

func TestAccUCDeleteFile(t *testing.T) {
func TestUcAccFilesDelete(t *testing.T) {
ctx, w, volume := setupUCVolume(t)

filePath := RandomName("/Volumes/" + volume.CatalogName + "/" + volume.SchemaName + "/" + volume.Name + "/file-")
Expand All @@ -67,7 +67,7 @@ func TestAccUCDeleteFile(t *testing.T) {
require.NoError(t, err)
}

func TestAccUCGetMetadata(t *testing.T) {
func TestUcAccFilesGetMetadata(t *testing.T) {
ctx, w, volume := setupUCVolume(t)

filePath := RandomName("/Volumes/" + volume.CatalogName + "/" + volume.SchemaName + "/" + volume.Name + "/file-")
Expand All @@ -81,14 +81,14 @@ func TestAccUCGetMetadata(t *testing.T) {
assert.NotEmpty(t, metadata.LastModified)
}

func TestAccUCCreateDirectory(t *testing.T) {
func TestUcAccFilesCreateDirectory(t *testing.T) {
ctx, w, volume := setupUCVolume(t)

directoryPath := RandomName("/Volumes/" + volume.CatalogName + "/" + volume.SchemaName + "/" + volume.Name + "/directory-")
require.NoError(t, createDirectory(t, ctx, w, directoryPath))
}

func TestAccUCListDirectoryContents(t *testing.T) {
func TestUcAccFilesListDirectoryContents(t *testing.T) {
ctx, w, volume := setupUCVolume(t)

directoryPath := RandomName("/Volumes/" + volume.CatalogName + "/" + volume.SchemaName + "/" + volume.Name + "/directory-")
Expand All @@ -102,7 +102,7 @@ func TestAccUCListDirectoryContents(t *testing.T) {
assert.Len(t, response, 3)
}

func TestAccUCDeleteDirectory(t *testing.T) {
func TestUcAccFilesDeleteDirectory(t *testing.T) {
ctx, w, volume := setupUCVolume(t)

directoryPath := RandomName("/Volumes/" + volume.CatalogName + "/" + volume.SchemaName + "/" + volume.Name + "/directory-")
Expand All @@ -112,7 +112,7 @@ func TestAccUCDeleteDirectory(t *testing.T) {
assert.NoError(t, err)
}

func TestAccUCGetDirectoryMetadata(t *testing.T) {
func TestUcAccFilesGetDirectoryMetadata(t *testing.T) {
ctx, w, volume := setupUCVolume(t)

directoryPath := RandomName("/Volumes/" + volume.CatalogName + "/" + volume.SchemaName + "/" + volume.Name + "/directory-")
Expand Down
Loading