Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update test package to use TestRunID
  • Loading branch information
mrodm committed Jul 17, 2025
commit 3c5c9c47f9d80a0063f08c61105cbddab08e71bf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
resource "local_file" "log" {
source = "./files/example.log"
filename = "/tmp/service_logs/file.log"
filename = "/tmp/service_logs/file-${var.TEST_RUN_ID}.log"
file_permission = "0777"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ variable "ENVIRONMENT" {
variable "REPO" {
default = "unknown-repo-name"
}

variable "TEST_RUN_ID" {
default = "detached"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ wait_for_data_timeout: 1m
data_stream:
vars:
paths:
- "{{ SERVICE_LOGS_DIR }}/file.log"
- "{{ SERVICE_LOGS_DIR }}/file-{{ TEST_RUN_ID }}.log"
- "{{ SERVICE_LOGS_DIR }}/file_vars.log"
assert:
hit_count: 2
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
variable "TEST_RUN_ID" {
default = "detached"
}

resource "local_file" "log" {
source = "./files/example.log"
filename = "/tmp/service_logs/${var.TEST_RUN_ID}.log"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ variable "ENVIRONMENT" {
variable "REPO" {
default = "unknown-repo-name"
}

variable "TEST_RUN_ID" {
default = "detached"
}