healthscript 1.1.0

A simple DSL for checking the health of a service using HTTP, TCP, ICMP (ping), and more.
Documentation
use expect_test::expect;
use healthscript::parse;

#[test]
fn http_verb() {
    let input = r#"[hi] https://example.com"#;
    let (ast, errors) = parse(input);

    assert_eq!(errors.len(), 1);

    let expected = expect![[r#"
        Some(
            Http(
                Http {
                    request_headers: [],
                    verb: None,
                    request_body: None,
                    url: "https://example.com",
                    timeout: None,
                    status_code: None,
                    response_headers: [],
                    response_body: None,
                },
            ),
        )
    "#]];
    expected.assert_debug_eq(&ast);
}