mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
* Add support for /mets/public_keys/<keyType> * "files.insertFinalNewline": false * revert and make setttings.json change csharp only * formatting * remove final new line --------- Co-authored-by: Nick Floyd <139819+nickfloyd@users.noreply.github.com>
29 lines
817 B
C#
29 lines
817 B
C#
using System.Threading.Tasks;
|
|
using Xunit;
|
|
|
|
namespace Octokit.Tests.Integration.Clients
|
|
{
|
|
public class PublicKeysClientTests
|
|
{
|
|
public class TheGetMethod
|
|
{
|
|
[IntegrationTest]
|
|
public async Task CanRetrievePublicKeys()
|
|
{
|
|
var github = Helper.GetAnonymousClient();
|
|
|
|
var result = await github.Meta.PublicKeys.Get(PublicKeyType.SecretScanning);
|
|
|
|
Assert.NotNull(result);
|
|
Assert.Equal(2, result.PublicKeys.Count);
|
|
|
|
Assert.NotNull(result.PublicKeys[0].KeyIdentifier);
|
|
Assert.NotNull(result.PublicKeys[0].Key);
|
|
|
|
Assert.NotNull(result.PublicKeys[1].KeyIdentifier);
|
|
Assert.NotNull(result.PublicKeys[1].Key);
|
|
}
|
|
}
|
|
}
|
|
}
|