public class ArtifactServletTest extends ComponentBaseTest
ComponentBaseTest.ComponentOperationEnum
Modifier and Type | Field and Description |
---|---|
protected String |
acceptHeaderDate |
protected Config |
config |
protected String |
contentTypeHeaderData |
protected Service |
defaultService1 |
protected com.google.gson.Gson |
gson |
protected org.json.simple.parser.JSONParser |
jsonParser |
static org.junit.rules.TestName |
name |
protected Resource |
resourceDetailsVFCcomp |
protected User |
sdncUserDetails |
protected String |
serviceVersion |
protected static String |
UPLOAD_ARTIFACT_NAME |
protected static String |
UPLOAD_ARTIFACT_PAYLOAD |
extendTest, extentReport, REPORT_FOLDER, titanGraph
Constructor and Description |
---|
ArtifactServletTest() |
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 Resource resourceDetailsVFCcomp
protected Service defaultService1
protected User sdncUserDetails
public static org.junit.rules.TestName name
public void upadteArtifactWithPayLoadToResourcseTest() throws Exception
Exception
public void createAndUpdateArtifactToInterface() 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
public void addArtifactNoPayLoadToResourcseTest() throws Exception
Exception
public void upadteArtifactNoPayLoadToResourcseTest() throws Exception
Exception
public void updateDeploymentArtifactToResourcseTest() throws Exception
Exception
public void addArtifactToResourcse_AlreadyExistsTest() throws Exception
Exception
public void addArtifactToResourcse_MissingContentTest() throws Exception
Exception
public void addArtifactToResourcse_MissingMd5Test() throws Exception
Exception
public void deleteArtifact_NotExistsTest() throws Exception
Exception
public void createAndRemoveArtifactToInterface() throws Exception
Exception
public void addArtifactNotSupportedTypeToServiceTest() throws Exception
Exception
Copyright © 2017. All rights reserved.