| // Copyright 2022 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| // This test is intended to work for a core product built as well as |
| // for the integration tests for the inspect test runner. |
| { |
| include: [ "//src/sys/test_runners/inspect/default.shard.cml" ], |
| program: { |
| accessor: "ALL", |
| timeout_seconds: "60", |
| cases: [ |
| // Check archivist has any data |
| "bootstrap/archivist:root", |
| |
| // Check archivist saw at least one LOG_SINK_REQUESTED event |
| "bootstrap/archivist:root/events/recent_events/*:event WHERE [a] Count(Filter(Fn([b], b == 'log_sink_requested'), a)) > 0", |
| |
| // Check archivist counted log sink requested events |
| "bootstrap/archivist:root/events/event_counts:log_sink_requested WHERE [a] a > 1", |
| ], |
| }, |
| } |