Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ public class CloudAccessTest extends BaseFeature {
*/
@Override
public void beforeClass() throws Exception {
if (ProtocolUtils.getProtocol() == ProtocolEnum.HDFS) {
return;
}
// Initialize server objects
String random = UUID.randomUUID().toString();
s3PathRead = String.format("gpdb-ud-scratch/tmp/pxf_automation_data_read/%s/" , random);
Expand All @@ -64,6 +61,9 @@ public void beforeClass() throws Exception {

@Override
protected void beforeMethod() throws Exception {
if (ProtocolUtils.getProtocol() == ProtocolEnum.HDFS) {
return;
}
super.beforeMethod();
prepareData();
}
Expand Down
21 changes: 21 additions & 0 deletions concourse/docker/pxf-cbdb-dev/ubuntu/script/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,27 @@ feature_test(){
}

gpdb_test() {
export PROTOCOL=HDFS
export PXF_HOME=${PXF_HOME:-/usr/local/pxf}
export PATH="${PXF_HOME}/bin:${PATH}"
ensure_gpupgrade_helpers
ensure_testplugin_jar

# Make sure core services are alive before preparing configs
health_check_with_retry || true

export PGHOST=127.0.0.1
export PATH="${GPHOME}/bin:${PATH}"
ensure_testuser_pg_hba
# Clean stale state from previous runs so gpdb suite starts fresh
cleanup_hdfs_test_data
hdfs dfs -rm -r -f /tmp/pxf_automation_data >/dev/null 2>&1 || true
cleanup_hive_state
cleanup_hbase_state

# Ensure PXF points to local HDFS/Hive/HBase configs
configure_pxf_default_hdfs_server

echo "[run_tests] Starting GROUP=gpdb"
make GROUP="gpdb" || true
save_test_reports "gpdb"
Expand Down
Loading