name: "DevWorkspace references plugins from multiple plugin registries"

input:
  devworkspace:
    components:
      - name: test-plugin
        plugin:
          id: my/test/plugin
          registryUrl: "https://test-registry.io/subpath"
      - name: test-plugin-2
        plugin:
          id: my/test/plugin-2
          registryUrl: "https://test-registry-2.io/subpath"
  devfileResources:
    "https://test-registry.io/subpath/my/test/plugin":
      schemaVersion: 2.0.0
      metadata:
        name: "plugin-a"
      components:
        - name: plugin-a
          container:
            name: test-container
            image: test-image
    "https://test-registry-2.io/subpath/my/test/plugin-2":
      schemaVersion: 2.0.0
      metadata:
        name: "plugin-b"
      components:
        - name: plugin-b
          container:
            name: test-container-b
            image: test-image

output:
  devworkspace:
    components:
      - name: plugin-a
        attributes:
          controller.devfile.io/imported-by: "test-plugin"
        container:
          name: test-container
          image: test-image
      - name: plugin-b
        attributes:
          controller.devfile.io/imported-by: "test-plugin-2"
        container:
          name: test-container-b
          image: test-image
