Andrea
06/07/2022, 10:32 AM[ RUN ] UserGroups.test_sanity
E20220607 10:13:31.404719 9192 virtual_table.cpp:1006] Exception while executing table user_groups: no state
C:\workspace\senseon-enterprise-endpoint\tests\integration\tables\helper.cpp(160): error: Value of: status.ok()
Actual: false
Expected: true
Query execution failed with error: "no state"
C:\workspace\senseon-enterprise-endpoint\tests\integration\tables\user_groups.cpp(62): error: Expected: (data.size()) > (0ul), actual: 0 vs 0
[ FAILED ] UserGroups.test_sanity (1 ms)
Stefano Bonicatti
06/07/2022, 10:51 AMAndrea
06/07/2022, 12:55 PMStefano Bonicatti
06/07/2022, 12:57 PMstd::future
that has not been initialized properly from a std::promise
. They are some internals used to synchronize the initialization of the users and groups cache.
I’ve opened a couple of PRs to fix the tests https://github.com/osquery/osquery/pull/7620 and to not hide this and other similar issues anymore in the future https://github.com/osquery/osquery/pull/7621Andrea
06/07/2022, 12:57 PMctest --output-on-failure --config RelWithDebInfo
was the command. Installed osquery and run osqueryi and correctly returns results for those tables*-C RelWithDebInfo
Stefano Bonicatti
06/07/2022, 1:38 PMAndrea
06/07/2022, 1:46 PMStefano Bonicatti
06/07/2022, 1:47 PMAndrea
06/07/2022, 1:48 PMStefano Bonicatti
06/07/2022, 3:19 PMAndrea
06/07/2022, 3:19 PMStefano Bonicatti
06/07/2022, 3:25 PMAndrea
06/07/2022, 3:30 PMSetUpTestCase
(https://github.com/osquery/osquery/blob/a7d856968ac515c2c02b2cac7db237e1b2bf55f5/tests/integration/tables/certificates.cpp#L32)Stefano Bonicatti
06/11/2022, 5:28 PMAndrea
06/11/2022, 7:40 PM