Skip to content
Snippets Groups Projects
Commit 3f978a3a authored by Lucas Hedding's avatar Lucas Hedding Committed by Lucas Hedding
Browse files

Issue #3089754 by heddn: Only run modified file checking against Drupal core

parent 3273a22e
No related branches found
No related tags found
No related merge requests found
......@@ -4,5 +4,5 @@ notify: true
check_frequency: 43200
enable_readiness_checks: true
hashes_uri: 'https://updates.drupal.org/release-hashes'
ignored_paths: "modules/custom/*\nthemes/custom/*\nprofiles/custom/*"
ignored_paths: "modules/*\nthemes/*\nprofiles/*"
download_uri: 'https://www.drupal.org/in-place-updates'
......@@ -92,13 +92,17 @@ class AutomaticUpdatesTest extends BrowserTestBase {
* Tests manually running readiness checks.
*/
public function testReadinessChecks() {
$ignore_paths = "modules/custom/*\nthemes/custom/*\nprofiles/custom/*";
$this->config('automatic_updates.settings')->set('ignored_paths', $ignore_paths)
->save();
// Test manually running readiness checks. A few warnings will occur.
$this->drupalGet(Url::fromRoute('automatic_updates.settings'));
$this->clickLink('run the readiness checks');
$this->assertSession()->pageTextContains('Your site does not pass some readiness checks for automatic updates. Depending on the nature of the failures, it might effect the eligibility for automatic updates.');
// Ignore specific file paths to see no readiness issues.
$this->config('automatic_updates.settings')->set('ignored_paths', "core/*\nmodules/*\nthemes/*\nprofiles/*")
$ignore_paths = "core/*\nmodules/*\nthemes/*\nprofiles/*";
$this->config('automatic_updates.settings')->set('ignored_paths', $ignore_paths)
->save();
$this->drupalGet(Url::fromRoute('automatic_updates.settings'));
$this->clickLink('run the readiness checks');
......
......@@ -34,6 +34,9 @@ class MissingProjectInfoTest extends KernelTestBase {
public function testMissingProjectInfo() {
// The checker should always have messages on the testbot, since project
// info is added by the packager.
$ignore_paths = "modules/custom/*\nthemes/custom/*\nprofiles/custom/*";
$this->config('automatic_updates.settings')->set('ignored_paths', $ignore_paths)
->save();
$messages = $this->container->get('automatic_updates.missing_project_info')->run();
$this->assertNotEmpty($messages);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment