Skip to content

Commit

Permalink
address the comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
horizonzy committed Nov 2, 2023
1 parent 0d3840d commit b303fe0
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 4 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/pr-unit-tests-jdk17.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,15 @@ jobs:
CLOUD_BUCKET_NAME: ${{ secrets.CLOUD_BUCKET_NAME }}
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
run: mvn test -Pcloud
run: mvn test -Pcloud -Dtest="!org.apache.pulsar.ecosystem.io.lakehouse.sink.hudi.HoodieTestS3Cloud"

- name: cloud test after build
if: github.event_name == 'push'
env:
CLOUD_BUCKET_NAME: ${{ secrets.CLOUD_BUCKET_NAME }}
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
run: mvn test -Pcloud -Dtest='org.apache.pulsar.ecosystem.io.lakehouse.sink.hudi.HoodieTestS3Cloud'

- name: package surefire artifacts
if: failure()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/**
* 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.pulsar.ecosystem.io.lakehouse.sink.hudi;

import java.net.URI;
import org.apache.pulsar.ecosystem.io.lakehouse.SinkConnectorConfig;
import org.testng.annotations.DataProvider;

public class HoodieTestS3Cloud extends HoodieWriterTest {

private static final String STORAGE_S3 = "S3";

private URI testPath;
private SinkConnectorConfig sinkConfig;

@DataProvider(name = "storage")
public Object[][] storageType() {
return new Object[][]{
{STORAGE_S3}
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ public class HoodieWriterTest {

private static final Path PROJECT_DATA = FileSystems.getDefault().getPath("data").toAbsolutePath();
private static final String STORAGE_LOCAL = "LOCAL";
private static final String STORAGE_S3 = "S3";
private static final String STORAGE_GCS = "GCS";

private URI testPath;
private SinkConnectorConfig sinkConfig;
Expand All @@ -77,7 +75,6 @@ public class HoodieWriterTest {
public Object[][] storageType() {
return new Object[][]{
{STORAGE_LOCAL}
// , {STORAGE_S3}
};
}

Expand Down

0 comments on commit b303fe0

Please sign in to comment.