Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

permit indexing of first-upload of dist with raw vstring version #410

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions t/mldistwatch-misc.t
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,36 @@ subtest "check various forms of version" => sub {
);
};

subtest "unquoted vstring version" => sub {
my $pause = PAUSE::TestPAUSE->init_new;
$pause->upload_author_fake(RJBS => {
name => 'Quod-Version',
version => '8.67.53',
packages => [
'Quod::Version' => {
version => 'v8.67.53',
layout => { version => 'our-literal' }
},
]
});

my $result = $pause->test_reindex;

$pause->file_not_updated_ok(
$result->tmpdir
->file(qw(cpan modules 02packages.details.txt.gz)),
"there were no things to update",
);

diag($_->{email}->as_string) for $result->deliveries;

$result->email_ok(
[
{ subject => 'PAUSE indexer report Quod-Version-8.67.53.tar.gz' },
],
);
};

subtest "version assigned to a blob as a ref" => sub {
my $pause = PAUSE::TestPAUSE->init_new;
$pause->upload_author_fake(LUNATIC => 'Globby-Version-1.234.tar.gz', {
Expand Down
Loading