Skip to content

Commit

Permalink
Added a BWC test case (#7916)
Browse files Browse the repository at this point in the history
A check that it's possible to add multiple IDs (e.g. for APM, if we need it)
without breaking compatibility with older beats.
  • Loading branch information
tsg authored and ph committed Aug 9, 2018
1 parent 9621b23 commit 3919d0f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libbeat/cloudid/cloudid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3919d0f

Please sign in to comment.