From 8c69a99b1f0d68da6570535de69e369d31788a87 Mon Sep 17 00:00:00 2001 From: mark-robustelli <137117976+mark-robustelli@users.noreply.github.com> Date: Tue, 27 Feb 2024 20:08:57 -0700 Subject: [PATCH] updating test to pass --- .../test/io/fusionauth/FusionAuthClientTest.cs | 6 ++++-- .../test/io/fusionauth/JWTOtherFieldsTest.json | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/fusionauth-netcore-client-test/fusionauth-netcore-client-test/test/io/fusionauth/FusionAuthClientTest.cs b/fusionauth-netcore-client-test/fusionauth-netcore-client-test/test/io/fusionauth/FusionAuthClientTest.cs index 90e61621..3c0ab218 100644 --- a/fusionauth-netcore-client-test/fusionauth-netcore-client-test/test/io/fusionauth/FusionAuthClientTest.cs +++ b/fusionauth-netcore-client-test/fusionauth-netcore-client-test/test/io/fusionauth/FusionAuthClientTest.cs @@ -295,11 +295,12 @@ public void Retrieve_RefreshTokens_Test() { var response = test.client.RetrieveRefreshTokens((Guid) test.user.id); test.assertSuccess(response); - Assert.IsNull(response.successResponse.refreshTokens); + Assert.AreEqual(0, response.successResponse.refreshTokens.Count); } [Test] public void Update_Application_Test() { + //requires licensed version of FusionAuth test.createApplication() .updateApplication(test.application.with(a => a.name = "CSharp Client Test (Updated)")); @@ -468,7 +469,8 @@ public void identityProviders() { .with(ipr => ipr.identityProvider = new ExternalJWTIdentityProvider() .with(idp => idp.name = "C# IdentityProvider") .with(idp => idp.headerKeyParameter = "kid") - .with(idp => idp.uniqueIdentityClaim = "username"))); + .with(idp => idp.uniqueIdentityClaim = "username") + .with(idp => idp.type = IdentityProviderType.ExternalJWT))); test.assertSuccess(createResponse); retrieveResponse = test.client.RetrieveIdentityProviders(); diff --git a/fusionauth-netcore-client-test/fusionauth-netcore-client-test/test/io/fusionauth/JWTOtherFieldsTest.json b/fusionauth-netcore-client-test/fusionauth-netcore-client-test/test/io/fusionauth/JWTOtherFieldsTest.json index 2a56b18f..9b8fa852 100644 --- a/fusionauth-netcore-client-test/fusionauth-netcore-client-test/test/io/fusionauth/JWTOtherFieldsTest.json +++ b/fusionauth-netcore-client-test/fusionauth-netcore-client-test/test/io/fusionauth/JWTOtherFieldsTest.json @@ -2,8 +2,8 @@ "applicationId": "00000000-0000-0000-0000-000000000000", "authenticationType": "PASSWORD", "email": "example@fusionauth.io", - "exp": 1504112919754, - "iat": 1504103919754, + "exp": 1504112919, + "iat": 1504103919, "iss": "acme.com", "roles": [ "role 1",