Bugzilla – Attachment 173613 Details for
Bug 36977
Google does not read sitemaps with the name sitemapNNNN.xml
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36977: (QA follow-up) Adapt tests
Bug-36977-QA-follow-up-Adapt-tests.patch (text/plain), 3.06 KB, created by
Tomás Cohen Arazi (tcohen)
on 2024-10-29 10:42:39 UTC
(
hide
)
Description:
Bug 36977: (QA follow-up) Adapt tests
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2024-10-29 10:42:39 UTC
Size:
3.06 KB
patch
obsolete
>From be39856694c5dac9ea7d15e036f306ab8a568739 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Tue, 29 Oct 2024 07:41:57 -0300 >Subject: [PATCH] Bug 36977: (QA follow-up) Adapt tests > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > t/db_dependent/Sitemapper.t | 24 ++++++++++++------------ > 1 file changed, 12 insertions(+), 12 deletions(-) > >diff --git a/t/db_dependent/Sitemapper.t b/t/db_dependent/Sitemapper.t >index 3faaa168c20..ebf69ce402e 100755 >--- a/t/db_dependent/Sitemapper.t >+++ b/t/db_dependent/Sitemapper.t >@@ -68,7 +68,7 @@ subtest 'Sitemapper' => sub { > > <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> > <sitemap> >- <loc>http://www.mylibrary.org/sitemap0001.xml</loc> >+ <loc>http://www.mylibrary.org/sitemap_0001.xml</loc> > <lastmod>$now</lastmod> > </sitemap> > </sitemapindex> >@@ -76,8 +76,8 @@ EOS > chop $expected_content; > is( $file_content, $expected_content, 'Its content is valid' ); > >- $file = "$dir/sitemap0001.xml"; >- ok( -e $file, 'File sitemap0001.xml created' ); >+ $file = "$dir/sitemap_0001.xml"; >+ ok( -e $file, 'File sitemap_0001.xml created' ); > $file_content = read_file($file); > $expected_content = <<"EOS"; > <?xml version="1.0" encoding="UTF-8"?> >@@ -105,8 +105,8 @@ EOS > ); > $sitemapper->run( "biblionumber>=$id1" ); > >- $file = "$dir/sitemap0001.xml"; >- ok( -e $file, 'File sitemap0001.xml with short URLs created' ); >+ $file = "$dir/sitemap_0001.xml"; >+ ok( -e $file, 'File sitemap_0001.xml with short URLs created' ); > $file_content = read_file($file); > $expected_content = <<"EOS"; > <?xml version="1.0" encoding="UTF-8"?> >@@ -147,11 +147,11 @@ EOS > > <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> > <sitemap> >- <loc>http://www.mylibrary.org/sitemap0001.xml</loc> >+ <loc>http://www.mylibrary.org/sitemap_0001.xml</loc> > <lastmod>$now</lastmod> > </sitemap> > <sitemap> >- <loc>http://www.mylibrary.org/sitemap0002.xml</loc> >+ <loc>http://www.mylibrary.org/sitemap_0002.xml</loc> > <lastmod>$now</lastmod> > </sitemap> > </sitemapindex> >@@ -159,8 +159,8 @@ EOS > chop $expected_content; > is( $file_content, $expected_content, 'Its content is valid' ); > >- $file = "$dir/sitemap0001.xml"; >- ok( -e $file, 'File sitemap0001.xml created' ); >+ $file = "$dir/sitemap_0001.xml"; >+ ok( -e $file, 'File sitemap_0001.xml created' ); > > open my $fh, '<', $file or croak; > my $count = 0; >@@ -170,8 +170,8 @@ EOS > close $fh; > is( $count, 6, 'It contains 6 URLs' ); > >- $file = "$dir/sitemap0002.xml"; >- ok( -e $file, 'File sitemap0002.xml created' ); >+ $file = "$dir/sitemap_0002.xml"; >+ ok( -e $file, 'File sitemap_0002.xml created' ); > > open $fh, '<', $file or croak; > $count = 0; >@@ -182,7 +182,7 @@ EOS > is( $count, 4, 'It contains 4 URLs' ); > > # Cleanup >- for my $file (qw/sitemapindex.xml sitemap0001.xml sitemap0002.xml/) { >+ for my $file (qw/sitemapindex.xml sitemap_0001.xml sitemap_0002.xml/) { > unlink "$dir/$file"; > } > }; >-- >2.47.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36977
:
167230
|
167345
|
167431
|
169815
|
173612
| 173613