]> Sergey Matveev's repositories - public-inbox.git/commitdiff
tests: change messages to use "shard" instead of partition
authorEric Wong <e@80x24.org>
Fri, 14 Jun 2019 08:02:32 +0000 (08:02 +0000)
committerEric Wong <e@80x24.org>
Fri, 14 Jun 2019 21:56:40 +0000 (21:56 +0000)
Another potentially user-facing piece made consistent with
Xapian terminology.

t/indexlevels-mirror.t
t/psgi_v2.t
t/xcpdb-reshard.t

index 359749471bbb319f3d6a5eee1729d4300ff15da0..b685da145fefcbe49bfd490186364a2ded5832d1 100644 (file)
@@ -138,7 +138,7 @@ sub import_index_incremental {
 
        if ($v == 2 && $level eq 'basic') {
                is_deeply([glob("$ibx->{mainrepo}/xap*/?/")], [],
-                        'no Xapian partition directories for v2 basic');
+                        'no Xapian shard directories for v2 basic');
        }
        if ($level ne 'basic') {
                ($nr, $msgs) = $ro_mirror->search->reopen->query('m:m@2');
index 5c358cdecb591720c785cce6ecc6a8fd1a718c96..360106890047e25fb8fe7bd3cd9df3e894d9eec8 100644 (file)
@@ -205,7 +205,7 @@ test_psgi(sub { $www->call(@_) }, sub {
        $res = $cb->(GET('/v2test/0.git/info/refs'));
        is($res->code, 200, 'got info refs for dumb clones w/ .git suffix');
        $res = $cb->(GET('/v2test/info/refs'));
-       is($res->code, 404, 'unpartitioned git URL fails');
+       is($res->code, 404, 'v2 git URL w/o shard fails');
 
        # ensure conflicted attachments can be resolved
        foreach my $body (qw(old new)) {
index ce552f540e0ee12089db1e636ac2e97cc4870d4c..bf56404deb79ed1c00d2a155638a113aafac7f73 100644 (file)
@@ -48,14 +48,14 @@ is(scalar(@parts), $nproc, 'got expected parts');
 my $orig = $ibx->over->query_xover(1, $ndoc);
 my %nums = map {; "$_->{num}" => 1 } @$orig;
 
-# ensure we can go up or down in partitions, or stay the same:
+# ensure we can go up or down in shards, or stay the same:
 for my $R (qw(2 4 1 3 3)) {
        delete $ibx->{search}; # release old handles
        is(system(@xcpdb, "-R$R", $ibx->{mainrepo}), 0, "xcpdb -R$R");
        my @new_parts = grep(m!/\d+\z!, glob("$ibx->{mainrepo}/xap*/*"));
-       is(scalar(@new_parts), $R, 'repartitioned to two parts');
+       is(scalar(@new_parts), $R, 'resharded to two parts');
        my $msgs = $ibx->search->query('s:this');
-       is(scalar(@$msgs), $ndoc, 'got expected docs after repartitioning');
+       is(scalar(@$msgs), $ndoc, 'got expected docs after resharding');
        my %by_mid = map {; "$_->{mid}" => $_ } @$msgs;
        ok($by_mid{"m$_\@example.com"}, "$_ exists") for (1..$ndoc);