From dc6eb4cdde0e12a55edf7b03cd3e564fb34b7e4d Mon Sep 17 00:00:00 2001 From: Adrian Dole Date: Mon, 3 Jun 2024 15:27:49 -0700 Subject: [PATCH] DRIVERS-2732 Remove extra listCollections from KMIP delegated tests (#1591) Remove extra listCollections --- .../etc/test-templates/kmipKMS.yml.template | 8 +------- .../client-side-encryption/tests/legacy/kmipKMS.json | 11 ----------- .../client-side-encryption/tests/legacy/kmipKMS.yml | 8 +------- 3 files changed, 2 insertions(+), 25 deletions(-) diff --git a/source/client-side-encryption/etc/test-templates/kmipKMS.yml.template b/source/client-side-encryption/etc/test-templates/kmipKMS.yml.template index a09291c6cf..35a259abd1 100644 --- a/source/client-side-encryption/etc/test-templates/kmipKMS.yml.template +++ b/source/client-side-encryption/etc/test-templates/kmipKMS.yml.template @@ -55,18 +55,12 @@ tests: arguments: document: &doc1 { _id: 1, encrypted_string_kmip_delegated: "string0" } expectations: - - command_started_event: - command: - listCollections: 1 - filter: - name: *collection_name - command_name: listCollections # Auto encryption will request the collection info. - command_started_event: command: listCollections: 1 filter: - name: datakeys + name: *collection_name command_name: listCollections # Then key is fetched from the key vault. - command_started_event: diff --git a/source/client-side-encryption/tests/legacy/kmipKMS.json b/source/client-side-encryption/tests/legacy/kmipKMS.json index b0ad3e5cbb..349328b433 100644 --- a/source/client-side-encryption/tests/legacy/kmipKMS.json +++ b/source/client-side-encryption/tests/legacy/kmipKMS.json @@ -294,17 +294,6 @@ "command_name": "listCollections" } }, - { - "command_started_event": { - "command": { - "listCollections": 1, - "filter": { - "name": "datakeys" - } - }, - "command_name": "listCollections" - } - }, { "command_started_event": { "command": { diff --git a/source/client-side-encryption/tests/legacy/kmipKMS.yml b/source/client-side-encryption/tests/legacy/kmipKMS.yml index 21b1285ab1..51fa42cc73 100644 --- a/source/client-side-encryption/tests/legacy/kmipKMS.yml +++ b/source/client-side-encryption/tests/legacy/kmipKMS.yml @@ -55,18 +55,12 @@ tests: arguments: document: &doc1 { _id: 1, encrypted_string_kmip_delegated: "string0" } expectations: - - command_started_event: - command: - listCollections: 1 - filter: - name: *collection_name - command_name: listCollections # Auto encryption will request the collection info. - command_started_event: command: listCollections: 1 filter: - name: datakeys + name: *collection_name command_name: listCollections # Then key is fetched from the key vault. - command_started_event: