Commit 82d8d66
committed
👻 New binding tests. (#997)
Created new test/binding tests using cleaner approach. Uses:
- gomega
- t.Cleanup()
- cmp.Eq()
Eliminates samples. I'm not convinced the variation in samples was
extensive enough to warrant the added complexity. Further, I doubt the
samples are that usable by other projects. The approach here is to
round-trip the most complete version of each resource.
Adds a number of missing bindings.
Adds a number of missing tests.
Adds sorting to the test/cmp.
Adds internal/k8s/seed (configMap).
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Expanded binding APIs: analysis, reports, imports, archetype
assessments, configmap access, file listing, task/taskgroup
enhancements, task attachments, bulk app deletion, and stakeholder
updates.
* **Bug Fixes**
* Manifest queries now eagerly load associations; application fact
deletion scope tightened.
* **Tests**
* Large set of new integration and unit tests covering binding APIs and
resources.
* **Documentation**
* Added binding and binding-test guidelines (CLAUDE.md).
* **Refactor**
* TaskPolicy schema simplified (preempt fields removed).
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Signed-off-by: Jeff Ortel <jortel@redhat.com>1 parent 38ccd89 commit 82d8d66
File tree
81 files changed
+10359
-124
lines changed- .github/workflows
- docs
- hack/cmd/addon
- internal
- api
- resource
- k8s/seed
- resources
- migration/v21/model
- test
- api/setting
- binding
- cmp
- sort
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
81 files changed
+10359
-124
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
48 | 67 | | |
49 | 68 | | |
50 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
17 | 36 | | |
18 | 37 | | |
19 | 38 | | |
| |||
26 | 45 | | |
27 | 46 | | |
28 | 47 | | |
29 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
138 | 142 | | |
139 | 143 | | |
140 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8549 | 8549 | | |
8550 | 8550 | | |
8551 | 8551 | | |
8552 | | - | |
8553 | | - | |
8554 | | - | |
8555 | | - | |
8556 | | - | |
8557 | | - | |
8558 | 8552 | | |
8559 | 8553 | | |
8560 | 8554 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
157 | | - | |
| 158 | + | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| |||
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
181 | | - | |
| 182 | + | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1061 | 1061 | | |
1062 | 1062 | | |
1063 | 1063 | | |
1064 | | - | |
1065 | | - | |
| 1064 | + | |
1066 | 1065 | | |
1067 | 1066 | | |
1068 | 1067 | | |
| |||
1071 | 1070 | | |
1072 | 1071 | | |
1073 | 1072 | | |
1074 | | - | |
1075 | | - | |
| 1073 | + | |
1076 | 1074 | | |
1077 | 1075 | | |
1078 | 1076 | | |
1079 | | - | |
1080 | 1077 | | |
1081 | 1078 | | |
1082 | 1079 | | |
1083 | | - | |
| 1080 | + | |
1084 | 1081 | | |
1085 | 1082 | | |
1086 | 1083 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| 60 | + | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
| |||
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| 103 | + | |
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
0 commit comments