Class PersonalizationWebServiceSecurityTest
- java.lang.Object
-
- de.hybris.platform.testframework.HybrisJUnit4Test
-
- de.hybris.platform.servicelayer.ServicelayerBaseTest
-
- de.hybris.platform.servicelayer.ServicelayerTest
-
- de.hybris.platform.personalizationwebservices.BaseWebServiceTest
-
- de.hybris.platform.personalizationwebservices.PersonalizationWebServiceSecurityTest
-
- All Implemented Interfaces:
JaloSessionHolder
@IntegrationTest public class PersonalizationWebServiceSecurityTest extends BaseWebServiceTest
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.personalizationwebservices.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, VERSION
-
Fields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importService
-
Fields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession
-
-
Constructor Summary
Constructors Constructor Description PersonalizationWebServiceSecurityTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.ws.rs.core.ResponsecrearteCustomizationPackage(java.lang.String user, java.lang.String pwd)protected javax.ws.rs.core.ResponsecreateCustomization(java.lang.String user, java.lang.String pwd)voidcreateCustomizationPackagePermissionsCheck()voidcreateCustomizationPermissionsCheck()voidcreateDefaultTriggerPermissionsCheck()protected javax.ws.rs.core.ResponsecreateSegment(java.lang.String user, java.lang.String pwd)voidcreateSegmentPermissionsCheck()protected SegmentTriggerDatacreateSegmentTriggerData(java.lang.String triggerCode, java.lang.String segmentCode)protected javax.ws.rs.core.ResponsecreateTrigger(java.lang.String user, java.lang.String pwd)protected javax.ws.rs.core.ResponsedeleteSegment(java.lang.String user, java.lang.String pwd)voiddeleteSegmentPermissionsCheck()voidgetAllCustmizationPermissionsCheck()voidgetAllCustmizationPermissionsCheckWithBasicScope()voidgetAllCustmizationPermissionsCheckWithNotExistingScope()voidgetAllCustmizationPermissionsCheckWithPersonalizationWebservicesScope()protected javax.ws.rs.core.ResponsegetAllCustomizations(java.lang.String user, java.lang.String pwd, java.lang.String... scope)protected javax.ws.rs.core.ResponsegetAllSegments(java.lang.String user, java.lang.String pwd, java.lang.String... scope)voidgetAllSegmentsPermissionsCheck()voidgetAllSegmentsPermissionsCheckWithBasicScope()voidgetAllSegmentsPermissionsCheckWithNotExistingScope()voidgetAllSegmentsPermissionsCheckWithPersonalizationWebservicesScope()voidgetCustmizationByIdPermissionsCheck()protected javax.ws.rs.core.ResponsegetCustomerSegmentation(java.lang.String user, java.lang.String pwd)voidgetCustomerSegmentationPermissionsCheck()protected javax.ws.rs.core.ResponsegetCustomization(java.lang.String user, java.lang.String pwd)protected javax.ws.rs.core.ResponsegetSegmentsByCode(java.lang.String user, java.lang.String pwd)voidgetSegmentsByCodePermissionsCheck()protected javax.ws.rs.core.ResponsegetSegmentTrigger(java.lang.String user, java.lang.String pwd)voidgetSegmentTriggerPermissionsCheck()protected javax.ws.rs.core.ResponsegetTriggers(java.lang.String user, java.lang.String pwd)voidgetTriggersPermissionsCheck()protected javax.ws.rs.core.ResponsegetVariations(java.lang.String user, java.lang.String pwd)voidgetVariationsPermissionsCheck()protected javax.ws.rs.core.ResponseupdateCustomization(java.lang.String user, java.lang.String pwd)voidupdateCustomizationStatusPermissionsCheck()protected javax.ws.rs.core.ResponseupdateSegment(java.lang.String user, java.lang.String pwd)voidupdateSegmentPermissionsCheck()protected javax.ws.rs.core.ResponseupdateTrigger(java.lang.String user, java.lang.String pwd)voidupdateTriggerPermissionsCheck()protected javax.ws.rs.core.ResponseupdateVariation(java.lang.String user, java.lang.String pwd)voidupdateVariationPermissionsCheck()-
Methods inherited from class de.hybris.platform.personalizationwebservices.BaseWebServiceTest
assertDateTimeAlmostEqual, assertDateTimeAlmostEqual, getWsRequestBuilder, getWsSecuredRequestBuilder, getWsSecuredRequestBuilderForAdmin, getWsSecuredRequestBuilderForCmsManager, getWsSecuredRequestBuilderForCustomer, marshallDto, setUp, unmarshallResult
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNone
-
Methods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSession
-
Methods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
-
-
-
Method Detail
-
getAllSegmentsPermissionsCheck
public void getAllSegmentsPermissionsCheck() throws java.io.IOException- Throws:
java.io.IOException
-
getAllSegmentsPermissionsCheckWithNotExistingScope
public void getAllSegmentsPermissionsCheckWithNotExistingScope() throws java.io.IOException- Throws:
java.io.IOException
-
getAllSegmentsPermissionsCheckWithPersonalizationWebservicesScope
public void getAllSegmentsPermissionsCheckWithPersonalizationWebservicesScope() throws java.io.IOException- Throws:
java.io.IOException
-
getAllSegmentsPermissionsCheckWithBasicScope
public void getAllSegmentsPermissionsCheckWithBasicScope() throws java.io.IOException- Throws:
java.io.IOException
-
getAllSegments
protected javax.ws.rs.core.Response getAllSegments(java.lang.String user, java.lang.String pwd, java.lang.String... scope)
-
getSegmentsByCodePermissionsCheck
public void getSegmentsByCodePermissionsCheck() throws java.io.IOException- Throws:
java.io.IOException
-
getSegmentsByCode
protected javax.ws.rs.core.Response getSegmentsByCode(java.lang.String user, java.lang.String pwd)
-
updateSegmentPermissionsCheck
public void updateSegmentPermissionsCheck() throws java.io.IOException, javax.xml.bind.JAXBException- Throws:
java.io.IOExceptionjavax.xml.bind.JAXBException
-
updateSegment
protected javax.ws.rs.core.Response updateSegment(java.lang.String user, java.lang.String pwd) throws javax.xml.bind.JAXBException- Throws:
javax.xml.bind.JAXBException
-
createSegmentPermissionsCheck
public void createSegmentPermissionsCheck() throws java.io.IOException, javax.xml.bind.JAXBException- Throws:
java.io.IOExceptionjavax.xml.bind.JAXBException
-
createSegment
protected javax.ws.rs.core.Response createSegment(java.lang.String user, java.lang.String pwd) throws javax.xml.bind.JAXBException- Throws:
javax.xml.bind.JAXBException
-
deleteSegmentPermissionsCheck
public void deleteSegmentPermissionsCheck() throws java.io.IOException, javax.xml.bind.JAXBException- Throws:
java.io.IOExceptionjavax.xml.bind.JAXBException
-
deleteSegment
protected javax.ws.rs.core.Response deleteSegment(java.lang.String user, java.lang.String pwd) throws javax.xml.bind.JAXBException- Throws:
javax.xml.bind.JAXBException
-
getCustomerSegmentationPermissionsCheck
public void getCustomerSegmentationPermissionsCheck() throws java.io.IOException- Throws:
java.io.IOException
-
getCustomerSegmentation
protected javax.ws.rs.core.Response getCustomerSegmentation(java.lang.String user, java.lang.String pwd)
-
getCustmizationByIdPermissionsCheck
public void getCustmizationByIdPermissionsCheck() throws java.io.IOException- Throws:
java.io.IOException
-
getCustomization
protected javax.ws.rs.core.Response getCustomization(java.lang.String user, java.lang.String pwd)
-
getAllCustmizationPermissionsCheck
public void getAllCustmizationPermissionsCheck() throws java.io.IOException- Throws:
java.io.IOException
-
getAllCustmizationPermissionsCheckWithNotExistingScope
public void getAllCustmizationPermissionsCheckWithNotExistingScope() throws java.io.IOException- Throws:
java.io.IOException
-
getAllCustmizationPermissionsCheckWithPersonalizationWebservicesScope
public void getAllCustmizationPermissionsCheckWithPersonalizationWebservicesScope() throws java.io.IOException- Throws:
java.io.IOException
-
getAllCustmizationPermissionsCheckWithBasicScope
public void getAllCustmizationPermissionsCheckWithBasicScope() throws java.io.IOException- Throws:
java.io.IOException
-
getAllCustomizations
protected javax.ws.rs.core.Response getAllCustomizations(java.lang.String user, java.lang.String pwd, java.lang.String... scope)
-
createCustomizationPermissionsCheck
public void createCustomizationPermissionsCheck() throws java.io.IOException, javax.xml.bind.JAXBException- Throws:
java.io.IOExceptionjavax.xml.bind.JAXBException
-
createCustomization
protected javax.ws.rs.core.Response createCustomization(java.lang.String user, java.lang.String pwd) throws javax.xml.bind.JAXBException- Throws:
javax.xml.bind.JAXBException
-
updateCustomizationStatusPermissionsCheck
public void updateCustomizationStatusPermissionsCheck() throws java.io.IOException, javax.xml.bind.JAXBException- Throws:
java.io.IOExceptionjavax.xml.bind.JAXBException
-
updateCustomization
protected javax.ws.rs.core.Response updateCustomization(java.lang.String user, java.lang.String pwd) throws javax.xml.bind.JAXBException- Throws:
javax.xml.bind.JAXBException
-
getVariationsPermissionsCheck
public void getVariationsPermissionsCheck() throws java.io.IOException- Throws:
java.io.IOException
-
getVariations
protected javax.ws.rs.core.Response getVariations(java.lang.String user, java.lang.String pwd)
-
updateVariationPermissionsCheck
public void updateVariationPermissionsCheck() throws java.io.IOException- Throws:
java.io.IOException
-
updateVariation
protected javax.ws.rs.core.Response updateVariation(java.lang.String user, java.lang.String pwd)
-
getTriggersPermissionsCheck
public void getTriggersPermissionsCheck() throws java.io.IOException- Throws:
java.io.IOException
-
getTriggers
protected javax.ws.rs.core.Response getTriggers(java.lang.String user, java.lang.String pwd)
-
getSegmentTriggerPermissionsCheck
public void getSegmentTriggerPermissionsCheck() throws java.io.IOException, javax.xml.bind.JAXBException- Throws:
java.io.IOExceptionjavax.xml.bind.JAXBException
-
getSegmentTrigger
protected javax.ws.rs.core.Response getSegmentTrigger(java.lang.String user, java.lang.String pwd)
-
createDefaultTriggerPermissionsCheck
public void createDefaultTriggerPermissionsCheck() throws java.io.IOException, javax.xml.bind.JAXBException- Throws:
java.io.IOExceptionjavax.xml.bind.JAXBException
-
createTrigger
protected javax.ws.rs.core.Response createTrigger(java.lang.String user, java.lang.String pwd) throws javax.xml.bind.JAXBException- Throws:
javax.xml.bind.JAXBException
-
updateTriggerPermissionsCheck
public void updateTriggerPermissionsCheck() throws java.io.IOException, javax.xml.bind.JAXBException- Throws:
java.io.IOExceptionjavax.xml.bind.JAXBException
-
updateTrigger
protected javax.ws.rs.core.Response updateTrigger(java.lang.String user, java.lang.String pwd) throws javax.xml.bind.JAXBException- Throws:
javax.xml.bind.JAXBException
-
createCustomizationPackagePermissionsCheck
public void createCustomizationPackagePermissionsCheck() throws java.io.IOException, javax.xml.bind.JAXBException- Throws:
java.io.IOExceptionjavax.xml.bind.JAXBException
-
crearteCustomizationPackage
protected javax.ws.rs.core.Response crearteCustomizationPackage(java.lang.String user, java.lang.String pwd) throws javax.xml.bind.JAXBException- Throws:
javax.xml.bind.JAXBException
-
createSegmentTriggerData
protected SegmentTriggerData createSegmentTriggerData(java.lang.String triggerCode, java.lang.String segmentCode)
-
-