name: "Defaulting web-terminal container component"

input:
  devworkspace:
    components:
      - name: web-terminal
        plugin:
          id: redhat-developer/web-terminal/4.5.0

  devworkspaceResources:
    redhat-developer/web-terminal/4.5.0:
      kind: DevWorkspaceTemplate
      apiVersion: workspace.devfile.io/v1alpha2
      metadata:
        name: web-terminal-plugin
      spec:
        components:
          - name: web-terminal-plugin
            container:
              name: test-container
              image: test-image

output:
  devworkspace:
    components:
      - name: web-terminal-plugin
        attributes:
          controller.devfile.io/imported-by: "web-terminal"
        container:
          name: test-container
          image: test-image
      # Note the default container is defined in the test config
      - name: default-web-terminal-tooling
        container:
          name: default-web-terminal-tooling-container
          image: test-image
