From 3919d0f6cfab8b516cdc7a6432c9eb1f9edcf6d6 Mon Sep 17 00:00:00 2001 From: Tudor Golubenco Date: Thu, 9 Aug 2018 14:42:21 +0200 Subject: [PATCH] Added a BWC test case (#7916) A check that it's possible to add multiple IDs (e.g. for APM, if we need it) without breaking compatibility with older beats. --- libbeat/cloudid/cloudid_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libbeat/cloudid/cloudid_test.go b/libbeat/cloudid/cloudid_test.go index d7ffe4d7808..1944656a9b3 100644 --- a/libbeat/cloudid/cloudid_test.go +++ b/libbeat/cloudid/cloudid_test.go @@ -71,6 +71,11 @@ func TestDecode(t *testing.T) { expectedEsURL: "https://ac31ebb90241773157043c34fd26fd46.us-central1.gcp.cloud.es.io:9243", expectedKibanaURL: "https://a4c06230e48c8fce7be88a074a3bb3e0.us-central1.gcp.cloud.es.io:9244", }, + { + cloudID: "extra-items:dXMtY2VudHJhbDEuZ2NwLmNsb3VkLmVzLmlvJGFjMzFlYmI5MDI0MTc3MzE1NzA0M2MzNGZkMjZmZDQ2JGE0YzA2MjMwZTQ4YzhmY2U3YmU4OGEwNzRhM2JiM2UwJGFub3RoZXJpZCRhbmRhbm90aGVy", + expectedEsURL: "https://ac31ebb90241773157043c34fd26fd46.us-central1.gcp.cloud.es.io:443", + expectedKibanaURL: "https://a4c06230e48c8fce7be88a074a3bb3e0.us-central1.gcp.cloud.es.io:443", + }, } for _, test := range tests {