Commit a0f4cf5
authored
remap_reload.test.py: fix override warnings (#12640)
remap_reload.test.py updates the remap.config file and issues a
`traffic_ctl config reload` to dynamically integrate those changes into
the running ATS process. Before this patch, this was done via creating a
new tr.Disk.File() object and writing to it. But this resulted in
warnings for overriding the already existing remap.config Disk.File from
the setup of the ATS process in the first place. This transitions the
test to modify the file via a Setup function instead. This achieves the
same result without alarming the autest framework about the conflicting
Disk.File object.
This patch cleans up these warnings:
```
╰─➤ ./autest.sh --sandbox /tmp/sb --clean=none -f remap_reload
Running Test remap_reload:Warning: Overriding file object /tmp/sb/remap_reload/ts/config/remap.config
Warning: Overriding file object /tmp/sb/remap_reload/ts/config/remap.config
........ Passed
``1 parent 69d1c79 commit a0f4cf5
1 file changed
+28
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
18 | 32 | | |
19 | 33 | | |
20 | 34 | | |
| |||
54 | 68 | | |
55 | 69 | | |
56 | 70 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
63 | 77 | | |
64 | 78 | | |
65 | | - | |
| 79 | + | |
66 | 80 | | |
67 | 81 | | |
68 | 82 | | |
| |||
75 | 89 | | |
76 | 90 | | |
77 | 91 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
84 | 98 | | |
85 | 99 | | |
86 | 100 | | |
87 | 101 | | |
88 | 102 | | |
89 | | - | |
| 103 | + | |
90 | 104 | | |
91 | 105 | | |
92 | 106 | | |
| |||
0 commit comments