Commit f00b5fa
committed
config_test: add a failing test to showcase that uploader_id missing
I found that, in venafi cloud key pair service account mode, the
arbitrary path segment "/no" was now missing due to my refactoring. This
commit adds a unit test to show this.
Test result:
--- FAIL: Test_ValidateAndCombineConfig_VenafiCloudKeyPair (0.00s)
--- FAIL: Test_ValidateAndCombineConfig_VenafiCloudKeyPair/server,_uploader_id,_and_cluster_name_are_correctly_passed (0.00s)
envtest.go:188: fake api.venafi.cloud received request: POST /v1/oauth/token/serviceaccount
envtest.go:188: fake api.venafi.cloud received request: POST /v1/tlspk/upload/clusterdata
config_test.go:586:
Error: Not equal:
expected: "/v1/tlspk/upload/clusterdata/no"
actual : "/v1/tlspk/upload/clusterdata"
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-/v1/tlspk/upload/clusterdata/no
+/v1/tlspk/upload/clusterdata
Test: Test_ValidateAndCombineConfig_VenafiCloudKeyPair/server,_uploader_id,_and_cluster_name_are_correctly_passed1 parent 23f26bd commit f00b5fa
File tree
3 files changed
+74
-22
lines changed- pkg
- agent
- client
- testutil
3 files changed
+74
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
85 | 84 | | |
86 | 85 | | |
87 | 86 | | |
| |||
572 | 571 | | |
573 | 572 | | |
574 | 573 | | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
575 | 609 | | |
576 | 610 | | |
577 | | - | |
| 611 | + | |
578 | 612 | | |
579 | 613 | | |
580 | 614 | | |
| |||
588 | 622 | | |
589 | 623 | | |
590 | 624 | | |
591 | | - | |
| 625 | + | |
592 | 626 | | |
593 | 627 | | |
594 | 628 | | |
| |||
626 | 660 | | |
627 | 661 | | |
628 | 662 | | |
629 | | - | |
| 663 | + | |
630 | 664 | | |
631 | 665 | | |
632 | 666 | | |
| |||
654 | 688 | | |
655 | 689 | | |
656 | 690 | | |
657 | | - | |
| 691 | + | |
658 | 692 | | |
659 | 693 | | |
660 | 694 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | 46 | | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
112 | | - | |
| 114 | + | |
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
| |||
270 | 272 | | |
271 | 273 | | |
272 | 274 | | |
273 | | - | |
| 275 | + | |
274 | 276 | | |
275 | 277 | | |
276 | 278 | | |
| |||
325 | 327 | | |
326 | 328 | | |
327 | 329 | | |
328 | | - | |
| 330 | + | |
329 | 331 | | |
330 | 332 | | |
331 | 333 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| 27 | + | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
126 | | - | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
127 | 130 | | |
128 | | - | |
129 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
130 | 141 | | |
131 | 142 | | |
132 | 143 | | |
133 | 144 | | |
134 | | - | |
135 | | - | |
| 145 | + | |
| 146 | + | |
136 | 147 | | |
137 | | - | |
138 | | - | |
| 148 | + | |
| 149 | + | |
139 | 150 | | |
140 | | - | |
| 151 | + | |
141 | 152 | | |
142 | 153 | | |
143 | 154 | | |
| |||
180 | 191 | | |
181 | 192 | | |
182 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
183 | 202 | | |
184 | 203 | | |
185 | 204 | | |
186 | 205 | | |
| 206 | + | |
187 | 207 | | |
188 | 208 | | |
189 | 209 | | |
| |||
194 | 214 | | |
195 | 215 | | |
196 | 216 | | |
197 | | - | |
198 | 217 | | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | 218 | | |
203 | 219 | | |
204 | 220 | | |
| |||
0 commit comments