Skip to content

Commit 4d25def

Browse files
committed
Release Aspose.Cells Cloud SDK 20.11
1 parent 63d842f commit 4d25def

File tree

5 files changed

+33
-11
lines changed

5 files changed

+33
-11
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@
2020
- Fetch the required shape from worksheet.
2121
- Leverage the power of named ranges.
2222

23-
## Enhancements in Version 20.10
23+
## Enhancements in Version 20.11
2424

25-
- Support to upload large file.
26-
- Enhancement for post sparkline group API.
25+
- Support Aspose.Cells Cloud for Docker.
2726

2827
## Read & Write Spreadsheet Formats
2928

api_cells.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
"os"
3232
)
3333
func Version() {
34-
fmt.Println("---Version: 20.10.0---")
34+
fmt.Println("---Version: 20.11.0---")
3535
}
3636

3737
/* Create Instance of CellsApiService

api_cells_test.go

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ import (
2626
"fmt"
2727
"os"
2828
"testing"
29+
"strconv"
2930
)
30-
31+
var isDockerSDK , errcon = strconv.ParseBool( os.Getenv("CellsCloudTestIsDockerTest"))
3132
func TestCellsAutoFilterDeleteWorksheetDateFilter(t *testing.T) {
3233
name := GetBook1()
3334
if err := GetBaseTest().UploadFile(name); err != nil {
@@ -385,6 +386,9 @@ func TestCellsAutoFilterPutWorksheetIconFilter(t *testing.T) {
385386
}
386387

387388
func TestCellsAutoshapesGetWorksheetAutoshape(t *testing.T) {
389+
if isDockerSDK {
390+
return
391+
}
388392
name := GetMyDoc()
389393
if err := GetBaseTest().UploadFile(name); err != nil {
390394
t.Error(err)
@@ -408,6 +412,9 @@ func TestCellsAutoshapesGetWorksheetAutoshape(t *testing.T) {
408412
}
409413

410414
func TestCellsAutoshapesGetWorksheetAutoshapes(t *testing.T) {
415+
if isDockerSDK {
416+
return
417+
}
411418
name := GetMyDoc()
412419
if err := GetBaseTest().UploadFile(name); err != nil {
413420
t.Error(err)
@@ -4617,7 +4624,7 @@ func TestCellsWorkbookPostWorkbooksMerge(t *testing.T) {
46174624
}
46184625
args := new(CellsWorkbookPostWorkbooksMergeOpts)
46194626
args.Name = GetBook1()
4620-
args.MergeWith = GetBaseTest().remoteFolder + "/" + GetMyDoc()
4627+
args.MergeWith = GetMyDoc()
46214628
args.Folder = GetBaseTest().remoteFolder
46224629

46234630
response, httpResponse, err := GetBaseTest().CellsAPI.CellsWorkbookPostWorkbooksMerge(args)
@@ -5844,6 +5851,9 @@ func TestGetDiscUsage(t *testing.T) {
58445851
}
58455852

58465853
func TestGetFileVersions(t *testing.T) {
5854+
if isDockerSDK {
5855+
return
5856+
}
58475857
args := new(GetFileVersionsOpts)
58485858
args.Path = "GoTest"
58495859

@@ -5877,12 +5887,22 @@ func TestMoveFile(t *testing.T) {
58775887
if err := GetBaseTest().UploadFile(name); err != nil {
58785888
t.Error(err)
58795889
}
5890+
args := new(DeleteFileOpts)
5891+
args.Path = "GoTest/MvTest.xlsx"
58805892

5881-
args := new(MoveFileOpts)
5882-
args.SrcPath = "GoTest/" + GetBook1()
5883-
args.DestPath = "GoTest/MvTest.xlsx"
5893+
httpResponse, err := GetBaseTest().CellsAPI.DeleteFile(args)
5894+
if err != nil {
5895+
t.Error(err)
5896+
} else if httpResponse.StatusCode < 200 || httpResponse.StatusCode > 299 {
5897+
t.Fail()
5898+
} else {
5899+
fmt.Printf("%d\tTestDeleteFile - %d\n", GetBaseTest().GetTestNumber(), httpResponse.StatusCode)
5900+
}
5901+
args1 := new(MoveFileOpts)
5902+
args1.SrcPath = "GoTest/" + GetBook1()
5903+
args1.DestPath = "GoTest/MvTest.xlsx"
58845904

5885-
httpResponse, err := GetBaseTest().CellsAPI.MoveFile(args)
5905+
httpResponse, err = GetBaseTest().CellsAPI.MoveFile(args1)
58865906
if err != nil {
58875907
t.Error(err)
58885908
} else if httpResponse.StatusCode < 200 || httpResponse.StatusCode > 299 {

base_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func NewBaseTest() *BaseTest {
5959
localTestDataFolder: "TestData/",
6060
TestNumber: 0,
6161
// Get App key and App SID from https://aspose.cloud
62-
CellsAPI: NewCellsApiService("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx", "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "https://api-qa.aspose.cloud", "v3.0"),
62+
CellsAPI: NewCellsApiService(os.Getenv("CellsCloudTestClientId"), os.Getenv("CellsCloudTestClientSecret"), os.Getenv("CellsCloudTestApiBaseUrl"), "v3.0"),
6363
}
6464
return bt
6565
}

client.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,9 @@ func strlen(s string) (int) {
407407

408408
// addAuth add Authorization header to request
409409
func (a *APIClient) addAuth(request *http.Request) (err error) {
410+
if(a.cfg.AppKey=="" && a.cfg.AppSid==""){
411+
return nil
412+
}
410413
if (a.cfg.AccessToken == "") {
411414
if err := a.RequestOauthToken(); err != nil {
412415
return err

0 commit comments

Comments
 (0)