Documentation ¶
Index ¶
- Constants
- func AreBothMountedDirectoryAndTestBucketFlagsSet() bool
- func BinFile() string
- func CleanMntDir()
- func CleanUpDir(directoryPath string)
- func CleanupDirectoryOnGCS(directoryPathOnGCS string)
- func CompareFileContents(t *testing.T, fileName string, fileContent string)
- func CreateTempFile() string
- func DynamicBucketMounted() string
- func ExecuteTest(m *testing.M) (successCode int)
- func ExecuteTestForFlagsSet(flags []string, m *testing.M) (successCode int)
- func ExitWithFailureIfBothTestBucketAndMountedDirectoryFlagsAreNotSet()
- func GenerateRandomString(length int) string
- func GetBucketAndObjectBasedOnTypeOfMount(object string) (string, string)
- func IgnoreTestIfIntegrationTestFlagIsSet(t *testing.T)
- func LogAndExit(s string)
- func LogFile() string
- func MntDir() string
- func MountGCSFuseWithGivenMountFunc(flags []string, mountFunc func([]string) error)
- func MountedDirectory() string
- func OnlyDirMounted() string
- func ParseSetUpFlags()
- func RemoveBinFileCopiedForTesting()
- func RunScriptForTestData(args ...string)
- func RunTestsForMountedDirectoryFlag(m *testing.M)
- func SaveLogFileInCaseOfFailure(successCode int)
- func SbinFile() string
- func SetBinFile(binFileValue string)
- func SetDynamicBucketMounted(dynamicBucketValue string)
- func SetLogFile(logFileValue string)
- func SetMntDir(mntDirValue string)
- func SetOnlyDirMounted(onlyDirValue string)
- func SetTestDir(testDirValue string)
- func SetUpLogDirForTestDirTests(logDirName string) (logDir string)
- func SetUpTestDir() error
- func SetUpTestDirForTestBucketFlag()
- func SetupTestDirectory(testDirName string) string
- func TestBucket() string
- func TestDir() string
- func TestInstalledPackage() bool
- func UnMount() error
- func UnMountAndThrowErrorInFailure(flags []string, successCode int)
- func UnMountBucket()
- func UnmountGCSFuseAndDeleteLogFile(rootDir string)
- func ValidateLogDirForMountedDirTests(logDirName string) (logDir string)
- func YAMLConfigFile(config config.MountConfig, fileName string) (filePath string)
Constants ¶
const ( BufferSize = 100 FilePermission_0600 = 0600 DirPermission_0755 = 0755 Charset = "abcdefghijklmnopqrstuvwxyz0123456789" )
Variables ¶
This section is empty.
Functions ¶
func AreBothMountedDirectoryAndTestBucketFlagsSet ¶
func AreBothMountedDirectoryAndTestBucketFlagsSet() bool
func CleanUpDir ¶
func CleanUpDir(directoryPath string)
CleanUpDir cleans up the content in given directory.
func CleanupDirectoryOnGCS ¶
func CleanupDirectoryOnGCS(directoryPathOnGCS string)
CleanupDirectoryOnGCS cleans up the object/directory path passed in parameter.
func CompareFileContents ¶
func CreateTempFile ¶
func CreateTempFile() string
func DynamicBucketMounted ¶
func DynamicBucketMounted() string
DynamicBucketMounted returns the name of the bucket in case of dynamic mount.
func ExecuteTest ¶
func ExecuteTestForFlagsSet ¶
func ExitWithFailureIfBothTestBucketAndMountedDirectoryFlagsAreNotSet ¶
func ExitWithFailureIfBothTestBucketAndMountedDirectoryFlagsAreNotSet()
func GenerateRandomString ¶
func LogAndExit ¶
func LogAndExit(s string)
func MountedDirectory ¶
func MountedDirectory() string
func OnlyDirMounted ¶
func OnlyDirMounted() string
OnlyDirMounted returns the name of the directory mounted in case of only dir mount.
func ParseSetUpFlags ¶
func ParseSetUpFlags()
func RemoveBinFileCopiedForTesting ¶
func RemoveBinFileCopiedForTesting()
Removing bin file after testing.
func RunScriptForTestData ¶
func RunScriptForTestData(args ...string)
Run the shell script to prepare the testData in the specified bucket. First argument will be name of scipt script
func SaveLogFileInCaseOfFailure ¶
func SaveLogFileInCaseOfFailure(successCode int)
func SetBinFile ¶
func SetBinFile(binFileValue string)
func SetDynamicBucketMounted ¶
func SetDynamicBucketMounted(dynamicBucketValue string)
SetDynamicBucketMounted sets the name of the bucket in case of dynamic mount.
func SetLogFile ¶
func SetLogFile(logFileValue string)
func SetOnlyDirMounted ¶
func SetOnlyDirMounted(onlyDirValue string)
SetOnlyDirMounted sets the name of the directory mounted in case of only dir mount.
func SetTestDir ¶
func SetTestDir(testDirValue string)
func SetUpTestDir ¶
func SetUpTestDir() error
func SetUpTestDirForTestBucketFlag ¶
func SetUpTestDirForTestBucketFlag()
func SetupTestDirectory ¶
SetupTestDirectory creates a testDirectory in the mounted directory and cleans up any content present in it.
func TestBucket ¶
func TestBucket() string
func TestInstalledPackage ¶
func TestInstalledPackage() bool
func UnMountBucket ¶
func UnMountBucket()
func UnmountGCSFuseAndDeleteLogFile ¶
func UnmountGCSFuseAndDeleteLogFile(rootDir string)
func YAMLConfigFile ¶
func YAMLConfigFile(config config.MountConfig, fileName string) (filePath string)
Types ¶
This section is empty.