Browse Source

更新测试

xuzhiheng 4 years ago
parent
commit
6cf539ddc5
1 changed files with 13 additions and 0 deletions
  1. 13 0
      rpc/test/jyfs_rpc_test.go

+ 13 - 0
rpc/test/jyfs_rpc_test.go

@@ -126,3 +126,16 @@ func Test_UpdateFileMeta(t *testing.T) {
 	log.Println("err ", err)
 	log.Println("req ", res)
 }
+
+// 更新文件元数据
+func Test_GetOssUrl(t *testing.T) {
+	ctx, _ := context.WithTimeout(context.Background(), 5*time.Second)
+	FileSystem := filesystemclient.NewFileSystem(zrpc.MustNewClient(C.FileSystemConf))
+	req := &filesystem.LoadFileReq{
+		Domain: "jy-oss-xzh",
+		FileId: "que.txt",
+	}
+	res, err := FileSystem.GetOssUril(ctx, req)
+	log.Println("err ", err)
+	log.Println("req ", res)
+}