From commits-return-10797-archive-asf-public=cust-asf.ponee.io@pulsar.incubator.apache.org Tue Jul 10 20:59:01 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 6DDB818078F for ; Tue, 10 Jul 2018 20:58:59 +0200 (CEST) Received: (qmail 64439 invoked by uid 500); 10 Jul 2018 18:58:58 -0000 Mailing-List: contact commits-help@pulsar.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pulsar.incubator.apache.org Delivered-To: mailing list commits@pulsar.incubator.apache.org Received: (qmail 64348 invoked by uid 99); 10 Jul 2018 18:58:58 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jul 2018 18:58:58 +0000 From: GitBox To: commits@pulsar.apache.org Subject: [GitHub] sijie commented on a change in pull request #2101: [WIP] Migrate compaction test to testcontainers Message-ID: <153124913792.9464.6167814236807565213.gitbox@gitbox.apache.org> Date: Tue, 10 Jul 2018 18:58:57 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit sijie commented on a change in pull request #2101: [WIP] Migrate compaction test to testcontainers URL: https://github.com/apache/incubator-pulsar/pull/2101#discussion_r201455555 ########## File path: tests/integration/compaction/src/test/java/org/apache/pulsar/tests/integration/TestCompaction.java ########## @@ -98,22 +88,16 @@ public void testPublishCompactAndConsumeCLI() throws Exception { } } - @Test - public void testPublishCompactAndConsumeRest() throws Exception { - PulsarClusterUtils.runOnAnyBroker(docker, clusterName, - PulsarClusterUtils.PULSAR_ADMIN, "tenants", - "create", "compaction-test-rest", "--allowed-clusters", clusterName, - "--admin-roles", "admin"); - PulsarClusterUtils.runOnAnyBroker(docker, clusterName, - PulsarClusterUtils.PULSAR_ADMIN, "namespaces", - "create", "compaction-test-rest/ns1"); - PulsarClusterUtils.runOnAnyBroker(docker, clusterName, - PulsarClusterUtils.PULSAR_ADMIN, "namespaces", + @Test(dataProvider = "ServiceUrls") + public void testPublishCompactAndConsumeRest(String serviceUrl) throws Exception { + + this.createTenantName("compaction-test-rest", clusterName, "admin"); Review comment: add randomized name as suffix after `compaction-test-rest` clusterName should pulsarCluster.getClusterName() ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services