From e8dc042168f3c1fb3999caff8d98bf76e98c8996 Mon Sep 17 00:00:00 2001 From: Frank Merkel <138444693+frankmer@users.noreply.github.com> Date: Wed, 18 Dec 2024 14:28:16 +0100 Subject: [PATCH] fixes tests --- .../api/privacy_idea_container_api_test.dart | 30 +------------------ 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/test/unit_test/api/privacy_idea_container_api_test.dart b/test/unit_test/api/privacy_idea_container_api_test.dart index f5c01e09..aa6bbdcc 100644 --- a/test/unit_test/api/privacy_idea_container_api_test.dart +++ b/test/unit_test/api/privacy_idea_container_api_test.dart @@ -393,7 +393,7 @@ void _testPrivacyIdeaContainerApi() { } final publicEncKeyClientB64 = invocationBody['public_enc_key_client']; final containerDictClient = - '{"serial":"SMPH00067A2F","type":"smartphone","tokens":[{"6":"HOTP","label":"label1","issuer":"privacyIDEA","pin":"False","algorithm":"SHA1","digits":"6","otp":["435986","964213"],"counter":"5"}]}'; + '{"serial":"SMPH00067A2F","type":"smartphone","tokens":[{"tokentype":"HOTP","label":"label1","issuer":"privacyIDEA","pin":"False","algorithm":"SHA1","digits":"6","otp":["435986","964213"],"counter":"5"}]}'; final signMessage2 = '$containerChallengeNonce|' '$containerChallengeTimeStamp|' @@ -975,34 +975,6 @@ void _testPrivacyIdeaContainerApi() { // Act & Assert expect(() => containerApi.getRolloverQrData(tokenContainer), throwsA(isA())); }); - test('finalizeContainer', () { - // Arrange - final containerApi = PiContainerApi(ioClient: MockPrivacyideaIOClient()); - final tokenContainer = getNewTokenContainer( - withPolicies: ContainerPolicies( - rolloverAllowed: true, - initialTokenTransfer: true, - tokensDeletable: true, - unregisterAllowed: false, - ), - ); - // Act & Assert - expect(() => containerApi.finalizeContainer(tokenContainer), throwsA(isA())); - }); - test('rollover', () { - // Arrange - final containerApi = PiContainerApi(ioClient: MockPrivacyideaIOClient()); - final tokenContainer = getFinalizedTokenContainer( - withPolicies: ContainerPolicies( - rolloverAllowed: false, - initialTokenTransfer: true, - tokensDeletable: true, - unregisterAllowed: true, - ), - ); - // Act & Assert - expect(() => containerApi.getRolloverQrData(tokenContainer), throwsA(isA())); - }); test('unregister', () { // Arrange