github.com/opendevstack/tailor@v1.3.5-0.20220119161809-cab064e60a67/internal/test/e2e/testdata/selector/steps.json (about) 1 [ 2 { 3 "command": "apply -l app=foo", 4 "wantStdout": true, 5 "wantResources": { 6 "cm/foo": true, 7 "svc/foo": true, 8 "cm/bar": false, 9 "svc/bar": false 10 }, 11 "wantFields": { 12 "cm/foo": { 13 ".data.bar": "baz" 14 }, 15 "svc/foo": { 16 ".spec.selector.name": "foo" 17 } 18 } 19 }, 20 { 21 "command": "apply -l app=bar", 22 "wantStdout": true, 23 "wantResources": { 24 "cm/foo": true, 25 "svc/foo": true, 26 "cm/bar": true, 27 "svc/bar": true 28 }, 29 "wantFields": { 30 "cm/bar": { 31 ".data.bar": "baz" 32 }, 33 "svc/bar": { 34 ".spec.selector.name": "bar" 35 } 36 } 37 }, 38 { 39 "command": "diff -l app=foo", 40 "wantStdout": true, 41 "wantErr": false, 42 "wantResources": { 43 "cm/foo": true, 44 "svc/foo": true, 45 "cm/bar": true, 46 "svc/bar": true 47 } 48 }, 49 { 50 "command": "diff -l app=bar", 51 "wantStdout": true, 52 "wantErr": true, 53 "wantResources": { 54 "cm/foo": true, 55 "svc/foo": true, 56 "cm/bar": true, 57 "svc/bar": true 58 } 59 } 60 ]