diff --git a/core/modules/update/tests/modules/update_test/drupal.sec.2.0-rc2-b.xml b/core/modules/update/tests/modules/update_test/drupal.sec.0.2-rc2-b.xml similarity index 100% rename from core/modules/update/tests/modules/update_test/drupal.sec.2.0-rc2-b.xml rename to core/modules/update/tests/modules/update_test/drupal.sec.0.2-rc2-b.xml diff --git a/core/modules/update/tests/modules/update_test/drupal.sec.2.0-rc2.xml b/core/modules/update/tests/modules/update_test/drupal.sec.0.2-rc2.xml similarity index 100% rename from core/modules/update/tests/modules/update_test/drupal.sec.2.0-rc2.xml rename to core/modules/update/tests/modules/update_test/drupal.sec.0.2-rc2.xml diff --git a/core/modules/update/tests/modules/update_test/drupal.sec.1.2_secure.xml b/core/modules/update/tests/modules/update_test/drupal.sec.1.2_secure.xml deleted file mode 100644 index 8665e46b36..0000000000 --- a/core/modules/update/tests/modules/update_test/drupal.sec.1.2_secure.xml +++ /dev/null @@ -1,128 +0,0 @@ - - -Drupal -drupal -Drupal -8.x -8 -8 -8 -published -http://example.com/project/drupal - - ProjectsDrupal project - - - - Drupal 8.1.2 - 8.1.2 - DRUPAL-8-1-2 - 8 - 1 - 2 - published - http://example.com/drupal-8-1-2-release - http://example.com/drupal-8-1-2.tar.gz - 1250424641 - b966255555d9c9b86d480ca08cfaa98e - 4294967296 - - Release typeNew features - Release typeBug fixes - Release typeSecurity update - - - - Drupal 8.1.1 - 8.1.1 - DRUPAL-8-1-1 - 8 - 1 - 1 - published - http://example.com/drupal-8-1-1-release - http://example.com/drupal-8-1-1.tar.gz - 1250424581 - b966255555d9c9b86d480ca08cfaa98e - 2147483648 - - Release typeNew features - Release typeBug fixes - Release typeInsecure - - - - Drupal 8.1.0 - 8.1.0 - DRUPAL-8-1-0 - 8 - 1 - 0 - published - http://example.com/drupal-8-1-0-release - http://example.com/drupal-8-1-0.tar.gz - 1250424521 - b966255555d9c9b86d480ca08cfaa98e - 1073741824 - - Release typeNew features - Release typeBug fixes - Release typeInsecure - - - - Drupal 8.0.2 - 8.0.2 - DRUPAL-8-0-2 - 8 - 0 - 2 - published - http://example.com/drupal-8-0-2-release - http://example.com/drupal-8-0-2.tar.gz - 1250424641 - b966255555d9c9b86d480ca08cfaa98e - 4294967296 - - Release typeNew features - Release typeBug fixes - - - - Drupal 8.0.1 - 8.0.1 - DRUPAL-8-0-1 - 8 - 0 - 1 - published - http://example.com/drupal-8-0-1-release - http://example.com/drupal-8-0-1.tar.gz - 1250424581 - b966255555d9c9b86d480ca08cfaa98e - 2147483648 - - Release typeNew features - Release typeBug fixes - - - - Drupal 8.0.0 - 8.0.0 - DRUPAL-8-0-0 - 8 - 0 - 0 - published - http://example.com/drupal-8-0-0-release - http://example.com/drupal-8-0-0.tar.gz - 1250424521 - b966255555d9c9b86d480ca08cfaa98e - 1073741824 - - Release typeNew features - Release typeBug fixes - - - - diff --git a/core/modules/update/tests/src/Functional/UpdateContribTest.php b/core/modules/update/tests/src/Functional/UpdateContribTest.php index e4e76ac572..1a6a76e2e2 100644 --- a/core/modules/update/tests/src/Functional/UpdateContribTest.php +++ b/core/modules/update/tests/src/Functional/UpdateContribTest.php @@ -548,14 +548,6 @@ public function securityUpdateAvailabilityProvider() { 'expected_update_message_type' => static::UPDATE_AVAILABLE, 'fixture' => 'sec.8.x-2.2_1.x_secure', ], - // On latest security release for module major release 1. - // Security release also available for next major. -// '8.x-1.2, 8.x-1.2 8.x-2.2' => [ -// 'module_patch_version' => '8.x-1.2', -// 'expected_security_release' => [], -// 'expected_update_message_type' => static::UPDATE_NONE, -// 'fixture' => 'sec.8.x-1.2_8.x-2.2', -// ], // @todo In https://www.drupal.org/node/2865920 add test cases: // - 8.x-2.0 using fixture 'sec.8.x-1.2_8.x-2.2' to ensure that 8.x-2.2 // is the only security update. diff --git a/core/modules/update/tests/src/Functional/UpdateCoreTest.php b/core/modules/update/tests/src/Functional/UpdateCoreTest.php index af742665c0..5ecbbe7b08 100644 --- a/core/modules/update/tests/src/Functional/UpdateCoreTest.php +++ b/core/modules/update/tests/src/Functional/UpdateCoreTest.php @@ -191,7 +191,7 @@ public function testSecurityUpdateAvailability($site_patch_version, array $expec * - 8.0.2 Security update * - 8.0.1 Insecure * - 8.0.0 Insecure - * - drupal.sec.2.0-rc2.xml + * - drupal.sec.0.2-rc2.xml * - 8.2.0-rc2 Security update * - 8.2.0-rc1 Insecure * - 8.2.0-beta2 Insecure @@ -218,7 +218,7 @@ public function testSecurityUpdateAvailability($site_patch_version, array $expec * - 8.0.2 Insecure * - 8.0.1 Insecure * - 8.0.0 Insecure - * - drupal.sec.2.0-rc2-b.xml + * - drupal.sec.0.2-rc2-b.xml * - 8.2.0-rc2 * - 8.2.0-rc1 * - 8.2.0-beta2 @@ -231,13 +231,6 @@ public function testSecurityUpdateAvailability($site_patch_version, array $expec * - 8.0.2 Security update * - 8.0.1 Insecure * - 8.0.0 Insecure - * - drupal.sec.1.2_secure.xml - * - 8.1.2 Security update - * - 8.1.1 Insecure - * - 8.1.0 Insecure - * - 8.0.2 Insecure - * - 8.0.1 Insecure - * - 8.0.0 Insecure */ public function securityUpdateAvailabilityProvider() { $test_cases = [ @@ -288,7 +281,10 @@ public function securityUpdateAvailabilityProvider() { 'site_patch_version' => '1.2', 'expected_security_releases' => [], 'expected_update_message_type' => static::UPDATE_NONE, - 'fixture' => 'sec.2.0-rc2', + // @todo Change to use fixture 'sec.0.2-rc2' in + // https://www.drupal.org/node/2804155. Currently this case would fail + // because 8.2.0-rc2 would be the recommend security release. + 'fixture' => 'sec.0.2-rc2-b', ], // No security release available for site minor release 0. // Security release available for next minor. @@ -298,20 +294,6 @@ public function securityUpdateAvailabilityProvider() { 'expected_update_message_type' => static::SECURITY_UPDATE_REQUIRED, 'fixture' => 'sec.1.2_insecure', ], - // All releases for minor 0 are secure. - // Security release available for next minor. - '0.0, 1.2, secure' => [ - 'site_patch_version' => '0.0', - 'expected_security_release' => ['1.2'], - 'expected_update_message_type' => static::UPDATE_AVAILABLE, - 'fixture' => 'sec.1.2_secure', - ], - '0.2, 1.2, secure' => [ - 'site_patch_version' => '0.2', - 'expected_security_release' => ['1.2'], - 'expected_update_message_type' => static::UPDATE_AVAILABLE, - 'fixture' => 'sec.1.2_secure', - ], // Site on 2.0-rc2 which is a security release. '2.0-rc2, 0.2 1.2' => [ 'site_patch_version' => '2.0-rc2',