From dev-return-98097-archive-asf-public=cust-asf.ponee.io@sling.apache.org Tue Jul 2 08:56:02 2019 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 [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id B68B318060E for ; Tue, 2 Jul 2019 10:56:01 +0200 (CEST) Received: (qmail 26522 invoked by uid 500); 2 Jul 2019 08:56:01 -0000 Mailing-List: contact dev-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list dev@sling.apache.org Received: (qmail 26506 invoked by uid 99); 2 Jul 2019 08:56:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jul 2019 08:56:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6A3F3E0632 for ; Tue, 2 Jul 2019 08:56:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2AB8B26192 for ; Tue, 2 Jul 2019 08:56:00 +0000 (UTC) Date: Tue, 2 Jul 2019 08:56:00 +0000 (UTC) From: "Robert Munteanu (JIRA)" To: dev@sling.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (SLING-8553) Add OSGi integration test MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Robert Munteanu created SLING-8553: -------------------------------------- Summary: Add OSGi integration test Key: SLING-8553 URL: https://issues.apache.org/jira/browse/SLING-8553 Project: Sling Issue Type: Task Components: Extensions Reporter: Robert Munteanu Fix For: Connection Timeout Agent 1.0.2 In [sling-org-apache-sling-connection-timeout-agent commit 01d35c7|https://github.com/apache/sling-org-apache-sling-connection-timeout-agent/commit/01d35c7] an OSGi-specific fix was applied but there was no corresponding integration test. The potential fix is to add a Pax-Exam tests which adds: - a HTTP client bundle ( any of the supported ones should do ) - a client using the HTTP client bundle And then assert that the requested class was transformed. It may be a good idea to do the assertion using JMX. The only issue to consider is that I did not find good information on running Pax-Exam with JUnit 5. We currently use JUnit 5 for the connection timeout agent. -- This message was sent by Atlassian JIRA (v7.6.3#76005)