mirror of
https://github.com/coralogix/cx-cli.git
synced 2026-09-14 16:15:45 +08:00
f688e2fadc
Co-authored-by: Snir Shechter <snir.shechter@coralogix.com>
34 lines
875 B
Rust
34 lines
875 B
Rust
//! Smoke tests that exercise the three output formats on one representative
|
|
//! read-only command. We don't sweep every command across every format - that
|
|
//! would 3x the suite - but we want a tripwire that catches a broken
|
|
//! rendering path in any of the three modes.
|
|
|
|
use crate::harness;
|
|
|
|
#[test]
|
|
#[ignore]
|
|
fn alerts_list_text() {
|
|
if harness::require_creds("alerts_list_text").is_none() {
|
|
return;
|
|
}
|
|
harness::run_ok_nonempty(&["alerts", "list", "-o", "text"]);
|
|
}
|
|
|
|
#[test]
|
|
#[ignore]
|
|
fn alerts_list_json() {
|
|
if harness::require_creds("alerts_list_json").is_none() {
|
|
return;
|
|
}
|
|
harness::run_ok_json(&["alerts", "list", "-o", "json"]);
|
|
}
|
|
|
|
#[test]
|
|
#[ignore]
|
|
fn alerts_list_agents() {
|
|
if harness::require_creds("alerts_list_agents").is_none() {
|
|
return;
|
|
}
|
|
harness::run_ok_nonempty(&["alerts", "list", "-o", "toon"]);
|
|
}
|