Skip to content

Commit

Permalink
fix(#2553): remove config with no properties + support metadata check…
Browse files Browse the repository at this point in the history
… for config without properties
  • Loading branch information
matthieu-crouzet committed Dec 30, 2024
1 parent c8834dc commit c44ac8f
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,9 @@ export class ComponentExtractor {
} else {
this.logger.warn(message);
}
if (propertiesWithDefaultValue.length === 0) {
return acc;

Check warning on line 280 in packages/@o3r/components/builders/component-extractor/helpers/component/component.extractor.ts

View check run for this annotation

Codecov / codecov/patch

packages/@o3r/components/builders/component-extractor/helpers/component/component.extractor.ts#L280

Added line #L280 was not covered by tests
}
const configWithoutIncompatibleProperties = {
...config,
properties: propertiesWithDefaultValue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ export interface MigrationConfigData {
* ```
*/
const getConfigurationArray = (content: ComponentConfigOutput[]): ComponentConfigOutput[] => content.flatMap((config) =>
config.properties.length > 1
? config.properties.map((prop) => ({ ...config, properties: [prop] }))
: [config]
config.properties.map((prop) => ({ ...config, properties: [prop] }))
);

const getConfigurationPropertyName = (config: ComponentConfigOutput) => `${config.library}#${config.name}` + (config.properties.length > 0 ? ` ${config.properties[0].name}` : '');
Expand Down
22 changes: 13 additions & 9 deletions packages/@o3r/components/builders/metadata-check/index.it.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ import {
import {
inc,
} from 'semver';
import type {
MigrationConfigData,
import {
configMetadataComparator,
type MigrationConfigData,
} from './helpers/config-metadata-comparison.helper';
import type {
ComponentConfigOutput,
Expand Down Expand Up @@ -185,7 +186,10 @@ const previousConfigurationMetadata: ComponentConfigOutput[] = [
createConfig('@o3r/lib6', 'MyConfig6', ['prop6']),
createConfig('@o3r/lib7', 'MyConfig7', ['prop7']),
createConfig('@o3r/lib8', 'MyConfig8', ['prop8']),
createConfig('@o3r/lib9', 'MyConfig9', ['prop9'])
createConfig('@o3r/lib9', 'MyConfig9', ['prop9']),
// This case should not happen anymore as we filter config without properties
// Adding this case to ensure the support of older metadata
createConfig('@o3r/lib10', 'MyConfig10', [])
];

const newConfigurationMetadata: ComponentConfigOutput[] = [
Expand Down Expand Up @@ -344,8 +348,8 @@ describe('check metadata migration', () => {
} catch (e: any) {
/* eslint-disable jest/no-conditional-expect -- always called as there is a throw in the try block */
expect(e.message).not.toBe('should have thrown before');
previousConfigurationMetadata.slice(1).forEach(({ library, name, properties }) => {
const id = `${library}#${name} ${properties[0].name}`;
previousConfigurationMetadata.slice(1).forEach((item) => {

Check failure on line 351 in packages/@o3r/components/builders/metadata-check/index.it.spec.ts

View workflow job for this annotation

GitHub Actions / IT Tests report-ubuntu-latest-npm-

check metadata migration ► check metadata migration should throw because no migration data ► check metadata migration should throw because no migration data

Failed test found in: @o3r/components/dist-test/it-report.xml Error: Error: expect(received).toContain(expected) // indexOf
Raw output
Error: expect(received).toContain(expected) // indexOf

Expected substring: "Property @o3r/lib10#MyConfig10 has been modified but is not documented in the migration document"
Received string:    "Command failed: npm exec ng run test-app:check-metadata
STDERR:
Property @o3r/lib1#MyConfig1 prop1 has been modified but is not documented in the migration document
Property @o3r/lib2#MyConfig2 prop2 has been modified but is not documented in the migration document
Property @o3r/lib3#MyConfig3 prop3 has been modified but is not documented in the migration document
Property @o3r/lib4#MyConfig4 prop4 has been modified but is not documented in the migration document
Property @o3r/lib5#MyConfig5 prop5 has been modified but is not documented in the migration document
Property @o3r/lib6#MyConfig6 prop6 has been modified but is not documented in the migration document
Property @o3r/lib7#MyConfig7 prop7 has been modified but is not documented in the migration document
Property @o3r/lib8#MyConfig8 prop8 has been modified but is not documented in the migration document
Property @o3r/lib9#MyConfig9 prop9 has been modified but is not documented in the migration document·
OUTPUT:
,Latest version present in migration data folder: 1.3.0
Fetching @o3r/test-app-components-metadata-check2-no-migration-data@<1.3.0-a from the registry.
Successfully fetched @o3r/test-app-components-metadata-check2-no-migration-data@<1.3.0-a with version 1.2.1.
Resolved metadata from \"./component.config.metadata.json\".
,Property @o3r/lib1#MyConfig1 prop1 has been modified but is not documented in the migration document
Property @o3r/lib2#MyConfig2 prop2 has been modified but is not documented in the migration document
Property @o3r/lib3#MyConfig3 prop3 has been modified but is not documented in the migration document
Property @o3r/lib4#MyConfig4 prop4 has been modified but is not documented in the migration document
Property @o3r/lib5#MyConfig5 prop5 has been modified but is not documented in the migration document
Property @o3r/lib6#MyConfig6 prop6 has been modified but is not documented in the migration document
Property @o3r/lib7#MyConfig7 prop7 has been modified but is not documented in the migration document
Property @o3r/lib8#MyConfig8 prop8 has been modified but is not documented in the migration document
Property @o3r/lib9#MyConfig9 prop9 has been modified but is not documented in the migration document
"
    at /home/runner/work/otter/otter/packages/@o3r/components/builders/metadata-check/index.it.spec.ts:353:27
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (/home/runner/work/otter/otter/packages/@o3r/components/builders/metadata-check/index.it.spec.ts:351:46)

Check failure on line 351 in packages/@o3r/components/builders/metadata-check/index.it.spec.ts

View workflow job for this annotation

GitHub Actions / IT Tests report-ubuntu-latest-yarn-

check metadata migration ► check metadata migration should throw because no migration data ► check metadata migration should throw because no migration data

Failed test found in: @o3r/components/dist-test/it-report.xml Error: Error: expect(received).toContain(expected) // indexOf
Raw output
Error: expect(received).toContain(expected) // indexOf

Expected substring: "Property @o3r/lib10#MyConfig10 has been modified but is not documented in the migration document"
Received string:    "Command failed: yarn ng run test-app:check-metadata
STDERR:
Property @o3r/lib1#MyConfig1 prop1 has been modified but is not documented in the migration document
Property @o3r/lib2#MyConfig2 prop2 has been modified but is not documented in the migration document
Property @o3r/lib3#MyConfig3 prop3 has been modified but is not documented in the migration document
Property @o3r/lib4#MyConfig4 prop4 has been modified but is not documented in the migration document
Property @o3r/lib5#MyConfig5 prop5 has been modified but is not documented in the migration document
Property @o3r/lib6#MyConfig6 prop6 has been modified but is not documented in the migration document
Property @o3r/lib7#MyConfig7 prop7 has been modified but is not documented in the migration document
Property @o3r/lib8#MyConfig8 prop8 has been modified but is not documented in the migration document
Property @o3r/lib9#MyConfig9 prop9 has been modified but is not documented in the migration document·
OUTPUT:
,Latest version present in migration data folder: 1.3.0
Fetching @o3r/test-app-components-metadata-check2-no-migration-data@<1.3.0-a from the registry.
Successfully fetched @o3r/test-app-components-metadata-check2-no-migration-data@<1.3.0-a with version 1.2.1.
Resolved metadata from \"./component.config.metadata.json\".
,Property @o3r/lib1#MyConfig1 prop1 has been modified but is not documented in the migration document
Property @o3r/lib2#MyConfig2 prop2 has been modified but is not documented in the migration document
Property @o3r/lib3#MyConfig3 prop3 has been modified but is not documented in the migration document
Property @o3r/lib4#MyConfig4 prop4 has been modified but is not documented in the migration document
Property @o3r/lib5#MyConfig5 prop5 has been modified but is not documented in the migration document
Property @o3r/lib6#MyConfig6 prop6 has been modified but is not documented in the migration document
Property @o3r/lib7#MyConfig7 prop7 has been modified but is not documented in the migration document
Property @o3r/lib8#MyConfig8 prop8 has been modified but is not documented in the migration document
Property @o3r/lib9#MyConfig9 prop9 has been modified but is not documented in the migration document
"
    at /home/runner/work/otter/otter/packages/@o3r/components/builders/metadata-check/index.it.spec.ts:353:27
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (/home/runner/work/otter/otter/packages/@o3r/components/builders/metadata-check/index.it.spec.ts:351:46)
const id = configMetadataComparator.getIdentifier(item);
expect(e.message).toContain(`Property ${id} has been modified but is not documented in the migration document`);

Check failure on line 353 in packages/@o3r/components/builders/metadata-check/index.it.spec.ts

View workflow job for this annotation

GitHub Actions / it-tests / it-tests (ubuntu-latest, yarn, o3r-project-with-app)

check metadata migration › should throw because no migration data

expect(received).toContain(expected) // indexOf Expected substring: "Property @o3r/lib10#MyConfig10 has been modified but is not documented in the migration document" Received string: "Command failed: yarn ng run test-app:check-metadata STDERR: Property @o3r/lib1#MyConfig1 prop1 has been modified but is not documented in the migration document Property @o3r/lib2#MyConfig2 prop2 has been modified but is not documented in the migration document Property @o3r/lib3#MyConfig3 prop3 has been modified but is not documented in the migration document Property @o3r/lib4#MyConfig4 prop4 has been modified but is not documented in the migration document Property @o3r/lib5#MyConfig5 prop5 has been modified but is not documented in the migration document Property @o3r/lib6#MyConfig6 prop6 has been modified but is not documented in the migration document Property @o3r/lib7#MyConfig7 prop7 has been modified but is not documented in the migration document Property @o3r/lib8#MyConfig8 prop8 has been modified but is not documented in the migration document Property @o3r/lib9#MyConfig9 prop9 has been modified but is not documented in the migration document· OUTPUT: ,Latest version present in migration data folder: 1.3.0 Fetching @o3r/test-app-components-metadata-check2-no-migration-data@<1.3.0-a from the registry. Successfully fetched @o3r/test-app-components-metadata-check2-no-migration-data@<1.3.0-a with version 1.2.1. Resolved metadata from \"./component.config.metadata.json\". ,Property @o3r/lib1#MyConfig1 prop1 has been modified but is not documented in the migration document Property @o3r/lib2#MyConfig2 prop2 has been modified but is not documented in the migration document Property @o3r/lib3#MyConfig3 prop3 has been modified but is not documented in the migration document Property @o3r/lib4#MyConfig4 prop4 has been modified but is not documented in the migration document Property @o3r/lib5#MyConfig5 prop5 has been modified but is not documented in the migration document Property @o3r/lib6#MyConfig6 prop6 has been modified but is not documented in the migration document Property @o3r/lib7#MyConfig7 prop7 has been modified but is not documented in the migration document Property @o3r/lib8#MyConfig8 prop8 has been modified but is not documented in the migration document Property @o3r/lib9#MyConfig9 prop9 has been modified but is not documented in the migration document " at builders/metadata-check/index.it.spec.ts:353:27 at Array.forEach (<anonymous>) at Object.<anonymous> (builders/metadata-check/index.it.spec.ts:351:46)

Check failure on line 353 in packages/@o3r/components/builders/metadata-check/index.it.spec.ts

View workflow job for this annotation

GitHub Actions / it-tests / it-tests (ubuntu-latest, npm, o3r-project-with-app)

check metadata migration › should throw because no migration data

expect(received).toContain(expected) // indexOf Expected substring: "Property @o3r/lib10#MyConfig10 has been modified but is not documented in the migration document" Received string: "Command failed: npm exec ng run test-app:check-metadata STDERR: Property @o3r/lib1#MyConfig1 prop1 has been modified but is not documented in the migration document Property @o3r/lib2#MyConfig2 prop2 has been modified but is not documented in the migration document Property @o3r/lib3#MyConfig3 prop3 has been modified but is not documented in the migration document Property @o3r/lib4#MyConfig4 prop4 has been modified but is not documented in the migration document Property @o3r/lib5#MyConfig5 prop5 has been modified but is not documented in the migration document Property @o3r/lib6#MyConfig6 prop6 has been modified but is not documented in the migration document Property @o3r/lib7#MyConfig7 prop7 has been modified but is not documented in the migration document Property @o3r/lib8#MyConfig8 prop8 has been modified but is not documented in the migration document Property @o3r/lib9#MyConfig9 prop9 has been modified but is not documented in the migration document· OUTPUT: ,Latest version present in migration data folder: 1.3.0 Fetching @o3r/test-app-components-metadata-check2-no-migration-data@<1.3.0-a from the registry. Successfully fetched @o3r/test-app-components-metadata-check2-no-migration-data@<1.3.0-a with version 1.2.1. Resolved metadata from \"./component.config.metadata.json\". ,Property @o3r/lib1#MyConfig1 prop1 has been modified but is not documented in the migration document Property @o3r/lib2#MyConfig2 prop2 has been modified but is not documented in the migration document Property @o3r/lib3#MyConfig3 prop3 has been modified but is not documented in the migration document Property @o3r/lib4#MyConfig4 prop4 has been modified but is not documented in the migration document Property @o3r/lib5#MyConfig5 prop5 has been modified but is not documented in the migration document Property @o3r/lib6#MyConfig6 prop6 has been modified but is not documented in the migration document Property @o3r/lib7#MyConfig7 prop7 has been modified but is not documented in the migration document Property @o3r/lib8#MyConfig8 prop8 has been modified but is not documented in the migration document Property @o3r/lib9#MyConfig9 prop9 has been modified but is not documented in the migration document " at builders/metadata-check/index.it.spec.ts:353:27 at Array.forEach (<anonymous>) at Object.<anonymous> (builders/metadata-check/index.it.spec.ts:351:46)

Check failure on line 353 in packages/@o3r/components/builders/metadata-check/index.it.spec.ts

View workflow job for this annotation

GitHub Actions / it-tests / it-tests (windows-latest, yarn, o3r-project-with-app)

check metadata migration › should throw because no migration data

expect(received).toContain(expected) // indexOf Expected substring: "Property @o3r/lib10#MyConfig10 has been modified but is not documented in the migration document" Received string: "Command failed: yarn ng run test-app:check-metadata STDERR: Property @o3r/lib1#MyConfig1 prop1 has been modified but is not documented in the migration document· Property @o3r/lib2#MyConfig2 prop2 has been modified but is not documented in the migration document· Property @o3r/lib3#MyConfig3 prop3 has been modified but is not documented in the migration document· Property @o3r/lib4#MyConfig4 prop4 has been modified but is not documented in the migration document· Property @o3r/lib5#MyConfig5 prop5 has been modified but is not documented in the migration document· Property @o3r/lib6#MyConfig6 prop6 has been modified but is not documented in the migration document· Property @o3r/lib7#MyConfig7 prop7 has been modified but is not documented in the migration document· Property @o3r/lib8#MyConfig8 prop8 has been modified but is not documented in the migration document· Property @o3r/lib9#MyConfig9 prop9 has been modified but is not documented in the migration document· OUTPUT: ,Latest version present in migration data folder: 1.3.0 Fetching @o3r/test-app-components-metadata-check2-no-migration-data@<1.3.0-a from the registry. Successfully fetched @o3r/test-app-components-metadata-check2-no-migration-data@<1.3.0-a with version 1.2.1. Resolved metadata from \"./component.config.metadata.json\". ,Property @o3r/lib1#MyConfig1 prop1 has been modified but is not documented in the migration document· Property @o3r/lib2#MyConfig2 prop2 has been modified but is not documented in the migration document· Property @o3r/lib3#MyConfig3 prop3 has been modified but is not documented in the migration document· Property @o3r/lib4#MyConfig4 prop4 has been modified but is not documented in the migration document· Property @o3r/lib5#MyConfig5 prop5 has been modified but is not documented in the migration document· Property @o3r/lib6#MyConfig6 prop6 has been modified but is not documented in the migration document· Property @o3r/lib7#MyConfig7 prop7 has been modified but is not documented in the migration document· Property @o3r/lib8#MyConfig8 prop8 has been modified but is not documented in the migration document· Property @o3r/lib9#MyConfig9 prop9 has been modified but is not documented in the migration document " at builders/metadata-check/index.it.spec.ts:353:27 at Array.forEach (<anonymous>) at Object.<anonymous> (builders/metadata-check/index.it.spec.ts:351:46)

Check failure on line 353 in packages/@o3r/components/builders/metadata-check/index.it.spec.ts

View workflow job for this annotation

GitHub Actions / it-tests / it-tests (windows-latest, npm, o3r-project-with-app)

check metadata migration › should throw because no migration data

expect(received).toContain(expected) // indexOf Expected substring: "Property @o3r/lib10#MyConfig10 has been modified but is not documented in the migration document" Received string: "Command failed: npm exec ng run test-app:check-metadata STDERR: Property @o3r/lib1#MyConfig1 prop1 has been modified but is not documented in the migration document· Property @o3r/lib2#MyConfig2 prop2 has been modified but is not documented in the migration document· Property @o3r/lib3#MyConfig3 prop3 has been modified but is not documented in the migration document· Property @o3r/lib4#MyConfig4 prop4 has been modified but is not documented in the migration document· Property @o3r/lib5#MyConfig5 prop5 has been modified but is not documented in the migration document· Property @o3r/lib6#MyConfig6 prop6 has been modified but is not documented in the migration document· Property @o3r/lib7#MyConfig7 prop7 has been modified but is not documented in the migration document· Property @o3r/lib8#MyConfig8 prop8 has been modified but is not documented in the migration document· Property @o3r/lib9#MyConfig9 prop9 has been modified but is not documented in the migration document· OUTPUT: ,Latest version present in migration data folder: 1.3.0 Fetching @o3r/test-app-components-metadata-check2-no-migration-data@<1.3.0-a from the registry. Successfully fetched @o3r/test-app-components-metadata-check2-no-migration-data@<1.3.0-a with version 1.2.1. Resolved metadata from \"./component.config.metadata.json\". ,Property @o3r/lib1#MyConfig1 prop1 has been modified but is not documented in the migration document· Property @o3r/lib2#MyConfig2 prop2 has been modified but is not documented in the migration document· Property @o3r/lib3#MyConfig3 prop3 has been modified but is not documented in the migration document· Property @o3r/lib4#MyConfig4 prop4 has been modified but is not documented in the migration document· Property @o3r/lib5#MyConfig5 prop5 has been modified but is not documented in the migration document· Property @o3r/lib6#MyConfig6 prop6 has been modified but is not documented in the migration document· Property @o3r/lib7#MyConfig7 prop7 has been modified but is not documented in the migration document· Property @o3r/lib8#MyConfig8 prop8 has been modified but is not documented in the migration document· Property @o3r/lib9#MyConfig9 prop9 has been modified but is not documented in the migration document " at builders/metadata-check/index.it.spec.ts:353:27 at Array.forEach (<anonymous>) at Object.<anonymous> (builders/metadata-check/index.it.spec.ts:351:46)
expect(e.message).not.toContain(`Property ${id} has been modified but the new property is not present in the new metadata`);
expect(e.message).not.toContain(`Property ${id} is not present in the new metadata and breaking changes are not allowed`);
Expand Down Expand Up @@ -379,8 +383,8 @@ describe('check metadata migration', () => {
} catch (e: any) {
/* eslint-disable jest/no-conditional-expect -- always called as there is a throw in the try block */
expect(e.message).not.toBe('should have thrown before');
previousConfigurationMetadata.slice(1).forEach(({ library, name, properties }) => {
const id = `${library}#${name} ${properties[0].name}`;
previousConfigurationMetadata.slice(1).forEach((item) => {

Check failure on line 386 in packages/@o3r/components/builders/metadata-check/index.it.spec.ts

View workflow job for this annotation

GitHub Actions / IT Tests report-ubuntu-latest-npm-

check metadata migration ► check metadata migration should throw because migration data invalid ► check metadata migration should throw because migration data invalid

Failed test found in: @o3r/components/dist-test/it-report.xml Error: Error: expect(received).toContain(expected) // indexOf
Raw output
Error: expect(received).toContain(expected) // indexOf

Expected substring: "Property @o3r/lib10#MyConfig10 has been modified but the new property is not present in the new metadata"
Received string:    "Command failed: npm exec ng run test-app:check-metadata
STDERR:
Property @o3r/lib1#MyConfig1 prop1 has been modified but the new property is not present in the new metadata
Property @o3r/lib2#MyConfig2 prop2 has been modified but the new property is not present in the new metadata
Property @o3r/lib3#MyConfig3 prop3 has been modified but the new property is not present in the new metadata
Property @o3r/lib4#MyConfig4 prop4 has been modified but the new property is not present in the new metadata
Property @o3r/lib5#MyConfig5 prop5 has been modified but the new property is not present in the new metadata
Property @o3r/lib6#MyConfig6 prop6 has been modified but the new property is not present in the new metadata
Property @o3r/lib7#MyConfig7 prop7 has been modified but the new property is not present in the new metadata
Property @o3r/lib8#MyConfig8 prop8 has been modified but the new property is not present in the new metadata
Property @o3r/lib9#MyConfig9 prop9 has been modified but the new property is not present in the new metadata·
OUTPUT:
,Latest version present in migration data folder: 1.3.0
Fetching @o3r/test-app-components-metadata-check3-invalid-data@<1.3.0-a from the registry.
Successfully fetched @o3r/test-app-components-metadata-check3-invalid-data@<1.3.0-a with version 1.2.1.
Resolved metadata from \"./component.config.metadata.json\".
,Property @o3r/lib1#MyConfig1 prop1 has been modified but the new property is not present in the new metadata
Property @o3r/lib2#MyConfig2 prop2 has been modified but the new property is not present in the new metadata
Property @o3r/lib3#MyConfig3 prop3 has been modified but the new property is not present in the new metadata
Property @o3r/lib4#MyConfig4 prop4 has been modified but the new property is not present in the new metadata
Property @o3r/lib5#MyConfig5 prop5 has been modified but the new property is not present in the new metadata
Property @o3r/lib6#MyConfig6 prop6 has been modified but the new property is not present in the new metadata
Property @o3r/lib7#MyConfig7 prop7 has been modified but the new property is not present in the new metadata
Property @o3r/lib8#MyConfig8 prop8 has been modified but the new property is not present in the new metadata
Property @o3r/lib9#MyConfig9 prop9 has been modified but the new property is not present in the new metadata
"
    at /home/runner/work/otter/otter/packages/@o3r/components/builders/metadata-check/index.it.spec.ts:389:27
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (/home/runner/work/otter/otter/packages/@o3r/components/builders/metadata-check/index.it.spec.ts:386:46)

Check failure on line 386 in packages/@o3r/components/builders/metadata-check/index.it.spec.ts

View workflow job for this annotation

GitHub Actions / IT Tests report-ubuntu-latest-yarn-

check metadata migration ► check metadata migration should throw because migration data invalid ► check metadata migration should throw because migration data invalid

Failed test found in: @o3r/components/dist-test/it-report.xml Error: Error: expect(received).toContain(expected) // indexOf
Raw output
Error: expect(received).toContain(expected) // indexOf

Expected substring: "Property @o3r/lib10#MyConfig10 has been modified but the new property is not present in the new metadata"
Received string:    "Command failed: yarn ng run test-app:check-metadata
STDERR:
Property @o3r/lib1#MyConfig1 prop1 has been modified but the new property is not present in the new metadata
Property @o3r/lib2#MyConfig2 prop2 has been modified but the new property is not present in the new metadata
Property @o3r/lib3#MyConfig3 prop3 has been modified but the new property is not present in the new metadata
Property @o3r/lib4#MyConfig4 prop4 has been modified but the new property is not present in the new metadata
Property @o3r/lib5#MyConfig5 prop5 has been modified but the new property is not present in the new metadata
Property @o3r/lib6#MyConfig6 prop6 has been modified but the new property is not present in the new metadata
Property @o3r/lib7#MyConfig7 prop7 has been modified but the new property is not present in the new metadata
Property @o3r/lib8#MyConfig8 prop8 has been modified but the new property is not present in the new metadata
Property @o3r/lib9#MyConfig9 prop9 has been modified but the new property is not present in the new metadata·
OUTPUT:
,Latest version present in migration data folder: 1.3.0
Fetching @o3r/test-app-components-metadata-check3-invalid-data@<1.3.0-a from the registry.
Successfully fetched @o3r/test-app-components-metadata-check3-invalid-data@<1.3.0-a with version 1.2.1.
Resolved metadata from \"./component.config.metadata.json\".
,Property @o3r/lib1#MyConfig1 prop1 has been modified but the new property is not present in the new metadata
Property @o3r/lib2#MyConfig2 prop2 has been modified but the new property is not present in the new metadata
Property @o3r/lib3#MyConfig3 prop3 has been modified but the new property is not present in the new metadata
Property @o3r/lib4#MyConfig4 prop4 has been modified but the new property is not present in the new metadata
Property @o3r/lib5#MyConfig5 prop5 has been modified but the new property is not present in the new metadata
Property @o3r/lib6#MyConfig6 prop6 has been modified but the new property is not present in the new metadata
Property @o3r/lib7#MyConfig7 prop7 has been modified but the new property is not present in the new metadata
Property @o3r/lib8#MyConfig8 prop8 has been modified but the new property is not present in the new metadata
Property @o3r/lib9#MyConfig9 prop9 has been modified but the new property is not present in the new metadata
"
    at /home/runner/work/otter/otter/packages/@o3r/components/builders/metadata-check/index.it.spec.ts:389:27
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (/home/runner/work/otter/otter/packages/@o3r/components/builders/metadata-check/index.it.spec.ts:386:46)
const id = configMetadataComparator.getIdentifier(item);
expect(e.message).not.toContain(`Property ${id} has been modified but is not documented in the migration document`);
expect(e.message).toContain(`Property ${id} has been modified but the new property is not present in the new metadata`);

Check failure on line 389 in packages/@o3r/components/builders/metadata-check/index.it.spec.ts

View workflow job for this annotation

GitHub Actions / it-tests / it-tests (ubuntu-latest, yarn, o3r-project-with-app)

check metadata migration › should throw because migration data invalid

expect(received).toContain(expected) // indexOf Expected substring: "Property @o3r/lib10#MyConfig10 has been modified but the new property is not present in the new metadata" Received string: "Command failed: yarn ng run test-app:check-metadata STDERR: Property @o3r/lib1#MyConfig1 prop1 has been modified but the new property is not present in the new metadata Property @o3r/lib2#MyConfig2 prop2 has been modified but the new property is not present in the new metadata Property @o3r/lib3#MyConfig3 prop3 has been modified but the new property is not present in the new metadata Property @o3r/lib4#MyConfig4 prop4 has been modified but the new property is not present in the new metadata Property @o3r/lib5#MyConfig5 prop5 has been modified but the new property is not present in the new metadata Property @o3r/lib6#MyConfig6 prop6 has been modified but the new property is not present in the new metadata Property @o3r/lib7#MyConfig7 prop7 has been modified but the new property is not present in the new metadata Property @o3r/lib8#MyConfig8 prop8 has been modified but the new property is not present in the new metadata Property @o3r/lib9#MyConfig9 prop9 has been modified but the new property is not present in the new metadata· OUTPUT: ,Latest version present in migration data folder: 1.3.0 Fetching @o3r/test-app-components-metadata-check3-invalid-data@<1.3.0-a from the registry. Successfully fetched @o3r/test-app-components-metadata-check3-invalid-data@<1.3.0-a with version 1.2.1. Resolved metadata from \"./component.config.metadata.json\". ,Property @o3r/lib1#MyConfig1 prop1 has been modified but the new property is not present in the new metadata Property @o3r/lib2#MyConfig2 prop2 has been modified but the new property is not present in the new metadata Property @o3r/lib3#MyConfig3 prop3 has been modified but the new property is not present in the new metadata Property @o3r/lib4#MyConfig4 prop4 has been modified but the new property is not present in the new metadata Property @o3r/lib5#MyConfig5 prop5 has been modified but the new property is not present in the new metadata Property @o3r/lib6#MyConfig6 prop6 has been modified but the new property is not present in the new metadata Property @o3r/lib7#MyConfig7 prop7 has been modified but the new property is not present in the new metadata Property @o3r/lib8#MyConfig8 prop8 has been modified but the new property is not present in the new metadata Property @o3r/lib9#MyConfig9 prop9 has been modified but the new property is not present in the new metadata " at builders/metadata-check/index.it.spec.ts:389:27 at Array.forEach (<anonymous>) at Object.<anonymous> (builders/metadata-check/index.it.spec.ts:386:46)

Check failure on line 389 in packages/@o3r/components/builders/metadata-check/index.it.spec.ts

View workflow job for this annotation

GitHub Actions / it-tests / it-tests (ubuntu-latest, npm, o3r-project-with-app)

check metadata migration › should throw because migration data invalid

expect(received).toContain(expected) // indexOf Expected substring: "Property @o3r/lib10#MyConfig10 has been modified but the new property is not present in the new metadata" Received string: "Command failed: npm exec ng run test-app:check-metadata STDERR: Property @o3r/lib1#MyConfig1 prop1 has been modified but the new property is not present in the new metadata Property @o3r/lib2#MyConfig2 prop2 has been modified but the new property is not present in the new metadata Property @o3r/lib3#MyConfig3 prop3 has been modified but the new property is not present in the new metadata Property @o3r/lib4#MyConfig4 prop4 has been modified but the new property is not present in the new metadata Property @o3r/lib5#MyConfig5 prop5 has been modified but the new property is not present in the new metadata Property @o3r/lib6#MyConfig6 prop6 has been modified but the new property is not present in the new metadata Property @o3r/lib7#MyConfig7 prop7 has been modified but the new property is not present in the new metadata Property @o3r/lib8#MyConfig8 prop8 has been modified but the new property is not present in the new metadata Property @o3r/lib9#MyConfig9 prop9 has been modified but the new property is not present in the new metadata· OUTPUT: ,Latest version present in migration data folder: 1.3.0 Fetching @o3r/test-app-components-metadata-check3-invalid-data@<1.3.0-a from the registry. Successfully fetched @o3r/test-app-components-metadata-check3-invalid-data@<1.3.0-a with version 1.2.1. Resolved metadata from \"./component.config.metadata.json\". ,Property @o3r/lib1#MyConfig1 prop1 has been modified but the new property is not present in the new metadata Property @o3r/lib2#MyConfig2 prop2 has been modified but the new property is not present in the new metadata Property @o3r/lib3#MyConfig3 prop3 has been modified but the new property is not present in the new metadata Property @o3r/lib4#MyConfig4 prop4 has been modified but the new property is not present in the new metadata Property @o3r/lib5#MyConfig5 prop5 has been modified but the new property is not present in the new metadata Property @o3r/lib6#MyConfig6 prop6 has been modified but the new property is not present in the new metadata Property @o3r/lib7#MyConfig7 prop7 has been modified but the new property is not present in the new metadata Property @o3r/lib8#MyConfig8 prop8 has been modified but the new property is not present in the new metadata Property @o3r/lib9#MyConfig9 prop9 has been modified but the new property is not present in the new metadata " at builders/metadata-check/index.it.spec.ts:389:27 at Array.forEach (<anonymous>) at Object.<anonymous> (builders/metadata-check/index.it.spec.ts:386:46)

Check failure on line 389 in packages/@o3r/components/builders/metadata-check/index.it.spec.ts

View workflow job for this annotation

GitHub Actions / it-tests / it-tests (windows-latest, yarn, o3r-project-with-app)

check metadata migration › should throw because migration data invalid

expect(received).toContain(expected) // indexOf Expected substring: "Property @o3r/lib10#MyConfig10 has been modified but the new property is not present in the new metadata" Received string: "Command failed: yarn ng run test-app:check-metadata STDERR: Property @o3r/lib1#MyConfig1 prop1 has been modified but the new property is not present in the new metadata· Property @o3r/lib2#MyConfig2 prop2 has been modified but the new property is not present in the new metadata· Property @o3r/lib3#MyConfig3 prop3 has been modified but the new property is not present in the new metadata· Property @o3r/lib4#MyConfig4 prop4 has been modified but the new property is not present in the new metadata· Property @o3r/lib5#MyConfig5 prop5 has been modified but the new property is not present in the new metadata· Property @o3r/lib6#MyConfig6 prop6 has been modified but the new property is not present in the new metadata· Property @o3r/lib7#MyConfig7 prop7 has been modified but the new property is not present in the new metadata· Property @o3r/lib8#MyConfig8 prop8 has been modified but the new property is not present in the new metadata· Property @o3r/lib9#MyConfig9 prop9 has been modified but the new property is not present in the new metadata· OUTPUT: ,Latest version present in migration data folder: 1.3.0 Fetching @o3r/test-app-components-metadata-check3-invalid-data@<1.3.0-a from the registry. Successfully fetched @o3r/test-app-components-metadata-check3-invalid-data@<1.3.0-a with version 1.2.1. Resolved metadata from \"./component.config.metadata.json\". ,Property @o3r/lib1#MyConfig1 prop1 has been modified but the new property is not present in the new metadata· Property @o3r/lib2#MyConfig2 prop2 has been modified but the new property is not present in the new metadata· Property @o3r/lib3#MyConfig3 prop3 has been modified but the new property is not present in the new metadata· Property @o3r/lib4#MyConfig4 prop4 has been modified but the new property is not present in the new metadata· Property @o3r/lib5#MyConfig5 prop5 has been modified but the new property is not present in the new metadata· Property @o3r/lib6#MyConfig6 prop6 has been modified but the new property is not present in the new metadata· Property @o3r/lib7#MyConfig7 prop7 has been modified but the new property is not present in the new metadata· Property @o3r/lib8#MyConfig8 prop8 has been modified but the new property is not present in the new metadata· Property @o3r/lib9#MyConfig9 prop9 has been modified but the new property is not present in the new metadata " at builders/metadata-check/index.it.spec.ts:389:27 at Array.forEach (<anonymous>) at Object.<anonymous> (builders/metadata-check/index.it.spec.ts:386:46)

Check failure on line 389 in packages/@o3r/components/builders/metadata-check/index.it.spec.ts

View workflow job for this annotation

GitHub Actions / it-tests / it-tests (windows-latest, npm, o3r-project-with-app)

check metadata migration › should throw because migration data invalid

expect(received).toContain(expected) // indexOf Expected substring: "Property @o3r/lib10#MyConfig10 has been modified but the new property is not present in the new metadata" Received string: "Command failed: npm exec ng run test-app:check-metadata STDERR: Property @o3r/lib1#MyConfig1 prop1 has been modified but the new property is not present in the new metadata· Property @o3r/lib2#MyConfig2 prop2 has been modified but the new property is not present in the new metadata· Property @o3r/lib3#MyConfig3 prop3 has been modified but the new property is not present in the new metadata· Property @o3r/lib4#MyConfig4 prop4 has been modified but the new property is not present in the new metadata· Property @o3r/lib5#MyConfig5 prop5 has been modified but the new property is not present in the new metadata· Property @o3r/lib6#MyConfig6 prop6 has been modified but the new property is not present in the new metadata· Property @o3r/lib7#MyConfig7 prop7 has been modified but the new property is not present in the new metadata· Property @o3r/lib8#MyConfig8 prop8 has been modified but the new property is not present in the new metadata· Property @o3r/lib9#MyConfig9 prop9 has been modified but the new property is not present in the new metadata· OUTPUT: ,Latest version present in migration data folder: 1.3.0 Fetching @o3r/test-app-components-metadata-check3-invalid-data@<1.3.0-a from the registry. Successfully fetched @o3r/test-app-components-metadata-check3-invalid-data@<1.3.0-a with version 1.2.1. Resolved metadata from \"./component.config.metadata.json\". ,Property @o3r/lib1#MyConfig1 prop1 has been modified but the new property is not present in the new metadata· Property @o3r/lib2#MyConfig2 prop2 has been modified but the new property is not present in the new metadata· Property @o3r/lib3#MyConfig3 prop3 has been modified but the new property is not present in the new metadata· Property @o3r/lib4#MyConfig4 prop4 has been modified but the new property is not present in the new metadata· Property @o3r/lib5#MyConfig5 prop5 has been modified but the new property is not present in the new metadata· Property @o3r/lib6#MyConfig6 prop6 has been modified but the new property is not present in the new metadata· Property @o3r/lib7#MyConfig7 prop7 has been modified but the new property is not present in the new metadata· Property @o3r/lib8#MyConfig8 prop8 has been modified but the new property is not present in the new metadata· Property @o3r/lib9#MyConfig9 prop9 has been modified but the new property is not present in the new metadata " at builders/metadata-check/index.it.spec.ts:389:27 at Array.forEach (<anonymous>) at Object.<anonymous> (builders/metadata-check/index.it.spec.ts:386:46)
expect(e.message).not.toContain(`Property ${id} is not present in the new metadata and breaking changes are not allowed`);
Expand Down Expand Up @@ -408,8 +412,8 @@ describe('check metadata migration', () => {
} catch (e: any) {
/* eslint-disable jest/no-conditional-expect -- always called as there is a throw in the try block */
expect(e.message).not.toBe('should have thrown before');
previousConfigurationMetadata.slice(1).forEach(({ library, name, properties }) => {
const id = `${library}#${name} ${properties[0].name}`;
previousConfigurationMetadata.slice(1).forEach((item) => {

Check failure on line 415 in packages/@o3r/components/builders/metadata-check/index.it.spec.ts

View workflow job for this annotation

GitHub Actions / IT Tests report-ubuntu-latest-npm-

check metadata migration ► check metadata migration should throw because breaking changes are not allowed ► check metadata migration should throw because breaking changes are not allowed

Failed test found in: @o3r/components/dist-test/it-report.xml Error: Error: expect(received).toContain(expected) // indexOf
Raw output
Error: expect(received).toContain(expected) // indexOf

Expected substring: "Property @o3r/lib10#MyConfig10 is not present in the new metadata and breaking changes are not allowed"
Received string:    "Command failed: npm exec ng run test-app:check-metadata
STDERR:
Property @o3r/lib1#MyConfig1 prop1 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib2#MyConfig2 prop2 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib3#MyConfig3 prop3 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib4#MyConfig4 prop4 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib5#MyConfig5 prop5 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib6#MyConfig6 prop6 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib7#MyConfig7 prop7 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib8#MyConfig8 prop8 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib9#MyConfig9 prop9 is not present in the new metadata and breaking changes are not allowed·
OUTPUT:
,Latest version present in migration data folder: 1.3.0
Fetching @o3r/test-app-components-metadata-check4-breaking-changes@<1.3.0-a from the registry.
Successfully fetched @o3r/test-app-components-metadata-check4-breaking-changes@<1.3.0-a with version 1.2.1.
Resolved metadata from \"./component.config.metadata.json\".
,Property @o3r/lib1#MyConfig1 prop1 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib2#MyConfig2 prop2 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib3#MyConfig3 prop3 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib4#MyConfig4 prop4 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib5#MyConfig5 prop5 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib6#MyConfig6 prop6 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib7#MyConfig7 prop7 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib8#MyConfig8 prop8 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib9#MyConfig9 prop9 is not present in the new metadata and breaking changes are not allowed
"
    at /home/runner/work/otter/otter/packages/@o3r/components/builders/metadata-check/index.it.spec.ts:419:27
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (/home/runner/work/otter/otter/packages/@o3r/components/builders/metadata-check/index.it.spec.ts:415:46)

Check failure on line 415 in packages/@o3r/components/builders/metadata-check/index.it.spec.ts

View workflow job for this annotation

GitHub Actions / IT Tests report-ubuntu-latest-yarn-

check metadata migration ► check metadata migration should throw because breaking changes are not allowed ► check metadata migration should throw because breaking changes are not allowed

Failed test found in: @o3r/components/dist-test/it-report.xml Error: Error: expect(received).toContain(expected) // indexOf
Raw output
Error: expect(received).toContain(expected) // indexOf

Expected substring: "Property @o3r/lib10#MyConfig10 is not present in the new metadata and breaking changes are not allowed"
Received string:    "Command failed: yarn ng run test-app:check-metadata
STDERR:
Property @o3r/lib1#MyConfig1 prop1 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib2#MyConfig2 prop2 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib3#MyConfig3 prop3 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib4#MyConfig4 prop4 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib5#MyConfig5 prop5 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib6#MyConfig6 prop6 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib7#MyConfig7 prop7 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib8#MyConfig8 prop8 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib9#MyConfig9 prop9 is not present in the new metadata and breaking changes are not allowed·
OUTPUT:
,Latest version present in migration data folder: 1.3.0
Fetching @o3r/test-app-components-metadata-check4-breaking-changes@<1.3.0-a from the registry.
Successfully fetched @o3r/test-app-components-metadata-check4-breaking-changes@<1.3.0-a with version 1.2.1.
Resolved metadata from \"./component.config.metadata.json\".
,Property @o3r/lib1#MyConfig1 prop1 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib2#MyConfig2 prop2 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib3#MyConfig3 prop3 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib4#MyConfig4 prop4 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib5#MyConfig5 prop5 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib6#MyConfig6 prop6 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib7#MyConfig7 prop7 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib8#MyConfig8 prop8 is not present in the new metadata and breaking changes are not allowed
Property @o3r/lib9#MyConfig9 prop9 is not present in the new metadata and breaking changes are not allowed
"
    at /home/runner/work/otter/otter/packages/@o3r/components/builders/metadata-check/index.it.spec.ts:419:27
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (/home/runner/work/otter/otter/packages/@o3r/components/builders/metadata-check/index.it.spec.ts:415:46)
const id = configMetadataComparator.getIdentifier(item);
expect(e.message).not.toContain(`Property ${id} has been modified but is not documented in the migration document`);
expect(e.message).not.toContain(`Property ${id} has been modified but the new property is not present in the new metadata`);
expect(e.message).toContain(`Property ${id} is not present in the new metadata and breaking changes are not allowed`);

Check failure on line 419 in packages/@o3r/components/builders/metadata-check/index.it.spec.ts

View workflow job for this annotation

GitHub Actions / it-tests / it-tests (ubuntu-latest, yarn, o3r-project-with-app)

check metadata migration › should throw because breaking changes are not allowed

expect(received).toContain(expected) // indexOf Expected substring: "Property @o3r/lib10#MyConfig10 is not present in the new metadata and breaking changes are not allowed" Received string: "Command failed: yarn ng run test-app:check-metadata STDERR: Property @o3r/lib1#MyConfig1 prop1 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib2#MyConfig2 prop2 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib3#MyConfig3 prop3 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib4#MyConfig4 prop4 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib5#MyConfig5 prop5 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib6#MyConfig6 prop6 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib7#MyConfig7 prop7 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib8#MyConfig8 prop8 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib9#MyConfig9 prop9 is not present in the new metadata and breaking changes are not allowed· OUTPUT: ,Latest version present in migration data folder: 1.3.0 Fetching @o3r/test-app-components-metadata-check4-breaking-changes@<1.3.0-a from the registry. Successfully fetched @o3r/test-app-components-metadata-check4-breaking-changes@<1.3.0-a with version 1.2.1. Resolved metadata from \"./component.config.metadata.json\". ,Property @o3r/lib1#MyConfig1 prop1 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib2#MyConfig2 prop2 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib3#MyConfig3 prop3 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib4#MyConfig4 prop4 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib5#MyConfig5 prop5 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib6#MyConfig6 prop6 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib7#MyConfig7 prop7 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib8#MyConfig8 prop8 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib9#MyConfig9 prop9 is not present in the new metadata and breaking changes are not allowed " at builders/metadata-check/index.it.spec.ts:419:27 at Array.forEach (<anonymous>) at Object.<anonymous> (builders/metadata-check/index.it.spec.ts:415:46)

Check failure on line 419 in packages/@o3r/components/builders/metadata-check/index.it.spec.ts

View workflow job for this annotation

GitHub Actions / it-tests / it-tests (ubuntu-latest, npm, o3r-project-with-app)

check metadata migration › should throw because breaking changes are not allowed

expect(received).toContain(expected) // indexOf Expected substring: "Property @o3r/lib10#MyConfig10 is not present in the new metadata and breaking changes are not allowed" Received string: "Command failed: npm exec ng run test-app:check-metadata STDERR: Property @o3r/lib1#MyConfig1 prop1 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib2#MyConfig2 prop2 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib3#MyConfig3 prop3 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib4#MyConfig4 prop4 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib5#MyConfig5 prop5 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib6#MyConfig6 prop6 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib7#MyConfig7 prop7 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib8#MyConfig8 prop8 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib9#MyConfig9 prop9 is not present in the new metadata and breaking changes are not allowed· OUTPUT: ,Latest version present in migration data folder: 1.3.0 Fetching @o3r/test-app-components-metadata-check4-breaking-changes@<1.3.0-a from the registry. Successfully fetched @o3r/test-app-components-metadata-check4-breaking-changes@<1.3.0-a with version 1.2.1. Resolved metadata from \"./component.config.metadata.json\". ,Property @o3r/lib1#MyConfig1 prop1 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib2#MyConfig2 prop2 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib3#MyConfig3 prop3 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib4#MyConfig4 prop4 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib5#MyConfig5 prop5 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib6#MyConfig6 prop6 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib7#MyConfig7 prop7 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib8#MyConfig8 prop8 is not present in the new metadata and breaking changes are not allowed Property @o3r/lib9#MyConfig9 prop9 is not present in the new metadata and breaking changes are not allowed " at builders/metadata-check/index.it.spec.ts:419:27 at Array.forEach (<anonymous>) at Object.<anonymous> (builders/metadata-check/index.it.spec.ts:415:46)

Check failure on line 419 in packages/@o3r/components/builders/metadata-check/index.it.spec.ts

View workflow job for this annotation

GitHub Actions / it-tests / it-tests (windows-latest, yarn, o3r-project-with-app)

check metadata migration › should throw because breaking changes are not allowed

expect(received).toContain(expected) // indexOf Expected substring: "Property @o3r/lib10#MyConfig10 is not present in the new metadata and breaking changes are not allowed" Received string: "Command failed: yarn ng run test-app:check-metadata STDERR: Property @o3r/lib1#MyConfig1 prop1 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib2#MyConfig2 prop2 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib3#MyConfig3 prop3 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib4#MyConfig4 prop4 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib5#MyConfig5 prop5 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib6#MyConfig6 prop6 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib7#MyConfig7 prop7 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib8#MyConfig8 prop8 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib9#MyConfig9 prop9 is not present in the new metadata and breaking changes are not allowed· OUTPUT: ,Latest version present in migration data folder: 1.3.0 Fetching @o3r/test-app-components-metadata-check4-breaking-changes@<1.3.0-a from the registry. Successfully fetched @o3r/test-app-components-metadata-check4-breaking-changes@<1.3.0-a with version 1.2.1. Resolved metadata from \"./component.config.metadata.json\". ,Property @o3r/lib1#MyConfig1 prop1 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib2#MyConfig2 prop2 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib3#MyConfig3 prop3 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib4#MyConfig4 prop4 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib5#MyConfig5 prop5 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib6#MyConfig6 prop6 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib7#MyConfig7 prop7 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib8#MyConfig8 prop8 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib9#MyConfig9 prop9 is not present in the new metadata and breaking changes are not allowed " at builders/metadata-check/index.it.spec.ts:419:27 at Array.forEach (<anonymous>) at Object.<anonymous> (builders/metadata-check/index.it.spec.ts:415:46)

Check failure on line 419 in packages/@o3r/components/builders/metadata-check/index.it.spec.ts

View workflow job for this annotation

GitHub Actions / it-tests / it-tests (windows-latest, npm, o3r-project-with-app)

check metadata migration › should throw because breaking changes are not allowed

expect(received).toContain(expected) // indexOf Expected substring: "Property @o3r/lib10#MyConfig10 is not present in the new metadata and breaking changes are not allowed" Received string: "Command failed: npm exec ng run test-app:check-metadata STDERR: Property @o3r/lib1#MyConfig1 prop1 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib2#MyConfig2 prop2 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib3#MyConfig3 prop3 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib4#MyConfig4 prop4 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib5#MyConfig5 prop5 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib6#MyConfig6 prop6 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib7#MyConfig7 prop7 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib8#MyConfig8 prop8 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib9#MyConfig9 prop9 is not present in the new metadata and breaking changes are not allowed· OUTPUT: ,Latest version present in migration data folder: 1.3.0 Fetching @o3r/test-app-components-metadata-check4-breaking-changes@<1.3.0-a from the registry. Successfully fetched @o3r/test-app-components-metadata-check4-breaking-changes@<1.3.0-a with version 1.2.1. Resolved metadata from \"./component.config.metadata.json\". ,Property @o3r/lib1#MyConfig1 prop1 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib2#MyConfig2 prop2 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib3#MyConfig3 prop3 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib4#MyConfig4 prop4 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib5#MyConfig5 prop5 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib6#MyConfig6 prop6 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib7#MyConfig7 prop7 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib8#MyConfig8 prop8 is not present in the new metadata and breaking changes are not allowed· Property @o3r/lib9#MyConfig9 prop9 is not present in the new metadata and breaking changes are not allowed " at builders/metadata-check/index.it.spec.ts:419:27 at Array.forEach (<anonymous>) at Object.<anonymous> (builders/metadata-check/index.it.spec.ts:415:46)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@
}
}
]
}
},
"minItems": 1
}
}
}
Expand Down

0 comments on commit c44ac8f

Please sign in to comment.