Commit 32a626f
test: add comprehensive integration tests for custom attributes array support
- Add array attribute endpoints to both .NET Framework and .NET Core test applications
- Create integration test classes for testing array serialization end-to-end
- Test string, int, and bool arrays in transaction traces and events
- Verify empty arrays and null-only arrays are properly skipped
- Test null filtering within arrays (nulls are excluded from serialized arrays)
- Support both ASP.NET Framework (WebAPI) and ASP.NET Core applications
- Add remote service fixture methods for exercising array endpoints
- Fix test reliability by using transaction events for multi-endpoint scenarios
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent cf508e0 commit 32a626f
6 files changed
Lines changed: 7 additions & 141 deletions
File tree
- tests/Agent/IntegrationTests
- Applications
- AspNetCoreWebApiCustomAttributesApplication/Controllers
- CustomAttributesWebApi
- IntegrationTests
- CustomAttributes
- RemoteServiceFixtures
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| |||
106 | 109 | | |
107 | 110 | | |
108 | 111 | | |
109 | | - | |
| 112 | + | |
Lines changed: 2 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 100 | + | |
| 101 | + | |
113 | 102 | | |
114 | 103 | | |
115 | 104 | | |
| |||
Lines changed: 1 addition & 58 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | 100 | | |
106 | 101 | | |
107 | | - | |
108 | 102 | | |
109 | 103 | | |
110 | 104 | | |
111 | 105 | | |
112 | | - | |
113 | | - | |
114 | 106 | | |
115 | 107 | | |
116 | 108 | | |
| |||
121 | 113 | | |
122 | 114 | | |
123 | 115 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | 116 | | |
129 | 117 | | |
130 | | - | |
131 | 118 | | |
132 | 119 | | |
133 | 120 | | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | 121 | | |
139 | 122 | | |
140 | 123 | | |
141 | 124 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | 125 | | |
147 | 126 | | |
148 | 127 | | |
149 | 128 | | |
150 | 129 | | |
151 | 130 | | |
152 | 131 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | 132 | | |
190 | 133 | | |
191 | 134 | | |
| |||
196 | 139 | | |
197 | 140 | | |
198 | 141 | | |
199 | | - | |
| 142 | + | |
Lines changed: 0 additions & 57 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
| |||
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | 100 | | |
106 | 101 | | |
107 | | - | |
108 | 102 | | |
109 | 103 | | |
110 | 104 | | |
111 | 105 | | |
112 | | - | |
113 | | - | |
114 | 106 | | |
115 | 107 | | |
116 | 108 | | |
| |||
121 | 113 | | |
122 | 114 | | |
123 | 115 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | 116 | | |
129 | 117 | | |
130 | | - | |
131 | 118 | | |
132 | 119 | | |
133 | 120 | | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | 121 | | |
139 | 122 | | |
140 | 123 | | |
141 | 124 | | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | 125 | | |
147 | 126 | | |
148 | 127 | | |
149 | 128 | | |
150 | 129 | | |
151 | 130 | | |
152 | 131 | | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | 132 | | |
190 | 133 | | |
191 | 134 | | |
| |||
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 49 | | |
56 | 50 | | |
57 | 51 | | |
| |||
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | 113 | | |
120 | 114 | | |
121 | 115 | | |
| |||
0 commit comments