Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
srivastavarahull committed Aug 10, 2023
1 parent f29c4a4 commit 3e98e53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions TestOSS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public record Token(string AccessToken, DateTime ExpiresAt);
[ClassInitialize]
public static async Task ClassInitializeAsync(TestContext testContext)
{
Console.WriteLine(_clientId);
Console.WriteLine(_clientSecret);

dynamic auth = await new TwoLeggedApi().AuthenticateAsync(_clientId, _clientSecret, "client_credentials", new Scope[] { Scope.BucketCreate, Scope.BucketRead, Scope.DataRead, Scope.DataWrite, Scope.DataCreate });

Console.WriteLine(auth.ToString());
Expand All @@ -40,6 +43,7 @@ public static async Task ClassInitializeAsync(TestContext testContext)
[TestMethod]
public async Task TestGetbucktes()
{

Bucket bucket = await ossApi.GetBucketDetailsAsync(bucketKey, accessToken:token);
string bucketkey = bucket.BucketKey;
string bucketOwner = bucket.BucketOwner;
Expand Down

0 comments on commit 3e98e53

Please sign in to comment.