Unify target attributes and metadata (#2408)
* Unify target attributes and metadata Currently, the target attributes are Map while the metadata, which has the same concept is List. This PR unifies them making the metadata also a Map Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -424,10 +424,6 @@ public abstract class AbstractIntegrationTest {
|
||||
return distributionSetManagement.putMetaData(dsId, md);
|
||||
}
|
||||
|
||||
protected void createTargetMetadata(final String controllerId, final MetaData md) {
|
||||
createTargetMetadata(controllerId, Collections.singletonList(md));
|
||||
}
|
||||
|
||||
protected Long getOsModule(final DistributionSet ds) {
|
||||
return ds.findFirstModuleByType(osType).orElseThrow(NoSuchElementException::new).getId();
|
||||
}
|
||||
@@ -504,8 +500,4 @@ public abstract class AbstractIntegrationTest {
|
||||
throw new ArtifactStoreException("Cannot create temp file", e);
|
||||
}
|
||||
}
|
||||
|
||||
private void createTargetMetadata(final String controllerId, final List<MetaData> md) {
|
||||
targetManagement.createMetaData(controllerId, md);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user