github.com/facebookincubator/ttpforge@v1.0.13-0.20240405153150-5ae801628835/example-ttps/tests/dry-run.yaml (about) 1 --- 2 api_version: 2.0 3 uuid: 740e4d7f-02fb-442c-af38-8efb66334305 4 name: Test Case with Dry Run 5 description: | 6 This TTP illustrates the impact of the `dry_run` field 7 on the behavior of a test case. When `dry_run` is set 8 to `true`, the `--dry-run` flag will be appended 9 to the `ttpforge run` command that is constructed to execute 10 the test case. This means that the TTP will be validated 11 (after full template rendering) but not executed. 12 tests: 13 - name: default 14 dry_run: true 15 # note that we still need to specify 16 # a valid set of arguments! 17 args: 18 file_suffix: wut 19 args: 20 - name: file_suffix 21 description: the suffix to append to the created file 22 steps: 23 # this contrived TTP would only work on a very specific system 24 # for which this path exists. We still want the validate 25 # that THIS YAML FILE ITSELF is a valid TTP that COULD 26 # run under the right conditions, so we specify `dry_run: true` 27 # in the test case. 28 - name: create_very_specific_file 29 create_file: /very/specific/path/test-{{.Args.file_suffix}} 30 contents: foo 31 overwrite: true 32 cleanup: default