Uploaded image for project: 'Magnolia Test Framework'
  1. Magnolia Test Framework
  2. MGNLTEST-166

Fixtures should not use testcommands endpoint

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Neutral
    • 2.0-cloud
    • None
    • None
    • Cloud Service 16, Cloud Service 17, SaaS 18, SaaS 19, SaaS 21
    • 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:

      the restEndpoints definition type must be spelled in camelCase.

      test/decorations/rest-services/restEndpoints/commands.yaml
      enabledCommands:
        import:
          catalogName: default
          commandName: import
          access:
            roles:
              rest: rest-admin
      
      

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                mgeljic Mikaël Geljić
                mgeljic Mikaël Geljić
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD