summaryrefslogtreecommitdiffstats
path: root/t/superuser--http.t
blob: 85ef1d1ce96bfa8083f6d67db63a9e28f03cd01b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/perl

use strict;
use lib '.', 't';
use helper;
use Test::More 'no_plan';


need_root_and_prepare();
my $url = start_httpd();

my $name = 'various';

foreach my $medium_name ('various', 'various_no_subdir') {
    urpmi_addmedia("$medium_name $url/media/$medium_name");
    urpmi($name);
    is(`rpm -qa --root $::pwd/root`, "$name-1-1\n");
    urpme($name);
    urpmi_removemedia($medium_name);
}