[MGNLTEST-93] Utility to conveniently read JCR properties Created: 15/Sep/20  Updated: 22/Sep/20  Resolved: 22/Sep/20

Status: Closed
Project: Magnolia Test Framework
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0.2

Type: New Feature Priority: Neutral
Reporter: Christoph Meier Assignee: Christoph Meier
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Epic Link: core-TF-features-bugs-improvements

 Description   

Create a utility to conveniently read JCR property within integration (and UI) tests utilizing the  info.magnolia.test.fixture.MagnoliaRestClient.

Possible API

Optional<RepositoryProperty> getProperty(String workspace, String nodePath, String propertyName) throws Exception;

Optional<String> getPropertyValue(String workspace, String nodePath, String propertyName) throws Exception;

Not 100% sure whether it make sense to return String on the 2nd method. prbly we just skip that 2nd method

Use cases

  • check the fileName of the binary associated with an asset (or a contact)
  • check width, height of the image associated with an asset


 Comments   
Comment by Christoph Meier [ 22/Sep/20 ]

Done.
Reviewed by Michael D.
Merged.

Generated at Mon Feb 12 07:45:30 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.