From 3e98e53b4f9f172f15b4b29544ee188a1d918383 Mon Sep 17 00:00:00 2001 From: Rahul Srivastava Date: Thu, 10 Aug 2023 10:32:30 +0530 Subject: [PATCH] Testing --- TestOSS.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/TestOSS.cs b/TestOSS.cs index 30d64df..96b9bd9 100644 --- a/TestOSS.cs +++ b/TestOSS.cs @@ -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()); @@ -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;