@IntegrationTest public class PersonalizationWebServiceSecurityTest extends BaseWebServiceTest
ACTION, ACTION_ENDPOINT, ADMIN_PASSWORD, ADMIN_USERNAME, CLIENT_ID, CLIENT_SECRET, CMSMANAGER_NOACCESS_USERNAME, CMSMANAGER_PASSWORD, CMSMANAGER_READ_ONLY_USERNAME, CMSMANAGER_USERNAME, CONTAINER, CUSTOMER_PASSWORD, CUSTOMER_USERNAME, FIELDS, INCORRECT_ID, NON_EXISTINGACTION, NONEXISTING_CUSTOMIZATION, NONEXISTING_VARIATION, TRIGGER, TRIGGER_ENDPOINT, VERSIONimportServicejaloSession| Constructor and Description |
|---|
PersonalizationWebServiceSecurityTest() |
| Modifier and Type | Method and Description |
|---|---|
protected Response |
crearteCustomizationPackage(java.lang.String user,
java.lang.String pwd) |
protected Response |
createCustomization(java.lang.String user,
java.lang.String pwd) |
void |
createCustomizationPackagePermissionsCheck() |
void |
createCustomizationPermissionsCheck() |
void |
createDefaultTriggerPermissionsCheck() |
protected Response |
createSegment(java.lang.String user,
java.lang.String pwd) |
void |
createSegmentPermissionsCheck() |
protected SegmentTriggerData |
createSegmentTriggerData(java.lang.String triggerCode,
java.lang.String segmentCode) |
protected Response |
createTrigger(java.lang.String user,
java.lang.String pwd) |
protected Response |
deleteSegment(java.lang.String user,
java.lang.String pwd) |
void |
deleteSegmentPermissionsCheck() |
void |
getAllCustmizationPermissionsCheck() |
void |
getAllCustmizationPermissionsCheckWithBasicScope() |
void |
getAllCustmizationPermissionsCheckWithNotExistingScope() |
void |
getAllCustmizationPermissionsCheckWithPersonalizationWebservicesScope() |
protected Response |
getAllCustomizations(java.lang.String user,
java.lang.String pwd,
java.lang.String... scope) |
protected Response |
getAllSegments(java.lang.String user,
java.lang.String pwd,
java.lang.String... scope) |
void |
getAllSegmentsPermissionsCheck() |
void |
getAllSegmentsPermissionsCheckWithBasicScope() |
void |
getAllSegmentsPermissionsCheckWithNotExistingScope() |
void |
getAllSegmentsPermissionsCheckWithPersonalizationWebservicesScope() |
void |
getCustmizationByIdPermissionsCheck() |
protected Response |
getCustomerSegmentation(java.lang.String user,
java.lang.String pwd) |
void |
getCustomerSegmentationPermissionsCheck() |
protected Response |
getCustomization(java.lang.String user,
java.lang.String pwd) |
protected Response |
getSegmentsByCode(java.lang.String user,
java.lang.String pwd) |
void |
getSegmentsByCodePermissionsCheck() |
protected Response |
getSegmentTrigger(java.lang.String user,
java.lang.String pwd) |
void |
getSegmentTriggerPermissionsCheck() |
protected Response |
getTriggers(java.lang.String user,
java.lang.String pwd) |
void |
getTriggersPermissionsCheck() |
protected Response |
getVariations(java.lang.String user,
java.lang.String pwd) |
void |
getVariationsPermissionsCheck() |
protected Response |
updateCustomization(java.lang.String user,
java.lang.String pwd) |
void |
updateCustomizationStatusPermissionsCheck() |
protected Response |
updateSegment(java.lang.String user,
java.lang.String pwd) |
void |
updateSegmentPermissionsCheck() |
protected Response |
updateTrigger(java.lang.String user,
java.lang.String pwd) |
void |
updateTriggerPermissionsCheck() |
protected Response |
updateVariation(java.lang.String user,
java.lang.String pwd) |
void |
updateVariationPermissionsCheck() |
assertDateTimeAlmostEqual, assertDateTimeAlmostEqual, getWsRequestBuilder, getWsSecuredRequestBuilder, getWsSecuredRequestBuilderForAdmin, getWsSecuredRequestBuilderForCmsManager, getWsSecuredRequestBuilderForCustomer, marshallDto, setUp, unmarshallResultcreateCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneautowireProperties, getBeanName, prepareApplicationContextAndSessionestablishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSessionpublic PersonalizationWebServiceSecurityTest()
public void getAllSegmentsPermissionsCheck()
throws java.io.IOException
java.io.IOExceptionpublic void getAllSegmentsPermissionsCheckWithNotExistingScope()
throws java.io.IOException
java.io.IOExceptionpublic void getAllSegmentsPermissionsCheckWithPersonalizationWebservicesScope()
throws java.io.IOException
java.io.IOExceptionpublic void getAllSegmentsPermissionsCheckWithBasicScope()
throws java.io.IOException
java.io.IOExceptionprotected Response getAllSegments(java.lang.String user,
java.lang.String pwd,
java.lang.String... scope)
public void getSegmentsByCodePermissionsCheck()
throws java.io.IOException
java.io.IOExceptionprotected Response getSegmentsByCode(java.lang.String user,
java.lang.String pwd)
public void updateSegmentPermissionsCheck()
throws java.io.IOException,
javax.xml.bind.JAXBException
java.io.IOExceptionjavax.xml.bind.JAXBExceptionprotected Response updateSegment(java.lang.String user,
java.lang.String pwd)
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBExceptionpublic void createSegmentPermissionsCheck()
throws java.io.IOException,
javax.xml.bind.JAXBException
java.io.IOExceptionjavax.xml.bind.JAXBExceptionprotected Response createSegment(java.lang.String user,
java.lang.String pwd)
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBExceptionpublic void deleteSegmentPermissionsCheck()
throws java.io.IOException,
javax.xml.bind.JAXBException
java.io.IOExceptionjavax.xml.bind.JAXBExceptionprotected Response deleteSegment(java.lang.String user,
java.lang.String pwd)
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBExceptionpublic void getCustomerSegmentationPermissionsCheck()
throws java.io.IOException
java.io.IOExceptionprotected Response getCustomerSegmentation(java.lang.String user,
java.lang.String pwd)
public void getCustmizationByIdPermissionsCheck()
throws java.io.IOException
java.io.IOExceptionprotected Response getCustomization(java.lang.String user,
java.lang.String pwd)
public void getAllCustmizationPermissionsCheck()
throws java.io.IOException
java.io.IOExceptionpublic void getAllCustmizationPermissionsCheckWithNotExistingScope()
throws java.io.IOException
java.io.IOExceptionpublic void getAllCustmizationPermissionsCheckWithPersonalizationWebservicesScope()
throws java.io.IOException
java.io.IOExceptionpublic void getAllCustmizationPermissionsCheckWithBasicScope()
throws java.io.IOException
java.io.IOExceptionprotected Response getAllCustomizations(java.lang.String user,
java.lang.String pwd,
java.lang.String... scope)
public void createCustomizationPermissionsCheck()
throws java.io.IOException,
javax.xml.bind.JAXBException
java.io.IOExceptionjavax.xml.bind.JAXBExceptionprotected Response createCustomization(java.lang.String user,
java.lang.String pwd)
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBExceptionpublic void updateCustomizationStatusPermissionsCheck()
throws java.io.IOException,
javax.xml.bind.JAXBException
java.io.IOExceptionjavax.xml.bind.JAXBExceptionprotected Response updateCustomization(java.lang.String user,
java.lang.String pwd)
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBExceptionpublic void getVariationsPermissionsCheck()
throws java.io.IOException
java.io.IOExceptionprotected Response getVariations(java.lang.String user,
java.lang.String pwd)
public void updateVariationPermissionsCheck()
throws java.io.IOException
java.io.IOExceptionprotected Response updateVariation(java.lang.String user,
java.lang.String pwd)
public void getTriggersPermissionsCheck()
throws java.io.IOException
java.io.IOExceptionprotected Response getTriggers(java.lang.String user,
java.lang.String pwd)
public void getSegmentTriggerPermissionsCheck()
throws java.io.IOException,
javax.xml.bind.JAXBException
java.io.IOExceptionjavax.xml.bind.JAXBExceptionprotected Response getSegmentTrigger(java.lang.String user,
java.lang.String pwd)
public void createDefaultTriggerPermissionsCheck()
throws java.io.IOException,
javax.xml.bind.JAXBException
java.io.IOExceptionjavax.xml.bind.JAXBExceptionprotected Response createTrigger(java.lang.String user,
java.lang.String pwd)
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBExceptionpublic void updateTriggerPermissionsCheck()
throws java.io.IOException,
javax.xml.bind.JAXBException
java.io.IOExceptionjavax.xml.bind.JAXBExceptionprotected Response updateTrigger(java.lang.String user,
java.lang.String pwd)
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBExceptionpublic void createCustomizationPackagePermissionsCheck()
throws java.io.IOException,
javax.xml.bind.JAXBException
java.io.IOExceptionjavax.xml.bind.JAXBExceptionprotected Response crearteCustomizationPackage(java.lang.String user,
java.lang.String pwd)
throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBExceptionprotected SegmentTriggerData createSegmentTriggerData(java.lang.String triggerCode, java.lang.String segmentCode)
Copyright © 2018 SAP SE. All Rights Reserved.