Skip to content

Commit

Permalink
update integration tests to include config file
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmeenkaur committed Apr 24, 2024
1 parent 82c2290 commit 7d96b66
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tools/integration_tests/interrupt/interrupt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"path"
"testing"

"github.com/googlecloudplatform/gcsfuse/v2/internal/config"
"github.com/googlecloudplatform/gcsfuse/v2/tools/integration_tests/util/mounting/dynamic_mounting"
"github.com/googlecloudplatform/gcsfuse/v2/tools/integration_tests/util/mounting/only_dir_mounting"
"github.com/googlecloudplatform/gcsfuse/v2/tools/integration_tests/util/mounting/static_mounting"
Expand Down Expand Up @@ -48,8 +49,15 @@ func TestMain(m *testing.M) {
setup.SetUpTestDirForTestBucketFlag()

// Set up flags to run tests on.
// Not setting config file explicitly with 'create-empty-file: false' as it is default.
flags := [][]string{{"--implicit-dirs=true", "--ignore-interrupts"}}
mountConfig := config.MountConfig{
FileSystemConfig: config.FileSystemConfig{IgnoreInterrupts: true},
LogConfig: config.LogConfig{
Severity: config.TRACE,
LogRotateConfig: config.DefaultLogRotateConfig(),
},
}
flags := [][]string{
{"--config-file=" + setup.YAMLConfigFile(mountConfig, "config.yaml")}}

successCode := static_mounting.RunTests(flags, m)

Expand Down
1 change: 1 addition & 0 deletions tools/integration_tests/run_e2e_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ TEST_DIR_PARALLEL=(
"read_large_files"
"explicit_dir"
"implicit_dir"
"interrupt"
)
# These tests never become parallel as it is changing bucket permissions.
TEST_DIR_NON_PARALLEL_GROUP_1=(
Expand Down

0 comments on commit 7d96b66

Please sign in to comment.