From 2c681686110f211662899d9936ff4181c758ae5e Mon Sep 17 00:00:00 2001 From: Kynan Ware <47394200+BagToad@users.noreply.github.com> Date: Mon, 15 Sep 2025 13:52:14 -0600 Subject: [PATCH] Rename testdata log files for clarity Renamed sample log input and expected output files in testdata to use a consistent 'log-*-input.txt' and 'log-*-want.txt' naming scheme. Updated references in log_test.go to match the new file names for improved clarity and maintainability. --- pkg/cmd/agent-task/shared/log_test.go | 8 ++++---- .../shared/testdata/{sample-log-1.txt => log-1-input.txt} | 0 .../testdata/{sample-log-1.want.txt => log-1-want.txt} | 0 .../shared/testdata/{sample-log-2.txt => log-2-input.txt} | 0 .../testdata/{sample-log-2.want.txt => log-2-want.txt} | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename pkg/cmd/agent-task/shared/testdata/{sample-log-1.txt => log-1-input.txt} (100%) rename pkg/cmd/agent-task/shared/testdata/{sample-log-1.want.txt => log-1-want.txt} (100%) rename pkg/cmd/agent-task/shared/testdata/{sample-log-2.txt => log-2-input.txt} (100%) rename pkg/cmd/agent-task/shared/testdata/{sample-log-2.want.txt => log-2-want.txt} (100%) diff --git a/pkg/cmd/agent-task/shared/log_test.go b/pkg/cmd/agent-task/shared/log_test.go index 408240dd1..f5913bf4b 100644 --- a/pkg/cmd/agent-task/shared/log_test.go +++ b/pkg/cmd/agent-task/shared/log_test.go @@ -19,13 +19,13 @@ func TestFollow(t *testing.T) { }{ { name: "sample log 1", - log: "testdata/sample-log-1.txt", - want: "testdata/sample-log-1.want.txt", + log: "testdata/log-1-input.txt", + want: "testdata/log-1-want.txt", }, { name: "sample log 2", - log: "testdata/sample-log-2.txt", - want: "testdata/sample-log-2.want.txt", + log: "testdata/log-2-input.txt", + want: "testdata/log-2-want.txt", }, } diff --git a/pkg/cmd/agent-task/shared/testdata/sample-log-1.txt b/pkg/cmd/agent-task/shared/testdata/log-1-input.txt similarity index 100% rename from pkg/cmd/agent-task/shared/testdata/sample-log-1.txt rename to pkg/cmd/agent-task/shared/testdata/log-1-input.txt diff --git a/pkg/cmd/agent-task/shared/testdata/sample-log-1.want.txt b/pkg/cmd/agent-task/shared/testdata/log-1-want.txt similarity index 100% rename from pkg/cmd/agent-task/shared/testdata/sample-log-1.want.txt rename to pkg/cmd/agent-task/shared/testdata/log-1-want.txt diff --git a/pkg/cmd/agent-task/shared/testdata/sample-log-2.txt b/pkg/cmd/agent-task/shared/testdata/log-2-input.txt similarity index 100% rename from pkg/cmd/agent-task/shared/testdata/sample-log-2.txt rename to pkg/cmd/agent-task/shared/testdata/log-2-input.txt diff --git a/pkg/cmd/agent-task/shared/testdata/sample-log-2.want.txt b/pkg/cmd/agent-task/shared/testdata/log-2-want.txt similarity index 100% rename from pkg/cmd/agent-task/shared/testdata/sample-log-2.want.txt rename to pkg/cmd/agent-task/shared/testdata/log-2-want.txt