maytasm3 commented on a change in pull request #9501: Adding s3, gcs, azure integration tests URL: https://github.com/apache/druid/pull/9501#discussion_r393220762
########## File path: integration-tests/src/test/java/org/apache/druid/tests/indexer/ITAzureParallelIndexTest.java ########## @@ -0,0 +1,139 @@ +/* + * 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.druid.tests.indexer; + +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import org.apache.druid.indexer.partitions.DynamicPartitionsSpec; +import org.apache.druid.java.util.common.Pair; +import org.apache.druid.java.util.common.StringUtils; +import org.apache.druid.testing.guice.DruidTestModuleFactory; +import org.apache.druid.tests.TestNGGroup; +import org.testng.annotations.DataProvider; +import org.testng.annotations.Guice; +import org.testng.annotations.Test; + +import java.io.Closeable; +import java.util.List; +import java.util.UUID; +import java.util.function.Function; + +/** + * IMPORTANT: + * To run this test, you must: + * 1) Set the variables {@link ITAzureParallelIndexTest#CONTAINER} and {@link ITAzureParallelIndexTest#PATH} for your data + * 2) Copy wikipedia_index_data1.json, wikipedia_index_data2.json, and wikipedia_index_data3.json + * located in integration-tests/src/test/resources/data/batch_index to your Azure at the location set in step 1. + * 3) Provide -Doverride.config.path=<PATH_TO_FILE> with Azure credentials/configs set. See + * integration-tests/docker/environment-configs/override-examples/azure for env vars to provide. + */ +@Test(groups = TestNGGroup.AZURE_DEEP_STORAGE) +@Guice(moduleFactory = DruidTestModuleFactory.class) +public class ITAzureParallelIndexTest extends AbstractITBatchIndexTest +{ + // START: Change this with the configs for your Azure data + private static final String CONTAINER = "my-container"; Review comment: Will change these to configs ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
