Commit 3a0c9e7
test: reduce and improve tests in src/validate.rs (#649)
- test_reject_pipeline_injection: replace duplicate {{ copilot_params }}
template-marker assertion with $[variables.x] runtime expression,
covering the untested $[ ADO expression form
- test_validate_container_image: add message-content assertions for both
invalid cases (is_empty() alone did not verify the warning reason)
- test_validate_docker_args_volume_flag_calls_mount_validation: assert on
warnings[1] content to verify the sensitive-path sub-warning is generated
- test_validate_mcp_url: assert the warning message mentions the expected
schemes instead of only checking is_empty()
- test_validate_feed_url_rejects_double_quote +
test_validate_feed_url_rejects_single_quote: merge into single
test_validate_feed_url_rejects_quotes (two trivially single-assertion
tests for the same feature)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent f63a1a6 commit 3a0c9e7
1 file changed
Lines changed: 12 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
610 | | - | |
| 610 | + | |
611 | 611 | | |
612 | 612 | | |
613 | 613 | | |
| |||
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
635 | | - | |
636 | | - | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
637 | 641 | | |
638 | 642 | | |
639 | 643 | | |
| |||
661 | 665 | | |
662 | 666 | | |
663 | 667 | | |
| 668 | + | |
664 | 669 | | |
665 | 670 | | |
666 | 671 | | |
667 | 672 | | |
668 | 673 | | |
669 | 674 | | |
670 | | - | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
671 | 678 | | |
672 | 679 | | |
673 | 680 | | |
| |||
705 | 712 | | |
706 | 713 | | |
707 | 714 | | |
708 | | - | |
| 715 | + | |
709 | 716 | | |
710 | | - | |
711 | | - | |
712 | | - | |
713 | | - | |
714 | 717 | | |
715 | 718 | | |
716 | 719 | | |
0 commit comments