Skip to content

Commit

Permalink
Change containerEngine to containerType
Browse files Browse the repository at this point in the history
  • Loading branch information
cherylking committed Nov 21, 2023
1 parent ce03849 commit fb5b42f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5710,7 +5710,7 @@ public void writeDevcMetadata(boolean alive) {
metadataWriter = XMLOutputFactory.newInstance().createXMLStreamWriter(metaFileWriter) ;
metadataWriter.writeStartDocument();
metadataWriter.writeStartElement("devcModeMetaData");
writeElement(metadataWriter, "containerEngine", isDocker ? DEVC_CONTAINER_DOCKER : DEVC_CONTAINER_PODMAN);
writeElement(metadataWriter, "containerType", isDocker ? DEVC_CONTAINER_DOCKER : DEVC_CONTAINER_PODMAN);
writeElement(metadataWriter, "containerName", containerName != null ? containerName : DEVMODE_CONTAINER_BASE_NAME);
writeElement(metadataWriter, "imageName", imageName);
if (containerfile != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ public void testWriteDevcMetadataSimple() throws XMLStreamException, FactoryConf
assertTrue(content.contains("<containerName>liberty-dev</containerName"));
assertTrue(content.contains("<containerAlive>true</containerAlive>"));
assertTrue(content.contains("<containerBuildTimeout>600</containerBuildTimeout>"));
assertTrue(content.contains("<containerEngine>docker</containerEngine>"));
assertTrue(content.contains("<containerType>docker</containerType>"));
assertTrue(content.contains("<containerRunOpts></containerRunOpts>"));
assertTrue(content.contains("<imageName></imageName>"));

Expand All @@ -549,7 +549,7 @@ public void testWriteDevcMetadataSimple() throws XMLStreamException, FactoryConf
assertTrue(content.contains("<containerName>liberty-dev</containerName"));
assertTrue(content.contains("<containerAlive>false</containerAlive>"));
assertTrue(content.contains("<containerBuildTimeout>600</containerBuildTimeout>"));
assertTrue(content.contains("<containerEngine>docker</containerEngine>"));
assertTrue(content.contains("<containerType>docker</containerType>"));
assertTrue(content.contains("<containerRunOpts></containerRunOpts>"));
assertTrue(content.contains("<imageName></imageName>"));
}
Expand Down

0 comments on commit fb5b42f

Please sign in to comment.