Skip to content

Commit be09120

Browse files
author
YangSen-qn
committed
pfop
1 parent a070b0b commit be09120

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/main/java/com/qiniu/processing/OperationManager.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ public String pfop(String bucket, String key, String fops, String pipeline, bool
155155
public String pfop(String bucket, String key, String fops, String pipeline, String notifyURL, boolean force)
156156
throws QiniuException {
157157
StringMap params = new StringMap()
158-
.putNotEmpty("type", "1")
159158
.putNotEmpty("pipeline", pipeline)
160159
.putNotEmpty("notifyURL", notifyURL)
161160
.putWhen("force", 1, force);

src/test/java/test/com/qiniu/processing/PfopTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import com.qiniu.storage.Configuration;
99
import com.qiniu.storage.Region;
1010
import com.qiniu.util.Auth;
11-
import com.qiniu.util.StringMap;
1211
import com.qiniu.util.StringUtils;
1312
import com.qiniu.util.UrlSafeBase64;
1413
import org.junit.jupiter.api.Tag;
@@ -142,7 +141,7 @@ private void testPfopIsSuccess(String jobid) {
142141

143142
@Test
144143
@Tag("IntegrationTest")
145-
public void testPfopA() {
144+
void testPfopA() {
146145
try {
147146
Auth auth = TestConfig.testAuth;
148147
Map<String, Region> bucketKeyMap = new HashMap<String, Region>();
@@ -160,6 +159,7 @@ public void testPfopA() {
160159

161160
OperationStatus status = operationManager.prefop(bucket, jobID);
162161
assertNotNull(status, "1. prefop type error");
162+
assertNotNull(status.creationDate, "1. prefop type error");
163163
assertTrue(status.code == 0 || status.code == 1 || status.code == 3, "2. prefop type error");
164164
assertEquals("1", status.type, "3. prefop type error");
165165
}

0 commit comments

Comments
 (0)