Michael Pasternak has posted comments on this change.
Change subject: core: Initial support for alternative architectures
......................................................................
Patch Set 3: I would prefer that you didn't submit this
(5 inline comments)
....................................................
File
backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/model/Architecture.java
Line 1: package org.ovirt.engine.api.model;
Line 2:
Line 3: public enum Architecture {
Line 4: x86_64,
Line 5: ppc64;
upper case?
Line 6:
Line 7: public String value() {
Line 8: return name().toLowerCase();
Line 9: }
....................................................
File
backend/manager/modules/restapi/interface/definition/src/main/resources/api.xsd
Line 1178: <xs:element name="threads_as_cores" type="xs:boolean"
minOccurs="0" maxOccurs="1"/>
Line 1179: <xs:element name="tunnel_migration" type="xs:boolean"
minOccurs="0" maxOccurs="1"/>
Line 1180: <xs:element name="trusted_service" type="xs:boolean"
minOccurs="0" maxOccurs="1"/>
Line 1181: <xs:element name="ballooning_enabled" type="xs:boolean"
minOccurs="0" maxOccurs="1"/>
Line 1182: <xs:element name="architecture" type="xs:string"
minOccurs="0" maxOccurs="1"/>
cluster already have reference to the "cpu" , since "architecture" is a part of
"cpu" logic, please move it there
Line 1183: <!-- Also a rel="networks" link -->
Line 1184: </xs:sequence>
Line 1185: </xs:extension>
Line 1186: </xs:complexContent>
....................................................
File
backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/util/ServerCpuParserTest.java
Line 52: }
Line 53:
Line 54: @Test
Line 55: public void testParseNoFlags() {
Line 56: List<ServerCpu> cpus = parseCpus("0:foo::blue:x86_64"); //
FIXME
what does FIXME means?
Line 57: assertNotNull(cpus);
Line 58: assertEquals(1, cpus.size());
Line 59: verifyCpu(cpus.get(0), 0, "foo", "blue", "x86_64");
Line 60: }
Line 60: }
Line 61:
Line 62: @Test
Line 63: public void testParseNoNameFlagsOrVerb() {
Line 64: List<ServerCpu> cpus = parseCpus("0::::x86_64"); // FIXME
same
Line 65: assertNotNull(cpus);
Line 66: assertEquals(1, cpus.size());
Line 67: verifyCpu(cpus.get(0), 0, "", "", "x86_64");
Line 68: }
....................................................
File
backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/ClusterMapper.java
Line 53: entity.setcompatibility_version(new
org.ovirt.engine.core.compat.Version(model.getVersion().getMajor(),
Line 54:
model.getVersion().getMinor()));
Line 55: }
Line 56: if (model.isSetArchitecture()) {
Line 57: Architecture architecture =
Architecture.fromValue(model.getArchitecture());
please move this line ^ to the enum mapping method (it's a part of enum mapping
logic)
Line 58: if (architecture != null) {
Line 59: entity.setArchitectureType(map(architecture, null));
Line 60: }
Line 61: }
--
To view, visit http://gerrit.ovirt.org/16700
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I33ed9231a6467aa59e8f3223ba9d61b6e68039fa
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Vitor de Lima <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Itamar Heim <[email protected]>
Gerrit-Reviewer: Michael Pasternak <[email protected]>
Gerrit-Reviewer: Michal Skrivanek <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Roy Golan <[email protected]>
Gerrit-Reviewer: Tomas Jelinek <[email protected]>
Gerrit-Reviewer: Vitor de Lima <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches