-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: simplify test setup with private key
- Loading branch information
Showing
12 changed files
with
35 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-----BEGIN PRIVATE KEY----- MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC5tb9yvkGc/CAq dl3YzyixNc8kBQzTsLXEKtXmrZGsuyFgnaI4ea4sLj7Woxg+T7GR7ZTQpkFLiLvv vWXnTBHcF/sU3aW4NWkHZV2XUMFY8wvyjdq/T0x1sz0jHIanyRJQIbcIB5MeNeaS 8byimsKvVv82sW7fNDDgGMdbLIr32H82D5egS7K5ZZRQNkzU6MmsI+BGe9vehQ7e OE0pkRzghmmIe1thxX8BRMVcCRcRdgnJ+IFqeCHcpq4wovhD2O7Wix19JepJDv6J /aS8VP70G/OATOeGaELsZmeRDhXqqtB47ywr8h2dHSwlc3iP9vn3mfINqmgCNpbx mWeTkv+JAgMBAAECggEAAZL4TfUt4jJC5Yk+T2WmHyZpHJGMY8j2KXUBfiSPfQrT BBoh81+Yqdg0gSY9wN11EFsWrVQTbpv4l9YfpH/BEQAFCU69pluRidYCnpM5KFNb ERHBvmhiKgc8Z+1IeOib5qD6h69kwFdNnoY9BpXQO6M9o42KdorfNS8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E KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace Vonage.Common.Test.TestHelpers; | ||
|
||
public static class TokenHelper | ||
{ | ||
private const string FilePath = "./TestHelpers/key.txt"; | ||
|
||
/// <summary> | ||
/// Loads the key from the text file. | ||
/// </summary> | ||
/// <returns>The key.</returns> | ||
public static string GetKey() => File.ReadAllText(FilePath); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters