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"); }
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"); }
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"); }
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); }
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); }
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); }
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); }
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); }
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); }