Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A6CD41786B for ; Fri, 27 Mar 2015 22:15:12 +0000 (UTC) Received: (qmail 38064 invoked by uid 500); 27 Mar 2015 22:15:10 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 37996 invoked by uid 500); 27 Mar 2015 22:15:10 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 37985 invoked by uid 99); 27 Mar 2015 22:15:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2015 22:15:10 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of stefan.enev@ontotext.com designates 93.123.21.89 as permitted sender) Received: from [93.123.21.89] (HELO ontomail.ontotext.com) (93.123.21.89) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2015 22:14:44 +0000 Received: from localhost (localhost [127.0.0.1]) by ontomail.ontotext.com (Postfix) with ESMTP id 6A8FD988EA for ; Sat, 28 Mar 2015 00:14:42 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at ontomail.ontotext.com Received: from ontomail.ontotext.com ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3r3uRTogH8Kv for ; Sat, 28 Mar 2015 00:14:42 +0200 (EET) Received: from Demosten.local (78-83-100-227.spectrumnet.bg [78.83.100.227]) by ontomail.ontotext.com (Postfix) with ESMTPSA id EFF96988E5 for ; Sat, 28 Mar 2015 00:14:41 +0200 (EET) Message-ID: <5515D650.7050607@ontotext.com> Date: Sat, 28 Mar 2015 00:14:40 +0200 From: Stefan User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: users@maven.apache.org Subject: How to run multiple rounds of integration tests in one build Content-Type: multipart/alternative; boundary="------------050201000901080600010607" X-Virus-Checked: Checked by ClamAV on apache.org --------------050201000901080600010607 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi guys, I've been banging my head over the following problem lately and wasn't able to find a solution at all on the interwebs. So, here's some context. I'm working on multiple RESTful APIs within a microservices architecture. Some of these applications can form separate stand alone sub-systems, which can safely be deployed on secured environments with API security turned off. Or, they can be deployed as public services, where some actions need proper authorization - i.e. addition and deletion of content, cluster management, etc. I want to be able to run 2 sets of, basically acceptance tests, within the build of each API. I need to start the APIs with different configurations and execute: 1. all tests against secured API 2. all tests - security tests against unsecured API The setup is also not trivial, as some of the APIs work with Solr/Cassandra/GraphDB, but at least it's the same for all tests and can be reused. The only change between test runs would be a single JVM parameter which turns security on and off. Basically, I want to be able to execute the /pre-integration-test -> integration-tests -> post-integration-test -> verify/ lifecycle phases multiple times. At the moment the best option I can see is to create multiple profiles and run the build multiple times. This has the obvious disadvantages of: 1. unnecessarily repackaging artifacts multiple times 2. can't run all tests with one command, which opens the door for errors on dev machines 3. Jenkins builds will become heavier and again, increased possibility of errors when configuring the jobs Do you have any better ideas? Thanks, Stefan -- Stefan Enev Technical Architect, Publishing Platform Ontotext AD --------------050201000901080600010607--