name: "Should use container as both init and main when multiple commands apply"

input:
  components:
    - name: test-container1
      container:
        image: my-image
    - name: test-container2
      container:
        image: my-image
  commands:
    - id: test_preStart_command
      apply:
        component: test-container1
    - id: test_regular_command
      exec:
        component: test-container1
        command: "test_command"
  events:
    preStart:
      - "test_preStart_command"

output:
  initContainers:
    - name: test-container1
      container:
        image: my-image
  mainContainers:
    - name: test-container1
      container:
        image: my-image
    - name: test-container2
      container:
        image: my-image
  errRegexp:
