Skip to content

Commit

Permalink
chore[query-filter] - adds the new line at the end of e2e file and up…
Browse files Browse the repository at this point in the history
…dates expectArtifactsQ1.json file

Signed-off-by: Kanchan Dhamane <dhamane.kanchan@gmail.com>
  • Loading branch information
kanchan-dhamane committed Jan 2, 2024
1 parent aab056d commit 640726c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
5 changes: 3 additions & 2 deletions internal/testing/e2e/e2e
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ GUAC_DIR=$(cd ${SCRIPT_DIR}/../../..; pwd)
guac_data_hash="254d737ebc42ca32f95033e93370f5427e3fce64"

echo @@@@ Installing gql Python package
pip install gql[all]
pip3 install gql[all]

echo @@@@ Cloning guac-data
pushd "$GUAC_DIR"
Expand Down Expand Up @@ -101,4 +101,5 @@ diff -u "${SCRIPT_DIR}/expectPathPy.json" "${GUAC_DIR}/gotPathPy.json"

cat "$queries" | gql-cli http://localhost:8080/query -o ArtifactsQ1 | jq ' .artifacts |= sort '> "${GUAC_DIR}/gotArtifactsQ1.json"
diff -u "${SCRIPT_DIR}/expectArtifactsQ1.json" "${GUAC_DIR}/gotArtifactsQ1.json"
# Note: graphql_playground is left running, CI will clean it up

# Note: graphql_playground is left running, CI will clean it up
31 changes: 15 additions & 16 deletions internal/testing/e2e/expectArtifactsQ1.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"artifacts": [
{
"algorithm": "sha1",
"digest": "322b3f191dfd5466d70182b3c67d8eb129a3a31d"
},
{
"algorithm": "sha1",
"digest": "322e9e02c44dd985a93c4729b8ec3ca0aa4a7a20"
},
{
"algorithm": "sha256",
"digest": "322c1cc5dd5f59492c06523095f377e095e6dd9d8690c0c1992bb06b1cb9555d"
}
]
}

"artifacts": [
{
"algorithm": "sha1",
"digest": "322b3f191dfd5466d70182b3c67d8eb129a3a31d"
},
{
"algorithm": "sha1",
"digest": "322e9e02c44dd985a93c4729b8ec3ca0aa4a7a20"
},
{
"algorithm": "sha256",
"digest": "322c1cc5dd5f59492c06523095f377e095e6dd9d8690c0c1992bb06b1cb9555d"
}
]
}

0 comments on commit 640726c

Please sign in to comment.