Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
natasha41575 committed May 1, 2023
1 parent 7bd46ab commit 27e7459
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions e2e/testdata/porch/rpkg-update/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,56 @@ commands:
git-3f036055f7ba68706372cbe0c4b14d553794f7c4 No update available
git-7fcdd499f0790ac3bd8f805e3e5e00825641eb60 No update available
git-7ab0219ace10c1081a8b40a6b97d5da58bdb62e0 git No update available
- args:
- alpha
- rpkg
- push
- --namespace=rpkg-update
- git-7ab0219ace10c1081a8b40a6b97d5da58bdb62e0
stdin: |
apiVersion: config.kubernetes.io/v1
kind: ResourceList
items:
- apiVersion: kpt.dev/v1
kind: Kptfile
metadata:
name: basens-edit-clone
annotations:
config.kubernetes.io/index: '0'
config.kubernetes.io/local-config: "true"
config.kubernetes.io/path: Kptfile
internal.config.kubernetes.io/index: '0'
internal.config.kubernetes.io/path: 'Kptfile'
upstream:
type: git
git:
repo: http://git-server.test-git-namespace.svc.cluster.local:8080/rpkg-update
directory: base-ns
ref: basens/v1
upstreamLock:
type: git
git:
repo: http://git-server.test-git-namespace.svc.cluster.local:8080/rpkg-update
directory: base-ns
ref: invalid
commit: 8f3ee9e0d5724fbd0fbdcf81bef0d47d6d29cc64
- apiVersion: v1
data:
name: example
kind: ConfigMap
metadata:
annotations:
config.kubernetes.io/index: "0"
config.kubernetes.io/local-config: "true"
config.kubernetes.io/path: package-context.yaml
internal.config.kubernetes.io/index: "0"
internal.config.kubernetes.io/path: package-context.yaml
name: kptfile.kpt.dev
- args:
- alpha
- rpkg
- update
- --namespace=rpkg-update
- --discover=upstream
stderr: "Error: could not parse upstreamLock in Kptfile of package \"git-7ab0219ace10c1081a8b40a6b97d5da58bdb62e0\": malformed upstreamLock.Git.Ref \"invalid\""
exitCode: 1

0 comments on commit 27e7459

Please sign in to comment.