package org.onap.vid.aai.model.AaiGetPnfs;
-import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
import org.onap.vid.aai.model.AaiRelationResponse;
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonCreator
public Pnf(
- @JsonAlias("pnf-id") String pnfId, @JsonAlias("pnf-name") String pnfName,
- @JsonAlias("pnf-name2") String pnfName2, @JsonAlias("pnf-name2-source") String pnfName2Source,
- @JsonAlias("equip-type") String equipType, @JsonAlias("equip-vendor") String equipVendor,
- @JsonAlias("equip-model") String equipModel) {
+ @JsonProperty("pnf-id") String pnfId, @JsonProperty("pnf-name") String pnfName,
+ @JsonProperty("pnf-name2") String pnfName2, @JsonProperty("pnf-name2-source") String pnfName2Source,
+ @JsonProperty("equip-type") String equipType, @JsonProperty("equip-vendor") String equipVendor,
+ @JsonProperty("equip-model") String equipModel) {
this.pnfId = pnfId;
this.pnfName = pnfName;
vidBasePage.assertMsoRequestModal("Error");
vidBasePage.clickCloseButton();
}
+
@Test
public void testRainyChoosePnf() throws Exception {
SimulatorApi.clearAll();
boolean waitForElementResult = Wait.waitByTestId(Constants.ViewEdit.VNF_OPTION_TEST_ID_PREFIX + pnfName, 60);
Assert.assertTrue(message, !waitForElementResult);
}
+
@Test
public void testRainySearchPnfInstance() throws Exception {
SimulatorApi.clearAll();
}
GeneralUIUtils.ultimateWait();
}
+
private void associatePNF() throws InterruptedException {
pnfSearchAssociationPage.clickAssociateButton();
}
Wait.angularHttpRequestsLoaded();
assertAssociateButtonState(true);
}
+
private void checkServiceModelInfo() {
Wait.angularHttpRequestsLoaded();
//Service name
infoItemText = GeneralUIUtils.getWebElementByTestID(elementTestId, 60).getText();
Assert.assertEquals(String.format(Constants.PnfAssociation.PNF_INSTANCE_ERROR_MESSAGE,elementTestId),infoItemText,"ASR1002-X");
}
-
-
-
}