Skip to content

Commit

Permalink
[Improve][Transform-V2] Add transform factory test (#3887)
Browse files Browse the repository at this point in the history
* [Improve][Transform-V2] Add transform factory test

* Increase two pipeline wait time
  • Loading branch information
TaoZex authored Jan 9, 2023
1 parent 9069609 commit 8b914de
Show file tree
Hide file tree
Showing 5 changed files with 121 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public void testBatchJobRestoreIn3NodeWorkerDown() throws ExecutionException, In
// shutdown on worker node
node2.shutdown();

Awaitility.await().atMost(200000, TimeUnit.MILLISECONDS)
Awaitility.await().atMost(400000, TimeUnit.MILLISECONDS)
.untilAsserted(() -> Assertions.assertTrue(
objectCompletableFuture.isDone() && JobStatus.FINISHED.equals(objectCompletableFuture.get())));

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.seatunnel.transform;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public class CopyFieldTransformFactoryTest {

@Test
public void testOptionRule() throws Exception {
CopyFieldTransformFactory copyFieldTransformFactory = new CopyFieldTransformFactory();
Assertions.assertNotNull(copyFieldTransformFactory.optionRule());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.seatunnel.transform;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public class FilterFieldTransformFactoryTest {

@Test
public void testOptionRule() throws Exception {
FilterFieldTransformFactory filterFieldTransformFactory = new FilterFieldTransformFactory();
Assertions.assertNotNull(filterFieldTransformFactory.optionRule());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.seatunnel.transform;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public class FilterRowKindTransformFactoryTest {

@Test
public void testOptionRule() throws Exception {
FilterRowKindTransformFactory filterRowKindTransformFactory = new FilterRowKindTransformFactory();
Assertions.assertNotNull(filterRowKindTransformFactory.optionRule());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.seatunnel.transform;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public class SplitTransformFactoryTest {

@Test
public void testOptionRule() throws Exception {
SplitTransformFactory splitTransformFactory = new SplitTransformFactory();
Assertions.assertNotNull(splitTransformFactory.optionRule());
}
}

0 comments on commit 8b914de

Please sign in to comment.