예제 #1
0
        public async void Non_Existing_Zip()
        {
            var logSharkParams = GetTestParameters(BadZip + "do_not_exist.zip");
            var test           = new EndToEndTest(logSharkParams, null);
            var runSummary     = await test.RunAndValidate(false);

            runSummary.ReasonForFailure.Should().Contain("does not exist or LogShark cannot open it");
        }
예제 #2
0
        public async void Password_Protected_Zip()
        {
            var logSharkParams = GetTestParameters(PasswordProtectedZipPath);
            var test           = new EndToEndTest(logSharkParams, null);
            var runSummary     = await test.RunAndValidate(false);

            runSummary.ReasonForFailure.Should().Contain("unsupported compression method");
        }
예제 #3
0
        public async void Empty_Zip()
        {
            var logSharkParams = GetTestParameters(EmptyZipPath);
            var test           = new EndToEndTest(logSharkParams, null);
            var runSummary     = await test.RunAndValidate(false);

            runSummary.ReasonForFailure.Should().Contain("Zip file appears to not contain any files");
        }
예제 #4
0
        public async void Tabadmin_Hyper()
        {
            var logSharkParams  = GetTestParameters(TabadminLogSetPath, "hyper");
            var configOverrides = new Dictionary <string, string>()
            {
                ["EnvironmentConfig:AppendLogsetNameToOutput"] = "true",
            };

            var test = new EndToEndTest(logSharkParams, "./TestData/EndToEndTests/Expected/logs_clean_tabadmin_hyper", ExpectedTabadminProcessingErrors, configOverrides);
            await test.RunAndValidate(true, ExpectedNumberOfLinesPersistedInTabadminLogs);
        }
예제 #5
0
        public async void TSM_CSV_Unzipped()
        {
            if (Directory.Exists(UnzipDir))
            {
                Directory.Delete(UnzipDir, true);
            }

            ZipFile.ExtractToDirectory(TsmLogSetPath, UnzipDir);

            var logSharkParams = GetTestParameters(UnzipDir);
            var test           = new EndToEndTest(logSharkParams, "./TestData/EndToEndTests/Expected/logs_clean_tsm_csv");
            await test.RunAndValidate(true, ExpectedNumberOfLinesPersistedInTsmLogs);
        }
예제 #6
0
        public async void TSM_Hyper()
        {
            var logSharkParams  = GetTestParameters(TsmLogSetPath, "hyper");
            var configOverrides = new Dictionary <string, string>()
            {
                ["EnvironmentConfig:AppendLogsetNameToOutput"] = "true",
            };

            logSharkParams.WorkbookNameSuffixOverride = "_test";

            var test = new EndToEndTest(logSharkParams, "./TestData/EndToEndTests/Expected/logs_clean_tsm_hyper", null, configOverrides);
            await test.RunAndValidate(true, ExpectedNumberOfLinesPersistedInTsmLogs);
        }
예제 #7
0
 public async void Tabadmin_CSV_Zipped_Apache_Only()
 {
     var logSharkParams = GetTestParameters(TabadminLogSetPathApacheOnly);
     var test           = new EndToEndTest(logSharkParams, "./TestData/EndToEndTests/Expected/logs_clean_tabadmin_apache_only_csv");
     await test.RunAndValidate(true, 3343);
 }
예제 #8
0
 public async void Tabadmin_CSV_Zipped()
 {
     var logSharkParams = GetTestParameters(TabadminLogSetPath);
     var test           = new EndToEndTest(logSharkParams, "./TestData/EndToEndTests/Expected/logs_clean_tabadmin_csv", ExpectedTabadminProcessingErrors);
     await test.RunAndValidate(true, ExpectedNumberOfLinesPersistedInTabadminLogs);
 }
예제 #9
0
 public async void TSM_CSV_Zipped()
 {
     var logSharkParams = GetTestParameters(TsmLogSetPath);
     var test           = new EndToEndTest(logSharkParams, "./TestData/EndToEndTests/Expected/logs_clean_tsm_csv");
     await test.RunAndValidate(true, ExpectedNumberOfLinesPersistedInTsmLogs);
 }