name: "Handles container with multiple endpoints with same targetPort"

input:
  components:
    - name: testing-container-1
      container:
        image: testing-image-1
        memoryRequest: "-1"  # isolate test to not include this field
        memoryLimit: "-1"  # isolate test to not include this field
        cpuRequest: "-1"  # isolate test to not include this field
        cpuLimit: "-1"  # isolate test to not include this field
        mountSources: false
        endpoints:
          - name: "test-endpoint-1"
            targetPort: 3100
            protocol: http
          - name: "test-endpoint-2"
            targetPort: 3100
            protocol: http

output:
  podAdditions:
    containers:
      - name: testing-container-1
        image: testing-image-1
        imagePullPolicy: Always
        resources:
          requests:
            memory: "-1"
            cpu: "-1"
          limits:
            memory: "-1"
            cpu: "-1"
        env:
          - name: "DEVWORKSPACE_COMPONENT_NAME"
            value: "testing-container-1"
        ports:
          - name: "3100-http"
            containerPort: 3100
            protocol: TCP
