Closed rejozenger closed 11 years ago
This is likely to be a change in the Rijksoverheid's RSS feed. It seems that the XPath expression on 513 of the tests is not working anymore; probably the HTML structure has been changed.
We need to update the XPath both in the test as well as update the bof_feeds
fixture.
I have updated the XPath expression for extracting PDF files for rijksoverheid.nl from:
id('content-column')/descendant::div[@class='download-chunk']/descendant::a/attribute::href
to id('content')//a[@class='download-chunk pdf']/@href
.
The fixture feeds_bof
is also updated - but I recommend updating this expression manually for the production environment. Something a lot like the following SQL should suffice (untested):
UPDATE newspeak_feed
SET enclosure_xpath="id('content')//a[@class='download-chunk pdf']/@href"
WHERE enclosure_xpath="id('content-column')/descendant::div[@class='download-chunk']/descendant::a/attribute::href"
In the original BOF fixture there where 8 occurrences.
It might be wise to watch the logs for:
WARNING XPath id('content-column')/descendant::div[@class='download-chunk']/descendant::a/attribute::href did not return a value, returning empty string.
After applying the above SQL, this warning should be gone.
When running "newspeak test newspeak" on a fresh install: