(t *testing.T)
| 605 | } |
| 606 | |
| 607 | func TestLoadWithInterpolationCastFull(t *testing.T) { |
| 608 | dict, err := ParseYAML([]byte(` |
| 609 | version: "3.8" |
| 610 | services: |
| 611 | web: |
| 612 | configs: |
| 613 | - source: appconfig |
| 614 | mode: $theint |
| 615 | secrets: |
| 616 | - source: super |
| 617 | mode: $theint |
| 618 | healthcheck: |
| 619 | retries: ${theint} |
| 620 | disable: $thebool |
| 621 | deploy: |
| 622 | replicas: $theint |
| 623 | update_config: |
| 624 | parallelism: $theint |
| 625 | max_failure_ratio: $thefloat |
| 626 | rollback_config: |
| 627 | parallelism: $theint |
| 628 | max_failure_ratio: $thefloat |
| 629 | restart_policy: |
| 630 | max_attempts: $theint |
| 631 | placement: |
| 632 | max_replicas_per_node: $theint |
| 633 | ports: |
| 634 | - $theint |
| 635 | - "34567" |
| 636 | - target: $theint |
| 637 | published: $theint |
| 638 | ulimits: |
| 639 | nproc: $theint |
| 640 | nofile: |
| 641 | hard: $theint |
| 642 | soft: $theint |
| 643 | privileged: $thebool |
| 644 | read_only: $thebool |
| 645 | stdin_open: ${thebool} |
| 646 | tty: $thebool |
| 647 | volumes: |
| 648 | - source: data |
| 649 | type: volume |
| 650 | read_only: $thebool |
| 651 | volume: |
| 652 | nocopy: $thebool |
| 653 | |
| 654 | configs: |
| 655 | appconfig: |
| 656 | external: $thebool |
| 657 | secrets: |
| 658 | super: |
| 659 | external: $thebool |
| 660 | volumes: |
| 661 | data: |
| 662 | external: $thebool |
| 663 | networks: |
| 664 | front: |
nothing calls this directly
no test coverage detected
searching dependent graphs…