github.com/GoogleContainerTools/kpt@v1.0.0-beta.50.0.20240520170205-c25345ffcbee/e2e/testdata/porch/rpkg-update/config.yaml (about)

     1  commands:
     2    - args:
     3        - alpha
     4        - repo
     5        - register
     6        - --namespace=rpkg-update
     7        - --name=git
     8        - http://git-server.test-git-namespace.svc.cluster.local:8080/rpkg-update
     9    - args:
    10        - alpha
    11        - rpkg
    12        - clone
    13        - --namespace=rpkg-update
    14        - https://github.com/platkrm/test-blueprints.git
    15        - --directory=basens
    16        - --ref=basens/v1
    17        - --repository=git
    18        - --workspace=update-1
    19        - basens-edit
    20      stdout: "git-3f036055f7ba68706372cbe0c4b14d553794f7c4 created\n"
    21    - args:
    22        - alpha
    23        - rpkg
    24        - clone
    25        - --namespace=rpkg-update
    26        - git-3f036055f7ba68706372cbe0c4b14d553794f7c4
    27        - --directory=basens
    28        - --ref=basens/v1
    29        - --repository=git
    30        - --workspace=update-2
    31        - basens-edit-clone
    32      stdout: "git-7ab0219ace10c1081a8b40a6b97d5da58bdb62e0 created\n"
    33    - args:
    34        - alpha
    35        - rpkg
    36        - copy
    37        - --namespace=rpkg-update
    38        - --workspace=update-3
    39        - --replay-strategy=true
    40        - git-3f036055f7ba68706372cbe0c4b14d553794f7c4
    41      stdout: "git-7fcdd499f0790ac3bd8f805e3e5e00825641eb60 created\n"
    42    - args:
    43        - alpha
    44        - rpkg
    45        - propose
    46        - --namespace=rpkg-update
    47        - git-7fcdd499f0790ac3bd8f805e3e5e00825641eb60
    48      stderr: "git-7fcdd499f0790ac3bd8f805e3e5e00825641eb60 proposed\n"
    49    - args:
    50        - alpha
    51        - rpkg
    52        - approve
    53        - --namespace=rpkg-update
    54        - git-7fcdd499f0790ac3bd8f805e3e5e00825641eb60
    55      stderr: "git-7fcdd499f0790ac3bd8f805e3e5e00825641eb60 approved\n"
    56    - args:
    57        - alpha
    58        - rpkg
    59        - get
    60        - --namespace=rpkg-update
    61      stdout: |
    62        NAME                                           PACKAGE             WORKSPACENAME   REVISION   LATEST   LIFECYCLE   REPOSITORY
    63        git-3f036055f7ba68706372cbe0c4b14d553794f7c4   basens-edit         update-1                   false    Draft       git
    64        git-804ab1a9d043e44255ef3fb77820d5ad7b1576a9   basens-edit         update-3        main       false    Published   git
    65        git-7fcdd499f0790ac3bd8f805e3e5e00825641eb60   basens-edit         update-3        v1         true     Published   git
    66        git-7ab0219ace10c1081a8b40a6b97d5da58bdb62e0   basens-edit-clone   update-2                   false    Draft       git
    67    - args:
    68        - alpha
    69        - rpkg
    70        - update
    71        - --namespace=rpkg-update
    72        - --discover=upstream
    73        - git-7ab0219ace10c1081a8b40a6b97d5da58bdb62e0
    74      stdout: |
    75        PACKAGE REVISION                               UPSTREAM REPOSITORY   UPSTREAM UPDATES
    76        git-7ab0219ace10c1081a8b40a6b97d5da58bdb62e0   git                   v1
    77    - args:
    78        - alpha
    79        - rpkg
    80        - update
    81        - --namespace=rpkg-update
    82        - --discover=upstream
    83      stdout: |
    84        PACKAGE REVISION                               UPSTREAM REPOSITORY   UPSTREAM UPDATES
    85        git-3f036055f7ba68706372cbe0c4b14d553794f7c4                         No update available
    86        git-804ab1a9d043e44255ef3fb77820d5ad7b1576a9                         No update available
    87        git-7fcdd499f0790ac3bd8f805e3e5e00825641eb60                         No update available
    88        git-7ab0219ace10c1081a8b40a6b97d5da58bdb62e0   git                   v1
    89    - args:
    90        - alpha
    91        - rpkg
    92        - update
    93        - --namespace=rpkg-update
    94        - --discover=downstream
    95      stdout: |
    96        PACKAGE REVISION                               DOWNSTREAM PACKAGE                             DOWNSTREAM UPDATE
    97        git-7fcdd499f0790ac3bd8f805e3e5e00825641eb60   git-7ab0219ace10c1081a8b40a6b97d5da58bdb62e0   (draft "update-1")->v1
    98    - args:
    99        - alpha
   100        - rpkg
   101        - update
   102        - --namespace=rpkg-update
   103        - --revision=v1
   104        - git-7ab0219ace10c1081a8b40a6b97d5da58bdb62e0
   105      stdout: "git-7ab0219ace10c1081a8b40a6b97d5da58bdb62e0 updated\n"
   106    - args:
   107        - alpha
   108        - rpkg
   109        - update
   110        - --namespace=rpkg-update
   111        - --discover=upstream
   112      stdout: |
   113        PACKAGE REVISION                               UPSTREAM REPOSITORY   UPSTREAM UPDATES
   114        git-3f036055f7ba68706372cbe0c4b14d553794f7c4                         No update available
   115        git-804ab1a9d043e44255ef3fb77820d5ad7b1576a9                         No update available
   116        git-7fcdd499f0790ac3bd8f805e3e5e00825641eb60                         No update available
   117        git-7ab0219ace10c1081a8b40a6b97d5da58bdb62e0   git                   No update available
   118    - args:
   119        - alpha
   120        - rpkg
   121        - pull
   122        - --namespace=rpkg-update
   123        - git-7ab0219ace10c1081a8b40a6b97d5da58bdb62e0
   124        - /tmp/porch-e2e/pkg-update-git-7ab0219ace10c1081a8b40a6b97d5da58bdb62e0
   125    - args:
   126        - fn
   127        - eval
   128        - --image
   129        - gcr.io/kpt-fn/search-replace:v0.2.0
   130        - --match-kind
   131        - Kptfile
   132        - /tmp/porch-e2e/pkg-update-git-7ab0219ace10c1081a8b40a6b97d5da58bdb62e0
   133        - --
   134        - by-path=upstreamLock.git.ref
   135        - put-value=invalid
   136      stderr: "[RUNNING] \"gcr.io/kpt-fn/search-replace:v0.2.0\" on 1 resource(s)\n  Results:\n    [info] upstreamLock.git.ref: Mutated field value to \"invalid\"\n"
   137    - args:
   138        - alpha
   139        - rpkg
   140        - push
   141        - --namespace=rpkg-update
   142        - git-7ab0219ace10c1081a8b40a6b97d5da58bdb62e0
   143        - /tmp/porch-e2e/pkg-update-git-7ab0219ace10c1081a8b40a6b97d5da58bdb62e0
   144    - args:
   145        - alpha
   146        - rpkg
   147        - update
   148        - --namespace=rpkg-update
   149        - --discover=upstream
   150      stderr: "Error: could not parse upstreamLock in Kptfile of package \"git-7ab0219ace10c1081a8b40a6b97d5da58bdb62e0\": malformed upstreamLock.Git.Ref \"invalid\" \n"
   151      exitCode: 1