raps-cli 4.15.0

RAPS (rapeseed) - Rust Autodesk Platform Services CLI
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#![allow(deprecated)]

use assert_cmd::Command;

#[test]
fn test_json_schema_bucket_list() {
    // This is a placeholder for schema validation.
    // In a real scenario, we'd mock the API response and verify the CLI output matches the schema.
    // Since we don't have full mocks set up in this context, we'll document the intent.

    // 1. Run command with --output json
    // 2. Parse stdout as serde_json::Value
    // 3. Verify structure (e.g. is array, has "bucketKey", "createdDate" fields)

    let _cmd = Command::cargo_bin("raps").unwrap();
    // cmd.arg("bucket").arg("list").arg("--output").arg("json");
    // ...
}