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: