lttng {add,list}-triggers: use `name` instead of `id`
[lttng-tools.git] / tests / regression / tools / trigger / test_add_trigger_cli
index 974938068707c48243ddf2977de5b65ceef0782b..a8d03c4dd66d9f3aabacc1f78f7bba9e3861b4e2 100755 (executable)
@@ -77,8 +77,8 @@ function test_failure ()
 }
 
 # top-level options
-test_success "explicit id" \
-       --id hohoho \
+test_success "explicit name" \
+       --name hohoho \
        --condition on-event some-event-id -u \
        --action notify
 
@@ -262,9 +262,9 @@ test_failure "two --condition" \
        --condition on-event bbb -u \
        --action notify
 
-test_failure "missing argument to --id" \
-       "Error: While parsing argument #1 (\`--id\`): Missing required argument for option \`--id\`" \
-       --id
+test_failure "missing argument to --name" \
+       "Error: While parsing argument #1 (\`--name\`): Missing required argument for option \`--name\`" \
+       --name
 
 for cmd in rate-policy=once-after rate-policy=every; do
        test_failure "missing argument to --${cmd}" \
@@ -290,7 +290,7 @@ test_failure "invalid argument to --rate-policy: unknown policy type" \
 
 # `--condition` failures
 test_failure "missing args after --condition" \
-       "Error: Missing condition name." \
+       "Error: While parsing argument #1 (\`--condition\`): Missing required argument for option \`--condition\`" \
        --condition
 test_failure "unknown --condition" \
        "Error: Unknown condition name 'zoofest'" \
@@ -380,7 +380,7 @@ test_failure "--condition on-event --capture: missing colon in app-specific cont
 
 # `--action` failures
 test_failure "missing args after --action" \
-       "Error: Missing action name." \
+       "Error: While parsing argument #1 (\`--action\`): Missing required argument for option \`--action\`" \
        --condition on-event -u -a \
        --action
 
This page took 0.02572 seconds and 5 git commands to generate.