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
-
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, VERSIONFields inherited from class de.hybris.platform.servicelayer.ServicelayerTest
importServiceFields inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
jaloSession -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected javax.ws.rs.core.ResponsecrearteCustomizationPackage(String user, String pwd) protected javax.ws.rs.core.ResponsecreateCustomization(String user, String pwd) voidvoidvoidprotected javax.ws.rs.core.ResponsecreateSegment(String user, String pwd) voidprotected SegmentTriggerDatacreateSegmentTriggerData(String triggerCode, String segmentCode) protected javax.ws.rs.core.ResponsecreateTrigger(String user, String pwd) protected javax.ws.rs.core.ResponsedeleteSegment(String user, String pwd) voidvoidvoidvoidvoidprotected javax.ws.rs.core.ResponsegetAllCustomizations(String user, String pwd, String... scope) protected javax.ws.rs.core.ResponsegetAllSegments(String user, String pwd, String... scope) voidvoidvoidvoidvoidprotected javax.ws.rs.core.ResponsegetCustomerSegmentation(String user, String pwd) voidprotected javax.ws.rs.core.ResponsegetCustomization(String user, String pwd) protected javax.ws.rs.core.ResponsegetSegmentsByCode(String user, String pwd) voidprotected javax.ws.rs.core.ResponsegetSegmentTrigger(String user, String pwd) voidprotected javax.ws.rs.core.ResponsegetTriggers(String user, String pwd) voidprotected javax.ws.rs.core.ResponsegetVariations(String user, String pwd) voidprotected javax.ws.rs.core.ResponseupdateCustomization(String user, String pwd) voidprotected javax.ws.rs.core.ResponseupdateSegment(String user, String pwd) voidprotected javax.ws.rs.core.ResponseupdateTrigger(String user, String pwd) voidprotected javax.ws.rs.core.ResponseupdateVariation(String user, String pwd) voidMethods inherited from class de.hybris.platform.personalizationwebservices.BaseWebServiceTest
assertDateTimeAlmostEqual, assertDateTimeAlmostEqual, getWsRequestBuilder, getWsSecuredRequestBuilder, getWsSecuredRequestBuilderForAdmin, getWsSecuredRequestBuilderForCmsManager, getWsSecuredRequestBuilderForCustomer, marshallDto, setUp, unmarshallResultMethods inherited from class de.hybris.platform.servicelayer.ServicelayerTest
createCoreData, createDefaultCatalog, createDefaultUsers, createHardwareCatalog, getApplicationContext, importCsv, importData, importData, importData, importStream, importStream, isPrefetchModeNoneMethods inherited from class de.hybris.platform.servicelayer.ServicelayerBaseTest
autowireProperties, getBeanName, prepareApplicationContextAndSessionMethods inherited from class de.hybris.platform.testframework.HybrisJUnit4Test
establishJaloSession, finish, getOrCreateCurrency, getOrCreateLanguage, init, intenseChecksActivated, takeJaloSession
-
Constructor Details
-
PersonalizationWebServiceSecurityTest
public PersonalizationWebServiceSecurityTest()
-
-
Method Details
-
getAllSegmentsPermissionsCheck
- Throws:
IOException
-
getAllSegmentsPermissionsCheckWithNotExistingScope
- Throws:
IOException
-
getAllSegmentsPermissionsCheckWithPersonalizationWebservicesScope
- Throws:
IOException
-
getAllSegmentsPermissionsCheckWithBasicScope
- Throws:
IOException
-
getAllSegments
-
getSegmentsByCodePermissionsCheck
- Throws:
IOException
-
getSegmentsByCode
-
updateSegmentPermissionsCheck
- Throws:
IOExceptionjavax.xml.bind.JAXBException
-
updateSegment
protected javax.ws.rs.core.Response updateSegment(String user, String pwd) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
createSegmentPermissionsCheck
- Throws:
IOExceptionjavax.xml.bind.JAXBException
-
createSegment
protected javax.ws.rs.core.Response createSegment(String user, String pwd) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
deleteSegmentPermissionsCheck
- Throws:
IOExceptionjavax.xml.bind.JAXBException
-
deleteSegment
protected javax.ws.rs.core.Response deleteSegment(String user, String pwd) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
getCustomerSegmentationPermissionsCheck
- Throws:
IOException
-
getCustomerSegmentation
-
getCustmizationByIdPermissionsCheck
- Throws:
IOException
-
getCustomization
-
getAllCustmizationPermissionsCheck
- Throws:
IOException
-
getAllCustmizationPermissionsCheckWithNotExistingScope
- Throws:
IOException
-
getAllCustmizationPermissionsCheckWithPersonalizationWebservicesScope
public void getAllCustmizationPermissionsCheckWithPersonalizationWebservicesScope() throws IOException- Throws:
IOException
-
getAllCustmizationPermissionsCheckWithBasicScope
- Throws:
IOException
-
getAllCustomizations
-
createCustomizationPermissionsCheck
- Throws:
IOExceptionjavax.xml.bind.JAXBException
-
createCustomization
protected javax.ws.rs.core.Response createCustomization(String user, String pwd) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
updateCustomizationStatusPermissionsCheck
public void updateCustomizationStatusPermissionsCheck() throws IOException, javax.xml.bind.JAXBException- Throws:
IOExceptionjavax.xml.bind.JAXBException
-
updateCustomization
protected javax.ws.rs.core.Response updateCustomization(String user, String pwd) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
getVariationsPermissionsCheck
- Throws:
IOException
-
getVariations
-
updateVariationPermissionsCheck
- Throws:
IOException
-
updateVariation
-
getTriggersPermissionsCheck
- Throws:
IOException
-
getTriggers
-
getSegmentTriggerPermissionsCheck
- Throws:
IOExceptionjavax.xml.bind.JAXBException
-
getSegmentTrigger
-
createDefaultTriggerPermissionsCheck
- Throws:
IOExceptionjavax.xml.bind.JAXBException
-
createTrigger
protected javax.ws.rs.core.Response createTrigger(String user, String pwd) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
updateTriggerPermissionsCheck
- Throws:
IOExceptionjavax.xml.bind.JAXBException
-
updateTrigger
protected javax.ws.rs.core.Response updateTrigger(String user, String pwd) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
createCustomizationPackagePermissionsCheck
public void createCustomizationPackagePermissionsCheck() throws IOException, javax.xml.bind.JAXBException- Throws:
IOExceptionjavax.xml.bind.JAXBException
-
crearteCustomizationPackage
protected javax.ws.rs.core.Response crearteCustomizationPackage(String user, String pwd) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
createSegmentTriggerData
-