osquery-1/tests/integration/tables/atom_packages.cpp
Jesse Kornblum c7355b19aa Update osquery licensing wording (#5452)
Summary:
Pull Request resolved: https://github.com/facebook/osquery/pull/5452

As suggested in another diff, this diff updates the language we use to describe the osquery licensing terms. We are changing all instances of

//This source code is licensed as defined on the LICENSE file found in the root directory of this source tree.//

to

//This source code is licensed in accordance with the terms specified in the LICENSE file found in the root directory of this source tree.//

We accomplish this with a codemod:

  $ codemod -md xplat/osquery/oss --extensions cpp,h,in,py,sh,mm,ps1 "(.\s+)This source code is licensed as defined on the LICENSE file found in the(.*)root directory of this source tree\." "\1This source code is licensed in accordance with the terms specified in\2the LICENSE file found in the root directory of this source tree."

Reviewed By: fmanco

Differential Revision: D14131290

fbshipit-source-id: 52c90da342263e2a80f5a678ecd760c19cf7513e
2019-02-19 10:59:48 -08:00

40 lines
941 B
C++

/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/
// Sanity check integration test for atom_packages
// Spec file: specs/atom_packages.table
#include <osquery/tests/integration/tables/helper.h>
namespace osquery {
namespace table_tests {
class atomPackages : public testing::Test {
protected:
void SetUp() override {
setUpEnvironment();
}
};
TEST_F(atomPackages, test_sanity) {
auto const data = execute_query("select * from atom_packages");
ValidatatioMap row_map = {
{"name", NormalType},
{"version", NormalType},
{"description", NormalType},
{"path", NormalType},
{"license", NormalType},
{"homepage", NormalType},
};
validate_rows(data, row_map);
}
} // namespace table_tests
} // namespace osquery