@@ -0,0 +1,2403 @@
+/*%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage io.prestosql.tests.product.launcher.env.configs;%0A%0Aimport com.google.common.base.Splitter;%0A%0Aimport java.util.List;%0Aimport java.util.Optional;%0A%0Aimport static java.lang.System.getenv;%0A%0Apublic class ConfigEnvBased%0A        extends ConfigDefault%0A%7B%0A    @Override%0A    public String getHadoopBaseImage()%0A    %7B%0A        return getEnvOrDefault(%22HADOOP_BASE_IMAGE%22, super.getHadoopBaseImage());%0A    %7D%0A%0A    @Override%0A    public String getImagesVersion()%0A    %7B%0A        return getEnvOrDefault(%22DOCKER_IMAGES_VERSION%22, super.getImagesVersion());%0A    %7D%0A%0A    @Override%0A    public String getHadoopImagesVersion()%0A    %7B%0A        return getEnvOrDefault(%22HADOOP_IMAGES_VERSION%22, super.getHadoopImagesVersion());%0A    %7D%0A%0A    @Override%0A    public String getTemptoEnvironmentConfigFile()%0A    %7B%0A        return getEnvOrDefault(%22TEMPTO_ENVIRONMENT_CONFIG_FILE%22, super.getTemptoEnvironmentConfigFile());%0A    %7D%0A%0A    @Override%0A    public List%3CString%3E getExcludedGroups()%0A    %7B%0A        return Optional%0A                .ofNullable(getenv(%22DISTRO_SKIP_GROUP%22))%0A                .map(value -%3E Splitter.on(',')%0A                        .omitEmptyStrings()%0A                        .trimResults()%0A                        .splitToList(value))%0A                .orElse(super.getExcludedGroups());%0A    %7D%0A%0A    @Override%0A    public List%3CString%3E getExcludedTests()%0A    %7B%0A        return Optional%0A                .ofNullable(getenv(%22DISTRO_SKIP_TEST%22))%0A                .map(value -%3E Splitter.on(',')%0A                        .omitEmptyStrings()%0A                        .trimResults()%0A                        .splitToList(value))%0A                .orElse(super.getExcludedTests());%0A    %7D%0A%0A    private static String getEnvOrDefault(String envKey, String defaultValue)%0A    %7B%0A        return Optional%0A                .ofNullable(getenv(envKey))%0A                .orElse(defaultValue);%0A    %7D%0A%7D%0A

Add ENV based environment config