Verify content integration with independently owned cauldron module
This commit is contained in:
@@ -163,6 +163,9 @@ AstraPlus/AstraPacks/AstraContent с отдельным тестовым мод
|
|||||||
без AstraContent находится в `AstraPlus/src/integrationTest/.../ContentBoundarySmoke.java`.
|
без AstraContent находится в `AstraPlus/src/integrationTest/.../ContentBoundarySmoke.java`.
|
||||||
Перед ними нужно собрать соседний дистрибутив AstraPlus. Рабочие миры и конфигурации
|
Перед ними нужно собрать соседний дистрибутив AstraPlus. Рабочие миры и конфигурации
|
||||||
при проверках не используются.
|
при проверках не используются.
|
||||||
|
Проверка состава стартового набора рассчитана на AstraPlus 0.9.12: три оставшиеся
|
||||||
|
политики ядра, без модуля котлов. Основной JAR AstraContent сохраняет совместимость
|
||||||
|
с AstraPlus 0.9.11; изменение этого теста не добавляет новой зависимости runtime.
|
||||||
|
|
||||||
Отдельная проверка несовместимого обновления запускает AstraPlus 0.9.11 со старой
|
Отдельная проверка несовместимого обновления запускает AstraPlus 0.9.11 со старой
|
||||||
оболочкой AstraContent 0.2.4 и требует отказа загрузчика именно по диапазону версии,
|
оболочкой AstraContent 0.2.4 и требует отказа загрузчика именно по диапазону версии,
|
||||||
|
|||||||
+2
-2
@@ -48,7 +48,7 @@ final class StarterBundleVerification {
|
|||||||
require(document.source() == SnapshotSource.FILE && !document.readOnly(), "Authored declaration is editable FILE: " + id);
|
require(document.source() == SnapshotSource.FILE && !document.readOnly(), "Authored declaration is editable FILE: " + id);
|
||||||
editable++;
|
editable++;
|
||||||
}
|
}
|
||||||
require(manifest.getAsJsonArray("capabilities").size() == 4, "Four remaining core capability policies");
|
require(manifest.getAsJsonArray("capabilities").size() == 3, "Three remaining core capability policies; cauldrons belong to their optional module");
|
||||||
for (var value : manifest.getAsJsonArray("capabilities")) {
|
for (var value : manifest.getAsJsonArray("capabilities")) {
|
||||||
var policy = value.getAsJsonObject();
|
var policy = value.getAsJsonObject();
|
||||||
String id = policy.get("id").getAsString();
|
String id = policy.get("id").getAsString();
|
||||||
@@ -68,7 +68,7 @@ final class StarterBundleVerification {
|
|||||||
require(installed == 186 && editable == installed, "Exact authored editable content file count: " + installed);
|
require(installed == 186 && editable == installed, "Exact authored editable content file count: " + installed);
|
||||||
require(modelFiles == 142 && documents.values().stream().filter(document -> document.kind() == SnapshotKind.MODEL).count() == 142, "All 142 authored models appear in the public runtime snapshot");
|
require(modelFiles == 142 && documents.values().stream().filter(document -> document.kind() == SnapshotKind.MODEL).count() == 142, "All 142 authored models appear in the public runtime snapshot");
|
||||||
System.out.println("PASS modular distribution: contentFiles=" + installed + " editableCatalog=" + editable
|
System.out.println("PASS modular distribution: contentFiles=" + installed + " editableCatalog=" + editable
|
||||||
+ " models=" + modelFiles + " coreMechanics=4; contentProjectileMechanics=1");
|
+ " models=" + modelFiles + " coreMechanics=3; contentProjectileMechanics=1");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void require(boolean condition, String message) { if (!condition) throw new AssertionError(message); }
|
private static void require(boolean condition, String message) { if (!condition) throw new AssertionError(message); }
|
||||||
|
|||||||
Reference in New Issue
Block a user