name: "Does not depend on component order in detecting projects volume"

input:
  devworkspaceId: "test-workspaceid"
  podAdditions:
    containers:
      - name: testing-container-1
        image: testing-image-1
        volumeMounts:
          - name: "projects"
            mountPath: "/projects-mountpath"
      - name: testing-container-2
        image: testing-image-2
        volumeMounts:
          - name: "projects"
      - name: testing-container-3
        image: testing-image-3

  workspace:
    components:
      - name: testing-container-1
        container:
          image: testing-image-1
          sourceMapping: "/plugins-mountpath"
          mountSources: true
      - name: projects
        volume:
          ephemeral: true
      - name: testing-container-2
        container:
          image: testing-image-2
          mountSources: true
      - name: testing-container-3
        container:
          image: testing-image-3
          sourceMapping: "/plugins-mountpath"
          mountSources: false

output:
  podAdditions:
    containers:
      - name: testing-container-1
        image: testing-image-1
        volumeMounts:
          - name: projects
            mountPath: "/projects-mountpath"
      - name: testing-container-2
        image: testing-image-2
        volumeMounts:
          - name: "projects"
      - name: testing-container-3
        image: testing-image-3

    volumes:
      - name: projects
        emptyDir: {}
