/*******************************************************************************
 * Copyright (c) 2015 IBH SYSTEMS GmbH.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBH SYSTEMS GmbH - initial API and implementation
 *******************************************************************************/
package de.dentrassi.pm.testing;

import java.util.Set;

import org.junit.Assert;
import org.junit.Test;

public class RpmTest extends AbstractServerTest
{
    @Test
    public void testRpm1 () throws Exception
    {
        final ChannelTester ct = ChannelTester.create ( getWebContext (), "rpm11" );
        ct.addAspect ( "rpm" );
        ct.addAspect ( "yum" );

        {
            final Set<String> result = ct.upload ( "data/rpm/org.eclipse.scada-0.2.1-1.noarch.rpm" );
            Assert.assertEquals ( 1, result.size () );
        }
        Assert.assertEquals ( 1, ct.getAllArtifactIds ().size () );

        // upload a second artifact

        {
            final Set<String> result = ct.upload ( "data/rpm/org.eclipse.scada-centos6-0.2.1-1.noarch.rpm" );
            Assert.assertEquals ( 1, result.size () );
        }
        Assert.assertEquals ( 2, ct.getAllArtifactIds ().size () );

        testUrl ( String.format ( "/yum/%s/repodata/repomd.xml", ct.getId () ) );
    }

}

@@ -815,17 +815,16 @@
 ), %22rpm1
-1
 %22 );%0A   

fix typo