Skip to content

Commit d6e90cc

Browse files
jjo93saMoteHue
authored andcommitted
Docs/robot integers (azimuth-cloud#192)
* Add tip to describe value coercion * Revert linting * Implement requested changes
1 parent d37a393 commit d6e90cc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/deployment/testing.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,15 @@ generate_tests_caas_test_case_{cluster_type}_service_{service_name}_expected_tit
264264
generate_tests_caas_test_case_{cluster_type}_verify_timeout: "45 minutes"
265265
```
266266
267+
!!! tip "Coerce a value to something other than a string"
268+
269+
By default Robot Framework coerces values to strings. Robot Framework can be instructed to treat
270+
the value literally using the syntax "${x}", for example:
271+
272+
```yaml title="environments/my-site/inventory/group_vars/all/tests.yml"
273+
# Make Robot Framework treat the override as an integer, not a string
274+
generate_tests_caas_test_case_{cluster_type}_param_{parameter_name}: "${42}"
275+
267276
!!! warning
268277
269278
If the cluster type or service name contain dashes (`-`), they will be replaced with

0 commit comments

Comments
 (0)