Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Nov 19, 2024
1 parent 9a0f705 commit ce67528
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions internal/handlers/check_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ func TestCheckMyWork(t *testing.T) {
permissions os.FileMode
expectAccess bool
}{
{"/tmp/test_readable.txt", 0644, true}, // Readable globally
{"/tmp/test_writable.txt", 0666, true}, // Writable globally
{"/tmp/test_private.txt", 0600, false}, // Not accessible globally
{"/tmp/test_readable.txt", 0644, true}, // Readable globally
{"/tmp/test_writable.txt", 0666, true}, // Writable globally
{"/tmp/test_private.txt", 0600, false}, // Not accessible globally
}

// Create test files
Expand Down Expand Up @@ -124,16 +124,6 @@ func TestCheckMyWork(t *testing.T) {
statusCode: http.StatusOK,
response: `{"D2":"File does not exist in islandora_staging"}`,
},
{
name: "Unreadable file",
method: http.MethodPost,
body: [][]string{
{"Title", "Object Model", "Full Title", "File Path"},
{"foo", "bar", "foo", "/tmp/file/does/not/exist"},
},
statusCode: http.StatusOK,
response: `{"D2":"File does not exist in islandora_staging"}`,
},
{
name: "Missing file",
method: http.MethodPost,
Expand Down

0 comments on commit ce67528

Please sign in to comment.