Skip to content

Commit bd90bf5

Browse files
committed
feat(tests): add new axosyslog s3 fields tests
Signed-off-by: Bence Csati <[email protected]>
1 parent 8093d3f commit bd90bf5

File tree

1 file changed

+18
-14
lines changed
  • pkg/sdk/logging/model/syslogng/config/output_tests

1 file changed

+18
-14
lines changed

pkg/sdk/logging/model/syslogng/config/output_tests/s3_test.go

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ source "main_input" {
134134
};
135135
136136
destination "output_default_test-s3-out" {
137-
s3(url("http://localhost:9000") bucket("s3bucket") access_key("access-key-secret-value") secret_key("secret-key-value") object_key("${HOST}/my-logs") object_key_timestamp("timestamp") template("${MESSAGE}\n") compression(no) compresslevel(9) chunk_size(5) max_object_size(5000) upload_threads(8) max_pending_uploads(32) flush_grace_period(60) region("s3region") storage_class("STANDARD") canned_acl("s3-canned-acl") persist_name("output_default_test-s3-out"));
137+
s3(url("http://localhost:9000") bucket("s3bucket") access_key("access-key-secret-value") secret_key("secret-key-value") role("s3-role") object_key("${HOST}/my-logs") object_key_timestamp("timestamp") template("${MESSAGE}\n") compression(no) compresslevel(9) chunk_size(5) max_object_size(5000) upload_threads(8) max_pending_uploads(32) flush_grace_period(60) region("s3region") server_side_encryption("aws:kms") kms_key("kms-key") storage_class("STANDARD") canned_acl("s3-canned-acl") content_type("application/octet-stream") persist_name("output_default_test-s3-out"));
138138
};
139139
`)
140140

@@ -193,19 +193,23 @@ destination "output_default_test-s3-out" {
193193
},
194194
},
195195
},
196-
ObjectKey: "${HOST}/my-logs",
197-
ObjectKeyTimestamp: "timestamp",
198-
Template: "${MESSAGE}\n",
199-
Compression: config.NewFalse(),
200-
CompressLevel: 9,
201-
ChunkSize: 5,
202-
MaxObjectSize: 5000,
203-
UploadThreads: 8,
204-
MaxPendingUploads: 32,
205-
FlushGracePeriod: 60,
206-
Region: "s3region",
207-
StorageClass: "STANDARD",
208-
CannedAcl: "s3-canned-acl",
196+
Role: "s3-role",
197+
ObjectKey: "${HOST}/my-logs",
198+
ObjectKeyTimestamp: "timestamp",
199+
Template: "${MESSAGE}\n",
200+
Compression: config.NewFalse(),
201+
CompressLevel: 9,
202+
ChunkSize: 5,
203+
MaxObjectSize: 5000,
204+
UploadThreads: 8,
205+
MaxPendingUploads: 32,
206+
FlushGracePeriod: 60,
207+
Region: "s3region",
208+
ServerSideEncryption: "aws:kms",
209+
KmsKey: "kms-key",
210+
StorageClass: "STANDARD",
211+
CannedAcl: "s3-canned-acl",
212+
ContentType: "application/octet-stream",
209213
}},
210214
},
211215
},

0 commit comments

Comments
 (0)