integration/helpers: Set a maximum limit of 1 MB for the scan buffer
@@ -70,7 +70,10 @@ func parseJSONArrayOutput[T any](output string, normalize func(*T)) ([]*T, error
func parseMultipleJSONArrayOutput[T any](output string, normalize func(*T)) ([]*T, error) {
allEntries := make([]*T, 0)
+
sc := bufio.NewScanner(strings.NewReader(output))
+ // On ARO we saw arrays with charcounts of > 100,000. Lets just set 1 MB as the limit
+ sc.Buffer(make([]byte, 1024), 1024*1024)
for sc.Scan() {
entries, err := parseJSONArrayOutput(sc.Text(), normalize)
if err != nil {
