Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmaida committed Apr 11, 2024
1 parent 249b73e commit e8c0561
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions task/jq/0.1/test/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ spec:
tasks:
- name: jq-using-string-as-input
params:
- name: script
value: "."
- name: filter
value: "'.'"
- name: input
value: '{ \"product\": \"Widget\", \"price\": 24.99, \"color\": \"blue\", \"quantity_available\": 50, \"manufacturer\": { \"name\": \"ABC Manufacturing\", \"location\": \"Cityville, USA\" }, \"features\": [\"durable\", \"easy to use\", \"versatile\"], \"dimensions\": { \"length\": 10, \"width\": 5, \"height\": 3 }, \"tags\": [\"gadget\", \"technology\", \"home\"] }'
- name: stringOrFile
Expand All @@ -17,8 +17,8 @@ spec:
name: jq
- name: jq-using-file-as-input
params:
- name: script
value: "'.company.employees[].name' test.json"
- name: filter
value: "'.company.employees[].name'"
- name: input
value: 'test.json'
- name: stringOrFile
Expand All @@ -29,6 +29,17 @@ spec:
workspaces:
- name: source
workspace: shared-workspace
- name: jq-using-string-as-input-with-wild-filter
params:
- name: filter
value: "'map(length) | max_by(.) as $max_length | .[] | select(length == $max_length)'"
- name: input
value: '[\"apple\", \"banana\", \"orange\", \"grape\", \"kiwi\", \"siriguela\"]'
- name: stringOrFile
value: "string"
taskRef:
kind: Task
name: jq
- name: print-result
runAfter:
- "jq-using-string-as-input"
Expand Down

0 comments on commit e8c0561

Please sign in to comment.