[MGNLTEST-166] Fixtures should not use testcommands endpoint Created: 14/May/21 Updated: 10/Nov/21 Resolved: 10/Nov/21 |
|
| Status: | Closed |
| Project: | Magnolia Test Framework |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 2.0-cloud |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Mikaël Geljić | Assignee: | Mikaël Geljić |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Template: |
|
||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||||||
| Date of First Response: | |||||||||||||
| Epic Link: | SaaS ITs | ||||||||||||
| Sprint: | Cloud Service 16, Cloud Service 17, SaaS 18, SaaS 19, SaaS 21 | ||||||||||||
| Story Points: | 5 | ||||||||||||
| Description |
|
testcommands endpoint mostly duplicated standard endpoint in former CE test setup for instrumentation purpose and enabling extra test commands. This endpoint is thus only present in test-webapps or webapps which depend on the magnolia-integration-tests-fixture-module. In particular, the import command is not listed in enabledCommands in the default commands endpoint definition, but only website/activate and markAsDeleted. Therefore test-framework consumers need to grant rest-execution for this import command. This can be performed with a decorator:
test/decorations/rest-services/restEndpoints/commands.yaml enabledCommands: import: catalogName: default commandName: import access: roles: rest: rest-admin |