Package org.apache.hive.ptest.execution.conf

Examples of org.apache.hive.ptest.execution.conf.Context


    context.put("branch", "trunk");
    context.put("repository", "repo");
    context.put("repositoryName", "repoName");
    context.put("antArgs", "-Dsome=thing");
    context.put("logsURL", "http://ec2-174-129-184-35.compute-1.amazonaws.com/logs");
    TestConfiguration configuration = new TestConfiguration(new Context(context), logger);
    configuration.setJiraName("HIVE-4892");
    JIRAService service = new JIRAService(logger, configuration, "test-123");
    List<String> messages = Lists.newArrayList("msg1", "msg2");
    SortedSet<String> failedTests = Sets.newTreeSet(Collections.singleton("failed"));
    service.postComment(false, 5, failedTests, messages);
View Full Code Here


    context.put("jiraPassword", "password goes here");
    context.put("branch", "trunk");
    context.put("repository", "repo");
    context.put("repositoryName", "repoName");
    context.put("antArgs", "-Dsome=thing");
    TestConfiguration configuration = new TestConfiguration(new Context(context), logger);
    configuration.setJiraName("HIVE-4892");
    JIRAService service = new JIRAService(logger, configuration, "test-123");
    List<String> messages = Lists.newArrayList("msg1", "msg2");
    SortedSet<String> failedTests = Sets.newTreeSet(Collections.singleton("failed"));
    service.postComment(false, 5, failedTests, messages);
View Full Code Here

    @Override
    public ExecutionContextProvider build(Context context, String workingDirectory) throws Exception {
      String privateKey = Preconditions.checkNotNull(context.getString(PRIVATE_KEY), PRIVATE_KEY + " is required");
      Set<Host> hosts = Sets.newHashSet();
      for(String alias : Splitter.on(" ").omitEmptyStrings().split(context.getString("hosts", ""))) {
        Context hostContext = new Context(context.getSubProperties(
            Joiner.on(".").join("host", alias, "")));
        LOG.info("Processing host {}: {}", alias, hostContext.getParameters().toString());
        hosts.add(new Host(hostContext.getString("host"), hostContext.getString("user"),
            Iterables.toArray(Splitter.on(",").trimResults().split(hostContext.getString("localDirs")), String.class),
            hostContext.getInteger("threads")));
      }
      Preconditions.checkState(hosts.size() > 0, "no hosts specified");
      ExecutionContextProvider hostProvider = new FixedExecutionContextProvider(hosts, workingDirectory, privateKey);
      return hostProvider;
    }
View Full Code Here

TOP

Related Classes of org.apache.hive.ptest.execution.conf.Context

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.