You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by su...@apache.org on 2023/04/13 00:47:20 UTC

[incubator-opendal] branch cp-rename-nested-depth-up created (now aebf9d96)

This is an automated email from the ASF dual-hosted git repository.

suyanhanx pushed a change to branch cp-rename-nested-depth-up
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


      at aebf9d96 test: Increate copy/move nested path test depth

This branch includes the following new commits:

     new aebf9d96 test: Increate copy/move nested path test depth

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-opendal] 01/01: test: Increate copy/move nested path test depth

Posted by su...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

suyanhanx pushed a commit to branch cp-rename-nested-depth-up
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git

commit aebf9d96e6951cb819528ef65500fc27b9281356
Author: suyanhanx <su...@gmail.com>
AuthorDate: Thu Apr 13 08:46:15 2023 +0800

    test: Increate copy/move nested path test depth
    
    Signed-off-by: suyanhanx <su...@gmail.com>
---
 core/tests/behavior/blocking_copy.rs   | 7 ++++++-
 core/tests/behavior/blocking_rename.rs | 7 ++++++-
 core/tests/behavior/copy.rs            | 7 ++++++-
 core/tests/behavior/rename.rs          | 7 ++++++-
 4 files changed, 24 insertions(+), 4 deletions(-)

diff --git a/core/tests/behavior/blocking_copy.rs b/core/tests/behavior/blocking_copy.rs
index 583a31fb..8cf724c4 100644
--- a/core/tests/behavior/blocking_copy.rs
+++ b/core/tests/behavior/blocking_copy.rs
@@ -167,7 +167,12 @@ pub fn test_copy_nested(op: BlockingOperator) -> Result<()> {
 
     op.write(&source_path, source_content.clone())?;
 
-    let target_path = format!("{}/{}", uuid::Uuid::new_v4(), uuid::Uuid::new_v4());
+    let target_path = format!(
+        "{}/{}/{}",
+        uuid::Uuid::new_v4(),
+        uuid::Uuid::new_v4(),
+        uuid::Uuid::new_v4()
+    );
 
     op.copy(&source_path, &target_path)?;
 
diff --git a/core/tests/behavior/blocking_rename.rs b/core/tests/behavior/blocking_rename.rs
index 093078fe..7222b230 100644
--- a/core/tests/behavior/blocking_rename.rs
+++ b/core/tests/behavior/blocking_rename.rs
@@ -170,7 +170,12 @@ pub fn test_rename_nested(op: BlockingOperator) -> Result<()> {
 
     op.write(&source_path, source_content.clone())?;
 
-    let target_path = format!("{}/{}", uuid::Uuid::new_v4(), uuid::Uuid::new_v4());
+    let target_path = format!(
+        "{}/{}/{}",
+        uuid::Uuid::new_v4(),
+        uuid::Uuid::new_v4(),
+        uuid::Uuid::new_v4()
+    );
 
     op.rename(&source_path, &target_path)?;
 
diff --git a/core/tests/behavior/copy.rs b/core/tests/behavior/copy.rs
index 8f0efbec..e09f6b8d 100644
--- a/core/tests/behavior/copy.rs
+++ b/core/tests/behavior/copy.rs
@@ -170,7 +170,12 @@ pub async fn test_copy_nested(op: Operator) -> Result<()> {
 
     op.write(&source_path, source_content.clone()).await?;
 
-    let target_path = format!("{}/{}", uuid::Uuid::new_v4(), uuid::Uuid::new_v4());
+    let target_path = format!(
+        "{}/{}/{}",
+        uuid::Uuid::new_v4(),
+        uuid::Uuid::new_v4(),
+        uuid::Uuid::new_v4()
+    );
 
     op.copy(&source_path, &target_path).await?;
 
diff --git a/core/tests/behavior/rename.rs b/core/tests/behavior/rename.rs
index 97d15479..14744869 100644
--- a/core/tests/behavior/rename.rs
+++ b/core/tests/behavior/rename.rs
@@ -173,7 +173,12 @@ pub async fn test_rename_nested(op: Operator) -> Result<()> {
 
     op.write(&source_path, source_content.clone()).await?;
 
-    let target_path = format!("{}/{}", uuid::Uuid::new_v4(), uuid::Uuid::new_v4());
+    let target_path = format!(
+        "{}/{}/{}",
+        uuid::Uuid::new_v4(),
+        uuid::Uuid::new_v4(),
+        uuid::Uuid::new_v4()
+    );
 
     op.rename(&source_path, &target_path).await?;