@Test(expected = IllegalArgumentException.class) public void deploymentSpecWithIncreasinglyStrictUpgradePoliciesAfterParallel() { StringReader r = new StringReader( "<deployment version='1.0'>" + " <parallel>" + " <instance id='instance1'>" + " <upgrade policy='conservative'/>" + " </instance>" + " <instance id='instance2'>" + " <upgrade policy='canary'/>" + " </instance>" + " </parallel>" + " <instance id='instance3'/>" + "</deployment>" ); DeploymentSpec.fromXml(r); }
public static DeploymentSpec fromXml(Reader reader) { return new DeploymentSpecXmlReader().read(reader); }
DeploymentSpec { public static DeploymentSpec fromXml(Reader reader) { return new DeploymentSpecXmlReader().read(reader); } }
DeploymentSpec { public static DeploymentSpec fromXml(Reader reader) { return new DeploymentSpecXmlReader().read(reader); } DeploymentSpec(List<Step> steps,
                          Optional<Integer> majorVersion,
                          Optional<AthenzDomain> athenzDomain,
                          Optional<AthenzService> athenzService,
                          String xmlForm); }
DeploymentSpec { public static DeploymentSpec fromXml(Reader reader) { return new DeploymentSpecXmlReader().read(reader); } DeploymentSpec(List<Step> steps,
                          Optional<Integer> majorVersion,
                          Optional<AthenzDomain> athenzDomain,
                          Optional<AthenzService> athenzService,
                          String xmlForm); Optional<Integer> majorVersion(); List<Step> steps(); Optional<AthenzDomain> athenzDomain(); Optional<AthenzService> athenzService(); String xmlForm(); Optional<DeploymentInstanceSpec> instance(InstanceName name); DeploymentInstanceSpec requireInstance(String name); DeploymentInstanceSpec requireInstance(InstanceName name); List<InstanceName> instanceNames(); List<DeploymentInstanceSpec> instances(); static DeploymentSpec fromXml(Reader reader); static DeploymentSpec fromXml(String xmlForm); static DeploymentSpec fromXml(String xmlForm, boolean validate); static String toMessageString(Throwable t); @Override boolean equals(Object o); @Override int hashCode(); }
DeploymentSpec { public static DeploymentSpec fromXml(Reader reader) { return new DeploymentSpecXmlReader().read(reader); } DeploymentSpec(List<Step> steps,
                          Optional<Integer> majorVersion,
                          Optional<AthenzDomain> athenzDomain,
                          Optional<AthenzService> athenzService,
                          String xmlForm); Optional<Integer> majorVersion(); List<Step> steps(); Optional<AthenzDomain> athenzDomain(); Optional<AthenzService> athenzService(); String xmlForm(); Optional<DeploymentInstanceSpec> instance(InstanceName name); DeploymentInstanceSpec requireInstance(String name); DeploymentInstanceSpec requireInstance(InstanceName name); List<InstanceName> instanceNames(); List<DeploymentInstanceSpec> instances(); static DeploymentSpec fromXml(Reader reader); static DeploymentSpec fromXml(String xmlForm); static DeploymentSpec fromXml(String xmlForm, boolean validate); static String toMessageString(Throwable t); @Override boolean equals(Object o); @Override int hashCode(); static final DeploymentSpec empty; }