Skip to content

Commit fef3e36

Browse files
committed
Release Aspose.Cells Cloud SDK 20.11
1 parent 6abfa21 commit fef3e36

File tree

7 files changed

+4961
-4903
lines changed

7 files changed

+4961
-4903
lines changed

Aspose.Cells.Cloud.SDK.Test/Api/CellsAutoshapesApiTests.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ public void Cleanup()
5151
[Test]
5252
public void CellsAutoshapesGetWorksheetAutoshapeTest()
5353
{
54+
if(IsDockerTest)
55+
{
56+
Assert.IsTrue(true);
57+
return;
58+
}
5459
// TODO uncomment below to test the method and replace null with proper value
5560
string name = MYDOC;
5661
string sheetName = SHEET2;
@@ -66,6 +71,11 @@ public void CellsAutoshapesGetWorksheetAutoshapeTest()
6671
[Test]
6772
public void CellsAutoshapesGetWorksheetAutoshapeDTOTest()
6873
{
74+
if (IsDockerTest)
75+
{
76+
Assert.IsTrue(true);
77+
return;
78+
}
6979
// TODO uncomment below to test the method and replace null with proper value
7080
string name = MYDOC;
7181
string sheetName = SHEET2;
@@ -81,6 +91,11 @@ public void CellsAutoshapesGetWorksheetAutoshapeDTOTest()
8191
[Test]
8292
public void CellsAutoshapesGetWorksheetAutoshapesTest()
8393
{
94+
if (IsDockerTest)
95+
{
96+
Assert.IsTrue(true);
97+
return;
98+
}
8499
// TODO uncomment below to test the method and replace null with proper value
85100
string name = MYDOC;
86101
string sheetName = SHEET2;

Aspose.Cells.Cloud.SDK.Test/Api/CellsBaseTest.cs

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,22 @@ namespace Aspose.Cells.Cloud.SDK.Test
88

99
public class CellsBaseTest
1010
{
11-
protected string testbaseurl = @"http://199.83.230.208";
11+
protected string testbaseurl
12+
{
13+
get { return Environment.GetEnvironmentVariable("CellsCloudTestApiBaseUrl"); }
14+
}
1215
protected string apiVersion = @"v3.0";
1316
protected ApiClient client;
1417
protected Client.Configuration config;
1518
protected string grantType = "client_credentials";
16-
protected string clientId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx";
17-
protected string clientSecret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
19+
protected string clientId
20+
{
21+
get { return Environment.GetEnvironmentVariable("CellsCloudTestClientId"); }
22+
}
23+
protected string clientSecret
24+
{
25+
get { return Environment.GetEnvironmentVariable("CellsCloudTestClientSecret"); }
26+
}
1827
protected static string accesstoken;
1928
protected string refreshtoken;
2029
protected string BOOK1 = "Book1.xlsx";
@@ -33,7 +42,10 @@ public class CellsBaseTest
3342
protected string CellName = "A1";
3443
protected string RANGE = "A1:C10";
3544
protected string CELLAREA = "A1:C10";
36-
protected bool IsDockerTest = true;
45+
protected bool IsDockerTest
46+
{
47+
get { return Convert.ToBoolean( Environment.GetEnvironmentVariable("CellsCloudTestIsDockerTest")); }
48+
}
3749

3850
private string TestDataFolder
3951
{

Aspose.Cells.Cloud.SDK.Test/Api/CellsWorkbookApiTests.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ public void CellsWorkbookPutDocumentProtectFromChangesTest()
503503
public void CellsWorkbookPutWorkbookCreateTest()
504504
{
505505
// TODO uncomment below to test the method and replace null with proper value
506-
string name = "NewBook" + DateTime.Now.ToString("yymmddhhmiss") + ".xlsx";
506+
string name = "NewBook" + Guid.NewGuid().ToString() + ".xlsx";
507507
string templateFile = BOOK1;
508508
string dataFile = "ReportData.xml";
509509
string folder = TEMPFOLDER;
@@ -519,6 +519,11 @@ public void CellsWorkbookPutWorkbookCreateTest()
519519
[Test]
520520
public void CellsWorkbookPostWorkbooksTextSearchTestForDropBox()
521521
{
522+
if(IsDockerTest)
523+
{
524+
Assert.IsTrue(true);
525+
return;
526+
}
522527
string name = BOOK1;
523528
string text = "test";
524529
string folder = TEMPFOLDER;
@@ -531,6 +536,11 @@ public void CellsWorkbookPostWorkbooksTextSearchTestForDropBox()
531536
[Test]
532537
public void CellsWorkbookPostWorkbookSaveAsTestForDropBox()
533538
{
539+
if (IsDockerTest)
540+
{
541+
Assert.IsTrue(true);
542+
return;
543+
}
534544
string name = BOOK1;
535545
string folder = TEMPFOLDER;
536546
UpdateDataFileToOtherStorage(instance, folder, name, "DropBox");

Aspose.Cells.Cloud.SDK.Test/Api/OAuthApiTests.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,13 @@ public void Cleanup()
5858
[Test]
5959
public void OAuthPostTest()
6060
{
61+
if(IsDockerTest)
62+
{
63+
Assert.IsTrue(true);
64+
return;
65+
}
6166
// TODO uncomment below to test the method and replace null with proper value
62-
instance.Configuration.ApiClient = new ApiClient("https://api-qa.aspose.cloud");
67+
instance.Configuration.ApiClient = new ApiClient(Environment.GetEnvironmentVariable("CellsCloudTestApiBaseUrl"));
6368
var response = instance.OAuthPost(grantType, clientId, clientSecret);
6469
Assert.IsInstanceOf<AccessTokenResponse>(response, "response is AccessTokenResponse");
6570
Assert.IsNotNull(response.AccessToken);

0 commit comments

Comments
 (0)