Browse Source

增加单元测试+工作流复制

pull/53/head
JeshuaRen 6 months ago
parent
commit
e5c9e525ad
2 changed files with 5 additions and 0 deletions
  1. +4
    -0
      sdks/pcmscheduler/jobset.go
  2. +1
    -0
      sdks/uploader/models.go

+ 4
- 0
sdks/pcmscheduler/jobset.go View File

@@ -29,6 +29,10 @@ func (c *Client) GetClusterInfo(req GetClusterInfoReq, token string) ([]ClusterD
return nil, err
}

//all, err := io.ReadAll(resp.Body)
//str := string(all)
//println(str)

contType := resp.Header.Get("Content-Type")
if strings.Contains(contType, http2.ContentTypeJSON) {



+ 1
- 0
sdks/uploader/models.go View File

@@ -169,6 +169,7 @@ type PackageCloneParam struct {
ClusterID schsdk.ClusterID `json:"clusterID"`
Output string `json:"output"`
ImageID schsdk.ImageID `json:"imageID"`
IsUpload bool `json:"isUpload"`
}

type PackageCloneVO struct {


Loading…
Cancel
Save