Fix typo in ValidationMap type name (#5837)

This commit is contained in:
Zachary Wasserman 2019-09-25 20:35:15 -07:00 committed by Teddy Reed
parent e5599c01f3
commit fe284506ac
235 changed files with 347 additions and 566 deletions

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(accountPolicyData, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"uid", IntType}
// {"creation_time", NormalType}
// {"failed_login_count", IntType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(acpiTables, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"name", NormalType}
// {"size", IntType}
// {"md5", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(adConfig, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"name", NormalType}
// {"domain", NormalType}
// {"option", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(alf, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"allow_signed_enabled", IntType}
// {"firewall_unload", IntType}
// {"global_state", IntType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(alfExceptions, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"path", NormalType}
// {"state", IntType}
//}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(alfExplicitAuths, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"process", NormalType}
//}
// 4. Perform validation

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(alfServices, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"service", NormalType}
// {"process", NormalType}
// {"state", IntType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(appSchemes, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"scheme", NormalType}
// {"handler", NormalType}
// {"enabled", IntType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(appcompatShims, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"executable", NormalType}
// {"path", NormalType}
// {"description", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(apps, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"name", NormalType}
// {"path", NormalType}
// {"bundle_executable", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -30,7 +29,7 @@ TEST_F(AptSourcesTest, test_sanity) {
LOG(WARNING) << "select from \"apt_sources\" table returned no results and "
"therefore won't be tested";
} else {
auto const row_map = ValidatatioMap{
auto const row_map = ValidationMap{
{"name", NonEmptyString},
{"source", FileOnDisk},
{"base_uri", NonEmptyString},

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -25,7 +24,7 @@ class ArpCacheTest : public testing::Test {
TEST_F(ArpCacheTest, test_sanity) {
QueryData data = execute_query("select * from arp_cache");
auto const row_map = ValidatatioMap{
auto const row_map = ValidationMap{
{"address", verifyIpAddress},
{"mac", verifyMacAddress},
{"interface", NonEmptyString},

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(asl, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"time", IntType}
// {"time_nano_sec", IntType}
// {"host", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -24,7 +23,7 @@ class atomPackages : public testing::Test {
TEST_F(atomPackages, test_sanity) {
auto const data = execute_query("select * from atom_packages");
ValidatatioMap row_map = {
ValidationMap row_map = {
{"name", NormalType},
{"version", NormalType},
{"description", NormalType},

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(augeas, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"node", NormalType}
// {"value", NormalType}
// {"label", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(authenticode, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"path", NormalType}
// {"original_program_name", NormalType}
// {"serial_number", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(authorizationMechanisms, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"label", NormalType}
// {"plugin", NormalType}
// {"mechanism", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(authorizations, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"label", NormalType}
// {"modified", NormalType}
// {"allow_root", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(authorizedKeys, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"uid", IntType}
// {"algorithm", NormalType}
// {"key", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(autoexec, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"path", NormalType}
// {"name", NormalType}
// {"source", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(battery, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"manufacturer", NormalType}
// {"manufacture_date", IntType}
// {"model", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(bitlockerInfo, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"device_id", NormalType}
// {"drive_letter", NormalType}
// {"persistent_volume_id", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(blockDevices, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"name", NormalType}
// {"parent", NormalType}
// {"vendor", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(browserPlugins, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"uid", IntType}
// {"name", NormalType}
// {"identifier", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(carbonBlackInfo, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"sensor_id", IntType}
// {"config_name", NormalType}
// {"collect_store_files", IntType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(carves, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"time", IntType}
// {"sha256", NormalType}
// {"size", IntType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(certificates, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"common_name", NormalType}
// {"subject", NormalType}
// {"issuer", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(chocolateyPackages, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"name", NormalType}
// {"version", NormalType}
// {"summary", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(chromeExtensions, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"uid", IntType}
// {"name", NormalType}
// {"identifier", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -25,7 +24,7 @@ class cpuInfo : public testing::Test {
TEST_F(cpuInfo, test_sanity) {
const QueryData data = execute_query("select * from cpu_info");
ASSERT_EQ(data.size(), 1ul);
ValidatatioMap row_map = {{"device_id", NormalType},
ValidationMap row_map = {{"device_id", NormalType},
{"model", NormalType},
{"manufacturer", NormalType},
{"processor_type", NonNegativeOrErrorInt},

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(cpuTime, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"core", IntType}
// {"user", IntType}
// {"nice", IntType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(cpuid, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"feature", NormalType}
// {"value", NormalType}
// {"output_register", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(crashes, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"type", NormalType}
// {"pid", IntType}
// {"path", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -38,7 +37,7 @@ TEST_F(Crontab, test_sanity) {
"dec"};
std::unordered_set<std::string> days_list = {
"mon", "tue", "wed", "thu", "fri", "sat", "sun"};
ValidatatioMap row_map = {{"event",
ValidationMap row_map = {{"event",
SpecificValuesCheck{"",
"@reboot",
"@hourly",

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(cupsDestinations, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"name", NormalType}
// {"option_name", NormalType}
// {"option_value", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(cupsJobs, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"title", NormalType}
// {"destination", NormalType}
// {"user", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(curl, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"url", NormalType}
// {"method", NormalType}
// {"user_agent", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -33,7 +32,7 @@ TEST_F(curlCertificate, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"hostname", NormalType}
// {"common_name", NormalType}
// {"organization", NormalType}

View File

@ -26,7 +26,7 @@ class DebPackages : public testing::Test {
TEST_F(DebPackages, test_sanity) {
QueryData rows = execute_query("select * from deb_packages");
if (rows.size() > 0) {
ValidatatioMap row_map = {
ValidationMap row_map = {
{"name", NonEmptyString},
{"version", NonEmptyString},
{"source", NormalType},

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -33,7 +32,7 @@ TEST_F(deviceFile, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"device", NormalType}
// {"partition", NormalType}
// {"path", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(deviceFirmware, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"type", NormalType}
// {"device", NormalType}
// {"version", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -34,7 +33,7 @@ TEST_F(deviceHash, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"device", NormalType}
// {"partition", NormalType}
// {"inode", IntType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -33,7 +32,7 @@ TEST_F(devicePartitions, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"device", NormalType}
// {"partition", IntType}
// {"label", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(diskEncryption, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"name", NormalType}
// {"uuid", NormalType}
// {"encrypted", IntType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(diskEvents, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"action", NormalType}
// {"path", NormalType}
// {"name", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(diskInfo, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"partitions", IntType}
// {"disk_index", IntType}
// {"type", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(dnsResolvers, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"id", IntType}
// {"type", NormalType}
// {"address", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(dockerContainerLabels, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"id", NormalType}
// {"key", NormalType}
// {"value", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(dockerContainerMounts, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"id", NormalType}
// {"type", NormalType}
// {"name", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(dockerContainerNetworks, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"id", NormalType}
// {"name", NormalType}
// {"network_id", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(dockerContainerPorts, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"id", NormalType}
// {"type", NormalType}
// {"port", IntType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -33,7 +32,7 @@ TEST_F(dockerContainerProcesses, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"id", NormalType}
// {"pid", IntType}
// {"name", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -33,7 +32,7 @@ TEST_F(dockerContainerStats, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"id", NormalType}
// {"name", NormalType}
// {"pids", IntType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(dockerContainers, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"id", NormalType}
// {"name", NormalType}
// {"image", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(dockerImageLabels, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"id", NormalType}
// {"key", NormalType}
// {"value", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(dockerImages, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"id", NormalType}
// {"created", IntType}
// {"size_bytes", IntType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(dockerInfo, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"id", NormalType}
// {"containers", IntType}
// {"containers_running", IntType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(dockerNetworkLabels, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"id", NormalType}
// {"key", NormalType}
// {"value", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(dockerNetworks, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"id", NormalType}
// {"name", NormalType}
// {"driver", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(dockerVersion, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"version", NormalType}
// {"api_version", NormalType}
// {"min_api_version", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(dockerVolumeLabels, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"name", NormalType}
// {"key", NormalType}
// {"value", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(dockerVolumes, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"name", NormalType}
// {"driver", NormalType}
// {"mount_point", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(drivers, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"device_id", NormalType}
// {"device_name", NormalType}
// {"image", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(ec2InstanceMetadata, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"instance_id", NormalType}
// {"instance_type", NormalType}
// {"architecture", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(ec2InstanceTags, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"instance_id", NormalType}
// {"key", NormalType}
// {"value", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(elfDynamic, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"tag", IntType}
// {"value", IntType}
// {"class", IntType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(elfInfo, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"class", NormalType}
// {"abi", NormalType}
// {"abi_version", IntType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(elfSections, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"name", NormalType}
// {"type", IntType}
// {"vaddr", IntType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(elfSegments, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"name", NormalType}
// {"offset", IntType}
// {"vaddr", IntType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(elfSymbols, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"name", NormalType}
// {"addr", IntType}
// {"size", IntType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(etcHosts, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"address", NormalType}
// {"hostnames", NormalType}
//}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -24,7 +23,7 @@ class EtcProtocolsTest : public testing::Test {
TEST_F(EtcProtocolsTest, test_sanity) {
auto const rows = execute_query("select * from etc_protocols");
auto const row_map = ValidatatioMap{
auto const row_map = ValidationMap{
{"name", NonEmptyString},
{"number", NonNegativeInt},
{"alias", NonEmptyString},

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(etcServices, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"name", NormalType}
// {"port", IntType}
// {"protocol", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(eventTaps, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"enabled", IntType}
// {"event_tap_id", IntType}
// {"event_tapped", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(example, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"name", NormalType}
// {"points", IntType}
// {"size", IntType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -33,7 +32,7 @@ TEST_F(extendedAttributes, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"path", NormalType}
// {"directory", NormalType}
// {"key", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(fanSpeedSensors, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"fan", NormalType}
// {"name", NormalType}
// {"actual", IntType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(fbsdKmods, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"name", NormalType}
// {"size", IntType}
// {"refs", IntType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -49,7 +48,7 @@ TEST_F(FileTests, test_sanity) {
"\"");
EXPECT_EQ(data.size(), 1ul);
ValidatatioMap row_map = {{"path", FileOnDisk},
ValidationMap row_map = {{"path", FileOnDisk},
{"directory", DirectoryOnDisk},
{"filename", NonEmptyString},
{"inode", IntType},

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(fileEvents, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"target_path", NormalType}
// {"category", NormalType}
// {"action", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(firefoxAddons, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"uid", IntType}
// {"name", NormalType}
// {"identifier", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(gatekeeper, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"assessments_enabled", IntType}
// {"dev_id_enabled", IntType}
// {"version", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(gatekeeperApprovedApps, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"path", NormalType}
// {"requirement", NormalType}
// {"ctime", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(groups, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"gid", IntType}
// {"gid_signed", IntType}
// {"groupname", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(hardwareEvents, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"action", NormalType}
// {"path", NormalType}
// {"type", NormalType}

View File

@ -44,7 +44,7 @@ TEST_F(Hash, test_sanity) {
ASSERT_EQ(data.size(), 1ul);
ValidatatioMap row_map = {
ValidationMap row_map = {
{"path", NonEmptyString},
{"directory", NonEmptyString},
{"md5", NonEmptyString},

View File

@ -142,7 +142,7 @@ QueryData execute_query(std::string query) {
return rows;
}
void validate_row(const Row& row, const ValidatatioMap& validation_map) {
void validate_row(const Row& row, const ValidationMap& validation_map) {
for (auto const& rec : row) {
EXPECT_NE(validation_map.count(rec.first), std::size_t{0})
<< "Unexpected column " << boost::io::quoted(rec.first) << " in a row";
@ -154,7 +154,7 @@ void validate_row(const Row& row, const ValidatatioMap& validation_map) {
<< "Could not find column " << boost::io::quoted(key)
<< " in the generated columns";
std::string value = row_data_iter->second;
ValidatatioDataType validator = iter.second;
ValidationDataType validator = iter.second;
if (validator.type() == typeid(int)) {
int flags = boost::get<int>(validator);
ASSERT_TRUE(validate_value_using_flags(value, flags))
@ -168,7 +168,7 @@ void validate_row(const Row& row, const ValidatatioMap& validation_map) {
}
}
void validate_rows(const std::vector<Row>& rows,
const ValidatatioMap& validation_map) {
const ValidationMap& validation_map) {
for (auto row : rows) {
validate_row(row, validation_map);
}

View File

@ -77,15 +77,14 @@ enum {
};
using CustomCheckerType = std::function<bool(const std::string&)>;
using ValidatatioDataType = boost::variant<int, CustomCheckerType>;
using ValidatatioMap = std::unordered_map<std::string, ValidatatioDataType>;
using ValidationDataType = boost::variant<int, CustomCheckerType>;
using ValidationMap = std::unordered_map<std::string, ValidationDataType>;
QueryData execute_query(std::string query);
void validate_row(const Row& row,
const ValidatatioMap& validation_map);
void validate_row(const Row& row, const ValidationMap& validation_map);
void validate_rows(const std::vector<Row>& rows,
const ValidatatioMap& validation_map);
const ValidationMap& validation_map);
bool validate_value_using_flags(const std::string& value, int flags);
bool is_valid_hex(const std::string& value);

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(homebrewPackages, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"name", NormalType}
// {"path", NormalType}
// {"version", NormalType}

View File

@ -25,7 +25,7 @@ TEST_F(IBridgeTest, test_sanity) {
VLOG(1) << "Empty result for table: ibridge, skipping test";
} else {
ASSERT_EQ(rows.size(), 1ul);
ValidatatioMap validation_map = {
ValidationMap validation_map = {
{"boot_uuid", NormalType},
{"coprocessor_version", NonEmptyString},
{"firmware_version", NonEmptyString},

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(ieExtensions, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"name", NormalType}
// {"registry_path", NormalType}
// {"version", NormalType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(intelMeInfo, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"version", NormalType}
//}
// 4. Perform validation

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -27,7 +26,7 @@ class InterfaceAddressesTest : public testing::Test {
TEST_F(InterfaceAddressesTest, test_sanity) {
QueryData const rows = execute_query("select * from interface_addresses");
auto const row_map = ValidatatioMap{
auto const row_map = ValidationMap{
{"interface", NonEmptyString},
{"address", verifyIpAddress},
{"mask", verifyIpAddress},

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -71,7 +70,7 @@ TEST_F(InterfaceDetailsTest, test_sanity) {
return true;
};
#endif
auto const row_map = ValidatatioMap{
auto const row_map = ValidationMap{
{"interface", NonEmptyString},
{"mac", verify_non_empty_string_or_empty_on_win},
{"type", NonNegativeInt},

View File

@ -23,7 +23,7 @@ class InterfaceIpv6Test : public testing::Test {
TEST_F(InterfaceIpv6Test, test_sanity) {
QueryData const rows = execute_query("select * from interface_ipv6");
auto const row_map = ValidatatioMap{
auto const row_map = ValidationMap{
{"interface", NonEmptyString},
{"hop_limit", IntMinMaxCheck(0, 255)},
{"forwarding_enabled", Bool},

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(iokitDevicetree, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"name", NormalType}
// {"class", NormalType}
// {"id", IntType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(iokitRegistry, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"name", NormalType}
// {"class", NormalType}
// {"id", IntType}

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -27,7 +26,7 @@ TEST_F(iptables, test_sanity) {
ASSERT_GE(data.size(), 0ul);
ValidatatioMap row_map = {{"filter_name", NonEmptyString},
ValidationMap row_map = {{"filter_name", NonEmptyString},
{"chain", NormalType},
{"policy", NormalType},
{"target", NormalType},

View File

@ -1,4 +1,3 @@
/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
@ -32,7 +31,7 @@ TEST_F(kernelExtensions, test_sanity) {
// 3. Build validation map
// See helper.h for avaialbe flags
// Or use custom DataCheck object
// ValidatatioMap row_map = {
// ValidationMap row_map = {
// {"idx", IntType}
// {"refs", IntType}
// {"size", IntType}

View File

@ -23,7 +23,7 @@ class KernelInfo : public testing::Test {
TEST_F(KernelInfo, test_sanity) {
QueryData data = execute_query("select * from kernel_info");
ValidatatioMap row_map = {{"version", NonEmptyString},
ValidationMap row_map = {{"version", NonEmptyString},
{"arguments", NormalType},
{"path", NormalType},
{"device", NonEmptyString}};

Some files were not shown because too many files have changed in this diff Show More