Skip to content

Commit 10392e7

Browse files
committed
return disable logging for scale and reconfig tests
1 parent 75b765d commit 10392e7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

tests/suite/reconfig_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,11 @@ var _ = Describe("Reconfiguration Performance Testing", Ordered, Label("nfr", "r
101101
data := bytes.NewBufferString(fileString)
102102
appliedResources = append(appliedResources, namespace)
103103

104-
if err := resourceManager.ApplyFromBuffer(data, namespace); err != nil {
104+
if err := resourceManager.ApplyFromBuffer(
105+
data,
106+
namespace,
107+
framework.WithLoggingDisabled(), // disable logging to avoid huge logs for 150 resources
108+
); err != nil {
105109
manifestErr := fmt.Errorf("error processing manifest file: %w", err)
106110
GinkgoWriter.Printf(
107111
"ERROR on creating and applying unique resources, could proceed %v\n the error happened on %q: %v\n",

tests/suite/scale_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ The logs are attached only if there are errors.
440440
for i := range len(objects.ScaleIterationGroups) {
441441
Expect(resourceManager.Apply(
442442
objects.ScaleIterationGroups[i],
443+
framework.WithLoggingDisabled(), // disable logging to avoid huge log
443444
)).To(Succeed())
444445

445446
if i == 0 {
@@ -477,7 +478,7 @@ The logs are attached only if there are errors.
477478
url,
478479
address,
479480
timeoutConfig.RequestTimeout,
480-
framework.WithLoggingDisabled(), // disable logging to avoid huge logs
481+
framework.WithLoggingDisabled(), // disable logging to avoid huge log for 1000 requests
481482
),
482483
).WithTimeout(6 * timeoutConfig.RequestTimeout).WithPolling(100 * time.Millisecond).Should(Succeed())
483484

0 commit comments

Comments
 (0)