From 842e940c241a614fc6222a4945e8817959c65f40 Mon Sep 17 00:00:00 2001 From: Pandu Masabathula Date: Thu, 27 Jan 2022 15:15:49 +0530 Subject: [PATCH] Bump PeterO.Cbor library version to 4.5.2 (#131) * PeterO.Cbor library min version to 4.5.2 * updated feature file changes * handle escape chars in patterns --- .pubnub.yml | 19 +-- CHANGELOG | 4 + src/Api/PubnubApi/EndPoint/TokenManager.cs | 1 + src/Api/PubnubApi/Properties/AssemblyInfo.cs | 4 +- src/Api/PubnubApi/PubnubApi.csproj | 6 +- src/Api/PubnubApiPCL/PubnubApiPCL.csproj | 6 +- src/Api/PubnubApiUWP/PubnubApiUWP.csproj | 6 +- .../PubnubApi.ConsoleExample/App.config | 4 + .../PubnubApi.ConsoleExample.csproj | 21 ++-- .../PubnubApi.ConsoleExample/packages.config | 9 +- .../Features/grant-token.feature | 29 ++--- .../Features/grant-token.feature.cs | 118 ++++-------------- .../Features/revoke-token.feature.cs | 2 +- .../AcceptanceTests/Steps/GrantTokenSteps.cs | 31 ----- 14 files changed, 89 insertions(+), 171 deletions(-) diff --git a/.pubnub.yml b/.pubnub.yml index a040ba92e..404dd4df7 100644 --- a/.pubnub.yml +++ b/.pubnub.yml @@ -1,8 +1,13 @@ name: c-sharp -version: "6.1.0" +version: "6.2.0" schema: 1 scm: github.com/pubnub/c-sharp changelog: + - date: 2022-01-27 + version: v6.2.0 + changes: + - type: improvement + text: "Bumped PeterO.Cbor library version to 4.5.2." - date: 2022-01-20 version: v6.1.0 changes: @@ -631,7 +636,7 @@ features: - QUERY-PARAM supported-platforms: - - version: Pubnub 'C#' 6.1.0 + version: Pubnub 'C#' 6.2.0 platforms: - Windows 10 and up - Windows Server 2008 and up @@ -641,7 +646,7 @@ supported-platforms: - .Net Framework 4.5 - .Net Framework 4.6.1+ - - version: PubnubPCL 'C#' 6.1.0 + version: PubnubPCL 'C#' 6.2.0 platforms: - Xamarin.Android - Xamarin.iOS @@ -660,7 +665,7 @@ supported-platforms: - .Net Standard 2.1 - .Net Core - - version: PubnubUWP 'C#' 6.1.0 + version: PubnubUWP 'C#' 6.2.0 platforms: - Windows Phone 10 - Universal Windows Apps @@ -684,7 +689,7 @@ sdks: distribution-type: source distribution-repository: GitHub package-name: Pubnub - location: https://github.com/pubnub/c-sharp/releases/tag/v6.1.0.0 + location: https://github.com/pubnub/c-sharp/releases/tag/v6.2.0.0 requires: - name: ".Net" @@ -981,7 +986,7 @@ sdks: distribution-type: source distribution-repository: GitHub package-name: PubNubPCL - location: https://github.com/pubnub/c-sharp/releases/tag/v6.1.0.0 + location: https://github.com/pubnub/c-sharp/releases/tag/v6.2.0.0 requires: - name: ".Net Core" @@ -1354,7 +1359,7 @@ sdks: distribution-type: source distribution-repository: GitHub package-name: PubnubUWP - location: https://github.com/pubnub/c-sharp/releases/tag/v6.1.0.0 + location: https://github.com/pubnub/c-sharp/releases/tag/v6.2.0.0 requires: - name: "Universal Windows Platform Development" diff --git a/CHANGELOG b/CHANGELOG index 3f693a8cf..c3487539d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,7 @@ +v6.2.0 - January 27 2022 +----------------------------- +- Modified: bumped PeterO.Cbor library version to 4.5.2. + v6.1.0 - January 20 2022 ----------------------------- - Fixed: capture region when exception occur during subscribe. diff --git a/src/Api/PubnubApi/EndPoint/TokenManager.cs b/src/Api/PubnubApi/EndPoint/TokenManager.cs index a1a63a4cc..daf64f993 100644 --- a/src/Api/PubnubApi/EndPoint/TokenManager.cs +++ b/src/Api/PubnubApi/EndPoint/TokenManager.cs @@ -187,6 +187,7 @@ private string ReplaceBoundaryQuotes(string key) && key.Substring(key.Length - 1, 1).CompareTo("\"") == 0) { key = key.Remove(key.Length - 1, 1).Remove(0, 1); + key = Regex.Unescape(key); } return key; } diff --git a/src/Api/PubnubApi/Properties/AssemblyInfo.cs b/src/Api/PubnubApi/Properties/AssemblyInfo.cs index 4486dd98f..ff4a67d74 100644 --- a/src/Api/PubnubApi/Properties/AssemblyInfo.cs +++ b/src/Api/PubnubApi/Properties/AssemblyInfo.cs @@ -11,8 +11,8 @@ [assembly: AssemblyProduct("Pubnub C# SDK")] [assembly: AssemblyCopyright("Copyright © 2021")] [assembly: AssemblyTrademark("")] -[assembly: AssemblyVersion("6.1.0.0")] -[assembly: AssemblyFileVersion("6.1.0.0")] +[assembly: AssemblyVersion("6.2.0.0")] +[assembly: AssemblyFileVersion("6.2.0.0")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. diff --git a/src/Api/PubnubApi/PubnubApi.csproj b/src/Api/PubnubApi/PubnubApi.csproj index 797e7dd50..a5f75d79b 100644 --- a/src/Api/PubnubApi/PubnubApi.csproj +++ b/src/Api/PubnubApi/PubnubApi.csproj @@ -13,7 +13,7 @@ Pubnub - 6.1.0.0 + 6.2.0.0 PubNub C# .NET - Web Data Push API Pandu Masabathula PubNub @@ -21,7 +21,7 @@ http://pubnub.s3.amazonaws.com/2011/powered-by-pubnub/pubnub-icon-600x600.png true https://github.com/pubnub/c-sharp/ - Capture region when exception occur during subscribe. + Bumped PeterO.Cbor library version to 4.5.2. Web Data Push Real-time Notifications ESB Message Broadcasting Distributed Computing PubNub is a Massively Scalable Web Push Service for Web and Mobile Games. This is a cloud-based service for broadcasting messages to thousands of web and mobile clients simultaneously @@ -62,7 +62,7 @@ None - + diff --git a/src/Api/PubnubApiPCL/PubnubApiPCL.csproj b/src/Api/PubnubApiPCL/PubnubApiPCL.csproj index 3c3a682eb..7f4ab805b 100644 --- a/src/Api/PubnubApiPCL/PubnubApiPCL.csproj +++ b/src/Api/PubnubApiPCL/PubnubApiPCL.csproj @@ -14,7 +14,7 @@ PubnubPCL - 6.1.0.0 + 6.2.0.0 PubNub C# .NET - Web Data Push API Pandu Masabathula PubNub @@ -22,7 +22,7 @@ http://pubnub.s3.amazonaws.com/2011/powered-by-pubnub/pubnub-icon-600x600.png true https://github.com/pubnub/c-sharp/ - Capture region when exception occur during subscribe. + Bumped PeterO.Cbor library version to 4.5.2. Web Data Push Real-time Notifications ESB Message Broadcasting Distributed Computing PubNub is a Massively Scalable Web Push Service for Web and Mobile Games. This is a cloud-based service for broadcasting messages to thousands of web and mobile clients simultaneously @@ -584,7 +584,7 @@ None - + diff --git a/src/Api/PubnubApiUWP/PubnubApiUWP.csproj b/src/Api/PubnubApiUWP/PubnubApiUWP.csproj index 7cacc0091..e25b84dc4 100644 --- a/src/Api/PubnubApiUWP/PubnubApiUWP.csproj +++ b/src/Api/PubnubApiUWP/PubnubApiUWP.csproj @@ -15,7 +15,7 @@ PubnubUWP - 6.1.0.0 + 6.2.0.0 PubNub C# .NET - Web Data Push API Pandu Masabathula PubNub @@ -23,7 +23,7 @@ http://pubnub.s3.amazonaws.com/2011/powered-by-pubnub/pubnub-icon-600x600.png true https://github.com/pubnub/c-sharp/ - Capture region when exception occur during subscribe. + Bumped PeterO.Cbor library version to 4.5.2. Web Data Push Real-time Notifications ESB Message Broadcasting Distributed Computing PubNub is a Massively Scalable Web Push Service for Web and Mobile Games. This is a cloud-based service for broadcasting messages to thousands of web and mobile clients simultaneously @@ -672,7 +672,7 @@ 9.0.1 - + diff --git a/src/Examples/PubnubApi.ConsoleExample/App.config b/src/Examples/PubnubApi.ConsoleExample/App.config index d2cbce536..49b92f82b 100644 --- a/src/Examples/PubnubApi.ConsoleExample/App.config +++ b/src/Examples/PubnubApi.ConsoleExample/App.config @@ -9,6 +9,10 @@ + + + + diff --git a/src/Examples/PubnubApi.ConsoleExample/PubnubApi.ConsoleExample.csproj b/src/Examples/PubnubApi.ConsoleExample/PubnubApi.ConsoleExample.csproj index 52e2aa974..0792e04ae 100644 --- a/src/Examples/PubnubApi.ConsoleExample/PubnubApi.ConsoleExample.csproj +++ b/src/Examples/PubnubApi.ConsoleExample/PubnubApi.ConsoleExample.csproj @@ -39,20 +39,17 @@ PubnubApiDemo.PubnubExample - - ..\..\packages\Portable.BouncyCastle.1.8.1.2\lib\net4\BouncyCastle.Crypto.dll - - - ..\..\packages\PeterO.Cbor.4.4.4\lib\net40\CBOR.dll + + ..\..\packages\PeterO.Cbor.4.5.2\lib\net40\CBOR.dll ..\..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll - - ..\..\packages\PeterO.Numbers.1.8.1\lib\net40\Numbers.dll + + ..\..\packages\PeterO.Numbers.1.8.2\lib\net40\Numbers.dll - - ..\..\packages\Pubnub.5.1.0\lib\net461\Pubnub.dll + + ..\..\packages\Pubnub.6.1.0\lib\net461\Pubnub.dll @@ -67,6 +64,12 @@ + + ..\..\packages\System.Security.Cryptography.Algorithms.4.3.0\lib\net461\System.Security.Cryptography.Algorithms.dll + + + ..\..\packages\System.Security.Cryptography.Primitives.4.3.0\lib\net46\System.Security.Cryptography.Primitives.dll + ..\..\packages\System.ValueTuple.4.4.0\lib\net461\System.ValueTuple.dll diff --git a/src/Examples/PubnubApi.ConsoleExample/packages.config b/src/Examples/PubnubApi.ConsoleExample/packages.config index 9d4e0f77e..f0bc7d8e7 100644 --- a/src/Examples/PubnubApi.ConsoleExample/packages.config +++ b/src/Examples/PubnubApi.ConsoleExample/packages.config @@ -1,11 +1,10 @@  - - + + - - + @@ -17,6 +16,8 @@ + + \ No newline at end of file diff --git a/src/UnitTests/AcceptanceTests/Features/grant-token.feature b/src/UnitTests/AcceptanceTests/Features/grant-token.feature index ee42b8f7f..b6b3b1c7b 100644 --- a/src/UnitTests/AcceptanceTests/Features/grant-token.feature +++ b/src/UnitTests/AcceptanceTests/Features/grant-token.feature @@ -142,19 +142,16 @@ Feature: Grant an access token * the error detail location is 'permissions.patterns.uuids.(!<[^>]+>)+' * the error detail location type is 'body' - Scenario: Validate that a token containing authorized uuid can be parsed correctly - Given I have a known token containing an authorized UUID - When I parse the token - Then the parsed token output contains the authorized UUID "test-authorized-uuid" - - Scenario: Validate that a token containing uuid resource permissions can be parsed correctly - Given I have a known token containing UUID resource permissions - When I parse the token - Then the token has 'uuid-1' UUID resource access permissions - * token resource permission GET - - Scenario: Validate that a token containing uuid pattern permissions can be parsed correctly - Given I have a known token containing UUID pattern Permissions - When I parse the token - Then the token has '^uuid-\S*$' UUID pattern access permissions - * token pattern permission GET + @contract=grantWithTTLExceedMaxTTL @beta + Scenario: Attempt to grant an access token when ttl provided exceeds the max ttl configured (use default max 43200 for the test) + Given the TTL 43201 + Given the 'channel-1' CHANNEL resource access permissions + * grant resource permission READ + When I attempt to grant a token specifying those permissions + Then an error is returned + * the error status code is 400 + * the error message is 'Invalid ttl' + * the error source is 'grant' + * the error detail message is 'Range should be 1 to 43200 minute(s).' + * the error detail location is 'ttl' + * the error detail location type is 'body' diff --git a/src/UnitTests/AcceptanceTests/Features/grant-token.feature.cs b/src/UnitTests/AcceptanceTests/Features/grant-token.feature.cs index 283aeb662..299ba3b92 100644 --- a/src/UnitTests/AcceptanceTests/Features/grant-token.feature.cs +++ b/src/UnitTests/AcceptanceTests/Features/grant-token.feature.cs @@ -659,13 +659,19 @@ public virtual void AttemptToGrantAnAccessTokenWithARegularExpressionContainingC } [NUnit.Framework.TestAttribute()] - [NUnit.Framework.DescriptionAttribute("Validate that a token containing authorized uuid can be parsed correctly")] - public virtual void ValidateThatATokenContainingAuthorizedUuidCanBeParsedCorrectly() + [NUnit.Framework.DescriptionAttribute("Attempt to grant an access token when ttl provided exceeds the max ttl configured" + + " (use default max 43200 for the test)")] + [NUnit.Framework.CategoryAttribute("contract=grantWithTTLExceedMaxTTL")] + [NUnit.Framework.CategoryAttribute("beta")] + public virtual void AttemptToGrantAnAccessTokenWhenTtlProvidedExceedsTheMaxTtlConfiguredUseDefaultMax43200ForTheTest() { - string[] tagsOfScenario = ((string[])(null)); + string[] tagsOfScenario = new string[] { + "contract=grantWithTTLExceedMaxTTL", + "beta"}; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Validate that a token containing authorized uuid can be parsed correctly", null, tagsOfScenario, argumentsOfScenario, this._featureTags); -#line 145 + TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Attempt to grant an access token when ttl provided exceeds the max ttl configured" + + " (use default max 43200 for the test)", null, tagsOfScenario, argumentsOfScenario, this._featureTags); +#line 146 this.ScenarioInitialize(scenarioInfo); #line hidden bool isScenarioIgnored = default(bool); @@ -688,110 +694,38 @@ public virtual void ValidateThatATokenContainingAuthorizedUuidCanBeParsedCorrect #line 8 this.FeatureBackground(); #line hidden -#line 146 - testRunner.Given("I have a known token containing an authorized UUID", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); -#line hidden #line 147 - testRunner.When("I parse the token", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); + testRunner.Given("the TTL 43201", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 148 - testRunner.Then("the parsed token output contains the authorized UUID \"test-authorized-uuid\"", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); + testRunner.Given("the \'channel-1\' CHANNEL resource access permissions", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden - } - this.ScenarioCleanup(); - } - - [NUnit.Framework.TestAttribute()] - [NUnit.Framework.DescriptionAttribute("Validate that a token containing uuid resource permissions can be parsed correctl" + - "y")] - public virtual void ValidateThatATokenContainingUuidResourcePermissionsCanBeParsedCorrectly() - { - string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Validate that a token containing uuid resource permissions can be parsed correctl" + - "y", null, tagsOfScenario, argumentsOfScenario, this._featureTags); -#line 150 - this.ScenarioInitialize(scenarioInfo); +#line 149 + testRunner.And("grant resource permission READ", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "* "); #line hidden - bool isScenarioIgnored = default(bool); - bool isFeatureIgnored = default(bool); - if ((tagsOfScenario != null)) - { - isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); - } - if ((this._featureTags != null)) - { - isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); - } - if ((isScenarioIgnored || isFeatureIgnored)) - { - testRunner.SkipScenario(); - } - else - { - this.ScenarioStart(); -#line 8 - this.FeatureBackground(); +#line 150 + testRunner.When("I attempt to grant a token specifying those permissions", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); #line hidden #line 151 - testRunner.Given("I have a known token containing UUID resource permissions", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); + testRunner.Then("an error is returned", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 152 - testRunner.When("I parse the token", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); + testRunner.And("the error status code is 400", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "* "); #line hidden #line 153 - testRunner.Then("the token has \'uuid-1\' UUID resource access permissions", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); + testRunner.And("the error message is \'Invalid ttl\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "* "); #line hidden #line 154 - testRunner.And("token resource permission GET", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "* "); + testRunner.And("the error source is \'grant\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "* "); #line hidden - } - this.ScenarioCleanup(); - } - - [NUnit.Framework.TestAttribute()] - [NUnit.Framework.DescriptionAttribute("Validate that a token containing uuid pattern permissions can be parsed correctly" + - "")] - public virtual void ValidateThatATokenContainingUuidPatternPermissionsCanBeParsedCorrectly() - { - string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Validate that a token containing uuid pattern permissions can be parsed correctly" + - "", null, tagsOfScenario, argumentsOfScenario, this._featureTags); -#line 156 - this.ScenarioInitialize(scenarioInfo); +#line 155 + testRunner.And("the error detail message is \'Range should be 1 to 43200 minute(s).\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "* "); #line hidden - bool isScenarioIgnored = default(bool); - bool isFeatureIgnored = default(bool); - if ((tagsOfScenario != null)) - { - isScenarioIgnored = tagsOfScenario.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); - } - if ((this._featureTags != null)) - { - isFeatureIgnored = this._featureTags.Where(__entry => __entry != null).Where(__entry => String.Equals(__entry, "ignore", StringComparison.CurrentCultureIgnoreCase)).Any(); - } - if ((isScenarioIgnored || isFeatureIgnored)) - { - testRunner.SkipScenario(); - } - else - { - this.ScenarioStart(); -#line 8 - this.FeatureBackground(); +#line 156 + testRunner.And("the error detail location is \'ttl\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "* "); #line hidden #line 157 - testRunner.Given("I have a known token containing UUID pattern Permissions", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); -#line hidden -#line 158 - testRunner.When("I parse the token", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When "); -#line hidden -#line 159 - testRunner.Then("the token has \'^uuid-\\S*$\' UUID pattern access permissions", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); -#line hidden -#line 160 - testRunner.And("token pattern permission GET", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "* "); + testRunner.And("the error detail location type is \'body\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "* "); #line hidden } this.ScenarioCleanup(); diff --git a/src/UnitTests/AcceptanceTests/Features/revoke-token.feature.cs b/src/UnitTests/AcceptanceTests/Features/revoke-token.feature.cs index 3f64e9f66..9f5649309 100644 --- a/src/UnitTests/AcceptanceTests/Features/revoke-token.feature.cs +++ b/src/UnitTests/AcceptanceTests/Features/revoke-token.feature.cs @@ -242,7 +242,7 @@ public virtual void RevokeATokenWhileItIsDisabledOnAServer() testRunner.Then("an error is returned", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then "); #line hidden #line 33 - testRunner.And("the error status code is 403", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "* "); + testRunner.And("the error status code is 400", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "* "); #line hidden #line 34 testRunner.And("the error message is \'Feature disabled\'", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "* "); diff --git a/src/UnitTests/AcceptanceTests/Steps/GrantTokenSteps.cs b/src/UnitTests/AcceptanceTests/Steps/GrantTokenSteps.cs index 097941380..20c8735c7 100644 --- a/src/UnitTests/AcceptanceTests/Steps/GrantTokenSteps.cs +++ b/src/UnitTests/AcceptanceTests/Steps/GrantTokenSteps.cs @@ -370,24 +370,6 @@ public void GivenDenyResourcePermissionGET() if (perms != null) { perms.Get = false; } } - [Given(@"I have a known token containing an authorized UUID")] - public void GivenIHaveAKnownTokenContainingAnAuthorizedUUID() - { - tokenInput = "qEF2AkF0GmFR_FBDdHRsGDxDcmVzpURjaGFuoWljaGFubmVsLTEBQ2dycKBDdXNyoENzcGOgRHV1aWSgQ3BhdKVEY2hhbqBDZ3JwoEN1c3KgQ3NwY6BEdXVpZKBEbWV0YaBEdXVpZHR0ZXN0LWF1dGhvcml6ZWQtdXVpZENzaWdYIFWxUdc4iRLk0cIxDsxghOqCZMf9etqTf9AyecSF8USJ"; - } - - [Given(@"I have a known token containing UUID resource permissions")] - public void GivenIHaveAKnownTokenContainingUUIDResourcePermissions() - { - tokenInput = "qEF2AkF0GmFR_9NDdHRsGDxDcmVzpURjaGFuoWljaGFubmVsLTEY70NncnChb2NoYW5uZWxfZ3JvdXAtMQVDdXNyoENzcGOgRHV1aWShZnV1aWQtMRhoQ3BhdKVEY2hhbqFtXmNoYW5uZWwtXFMqJBjvQ2dycKF0XjpjaGFubmVsX2dyb3VwLVxTKiQFQ3VzcqBDc3BjoER1dWlkoWpedXVpZC1cUyokGGhEbWV0YaBEdXVpZHR0ZXN0LWF1dGhvcml6ZWQtdXVpZENzaWdYIA4H1-yMh8cJZwYYxJyMO0yfS6AsCzluKeOZ2OuHPT_5"; - } - - [Given(@"I have a known token containing UUID pattern Permissions")] - public void GivenIHaveAKnownTokenContainingUUIDPatternPermissions() - { - tokenInput = "qEF2AkF0GmFR_9NDdHRsGDxDcmVzpURjaGFuoWljaGFubmVsLTEY70NncnChb2NoYW5uZWxfZ3JvdXAtMQVDdXNyoENzcGOgRHV1aWShZnV1aWQtMRhoQ3BhdKVEY2hhbqFtXmNoYW5uZWwtXFMqJBjvQ2dycKF0XjpjaGFubmVsX2dyb3VwLVxTKiQFQ3VzcqBDc3BjoER1dWlkoWpedXVpZC1cUyokGGhEbWV0YaBEdXVpZHR0ZXN0LWF1dGhvcml6ZWQtdXVpZENzaWdYIA4H1-yMh8cJZwYYxJyMO0yfS6AsCzluKeOZ2OuHPT_5"; - } - [When(@"I grant a token specifying those permissions")] public async Task WhenIGrantATokenSpecifyingThosePermissions() { @@ -795,18 +777,5 @@ public void ThenTheErrorDetailLocationTypeIs(string p0) Assert.Fail(); } } - - [Then(@"the parsed token output contains the authorized UUID ""(.*)""")] - public void ThenTheParsedTokenOutputContainsTheAuthorizedUUID(string p0) - { - if (tokenContent != null) - { - Assert.AreEqual(p0, tokenContent.AuthorizedUuid); - } - else - { - Assert.Fail(); - } - } } }