public class CRUDExternalAPI extends ComponentBaseTest
ComponentBaseTest.ComponentOperationEnum
Modifier and Type | Field and Description |
---|---|
protected String |
acceptHeaderDate |
protected Config |
config |
protected String |
contentTypeHeaderData |
protected com.google.gson.Gson |
gson |
protected org.json.simple.parser.JSONParser |
jsonParser |
static org.junit.rules.TestName |
name |
protected ResourceReqDetails |
resourceDetails |
protected User |
sdncUserDetails |
protected ServiceReqDetails |
serviceDetails |
protected String |
serviceVersion |
protected static String |
UPLOAD_ARTIFACT_NAME |
protected static String |
UPLOAD_ARTIFACT_PAYLOAD |
extendTest, extentReport, REPORT_FOLDER, titanGraph
Constructor and Description |
---|
CRUDExternalAPI() |
afterState, beforeState, openTitan, shutdownTitan, verifyErrorCode
protected static final String UPLOAD_ARTIFACT_PAYLOAD
protected static final String UPLOAD_ARTIFACT_NAME
protected Config config
protected String contentTypeHeaderData
protected String acceptHeaderDate
protected com.google.gson.Gson gson
protected org.json.simple.parser.JSONParser jsonParser
protected String serviceVersion
protected ResourceReqDetails resourceDetails
protected User sdncUserDetails
protected ServiceReqDetails serviceDetails
public static org.junit.rules.TestName name
public static Object[][] dataProviderUploadArtifactOnVFViaExternalAPI()
public void uploadArtifactOnVFViaExternalAPI(LifeCycleStatesEnum chosenLifeCycleState, String artifactType) throws Exception
Exception
public static Object[][] dataProviderUploadArtifactOnServiceViaExternalAPI()
public void uploadArtifactOnServiceViaExternalAPI(LifeCycleStatesEnum chosenLifeCycleState, String artifactType) throws Exception
Exception
public void artifactOperationOnRIViaExternalAPI() throws Exception
Exception
public void getResourceAssetMetadataWithNonCertifiedResourceInstancesAndArtifactsSuccess() throws Exception
Exception
public Component getComponentInTargetLifeCycleState(String componentType, UserRoleEnum creatorUser, LifeCycleStatesEnum targetLifeCycleState) throws Exception
Exception
protected String createUploadArtifactBodyJson()
protected ArtifactDefinition getArtifactDataFromJson(String json)
protected org.apache.http.client.methods.HttpGet createGetRequest(String url)
protected String getArtifactUid(org.apache.http.HttpResponse response) throws org.apache.http.client.HttpResponseException, IOException, org.json.simple.parser.ParseException
org.apache.http.client.HttpResponseException
IOException
org.json.simple.parser.ParseException
protected String getArtifactEsId(org.apache.http.HttpResponse response) throws org.apache.http.client.HttpResponseException, IOException, org.json.simple.parser.ParseException
org.apache.http.client.HttpResponseException
IOException
org.json.simple.parser.ParseException
protected ArtifactDefinition addArtifactDataFromResponse(org.apache.http.HttpResponse response, ArtifactDefinition artifact) throws org.apache.http.client.HttpResponseException, IOException, org.json.simple.parser.ParseException
org.apache.http.client.HttpResponseException
IOException
org.json.simple.parser.ParseException
protected String getLifecycleArtifactUid(org.apache.http.client.methods.CloseableHttpResponse response) throws org.apache.http.client.HttpResponseException, IOException, org.json.simple.parser.ParseException
org.apache.http.client.HttpResponseException
IOException
org.json.simple.parser.ParseException
protected org.apache.http.client.methods.HttpDelete createDeleteArtifactRequest(String url)
protected org.apache.http.client.methods.HttpPost createPostAddArtifactRequeast(String jsonBody, String url, boolean addMd5Header) throws UnsupportedEncodingException
UnsupportedEncodingException
protected String createLoadArtifactBody()
protected void checkDeleteResponse(RestResponse response)
protected ArtifactUiDownloadData getArtifactUiDownloadData(String artifactUiDownloadDataStr) throws Exception
Exception
Copyright © 2017. All rights reserved.