Repository navigation
Commit 30f1a37
committed
test(supervisor): run baseline write-back cases only on Unix hosts
The startup policy write-refusal tests from #3785 rely on
enrich_proto_baseline_paths adding the proxy baseline paths (/usr,
/tmp, /dev/null, ...) to a policy, which triggers a write-back that the
fake gateway then refuses. Enrichment only adds paths that exist on the
host. Prior to this change, the tests assumed those paths exist, so on
Windows enrichment added nothing, the precondition assertions failed,
and the baseline case of permanent_codes_still_exit never saw a write
to refuse.
Now, the four baseline write-back tests are gated to Unix, and
permanent_codes_still_exit checks the image policy upload case on every
host and the baseline write-back case only on Unix.
Signed-off-by: Kris Hicks <khicks@nvidia.com>1 parent 34c67cd commit 30f1a37
1 file changed
Lines changed: 20 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5620 | 5620 | | |
5621 | 5621 | | |
5622 | 5622 | | |
| 5623 | + | |
| 5624 | + | |
5623 | 5625 | | |
5624 | 5626 | | |
5625 | 5627 | | |
| |||
5749 | 5751 | | |
5750 | 5752 | | |
5751 | 5753 | | |
| 5754 | + | |
| 5755 | + | |
5752 | 5756 | | |
5753 | 5757 | | |
5754 | 5758 | | |
| |||
5892 | 5896 | | |
5893 | 5897 | | |
5894 | 5898 | | |
| 5899 | + | |
| 5900 | + | |
5895 | 5901 | | |
5896 | 5902 | | |
5897 | 5903 | | |
| |||
5979 | 5985 | | |
5980 | 5986 | | |
5981 | 5987 | | |
| 5988 | + | |
| 5989 | + | |
5982 | 5990 | | |
5983 | 5991 | | |
5984 | 5992 | | |
| |||
6067 | 6075 | | |
6068 | 6076 | | |
6069 | 6077 | | |
6070 | | - | |
6071 | | - | |
6072 | | - | |
6073 | | - | |
6074 | | - | |
6075 | | - | |
6076 | | - | |
6077 | | - | |
6078 | | - | |
6079 | | - | |
6080 | | - | |
6081 | | - | |
| 6078 | + | |
| 6079 | + | |
| 6080 | + | |
| 6081 | + | |
| 6082 | + | |
| 6083 | + | |
| 6084 | + | |
| 6085 | + | |
| 6086 | + | |
| 6087 | + | |
| 6088 | + | |
| 6089 | + | |
6082 | 6090 | | |
6083 | 6091 | | |
6084 | 6092 | | |
| |||
0 commit comments