Skip to content

Commit

Permalink
Merge pull request #147 from x-atlas-consortia/jas_code_term
Browse files Browse the repository at this point in the history
Fix to test_ubkg_api.sh for concepts/...subgraph/sequential
  • Loading branch information
yuanzhou authored Aug 5, 2024
2 parents 6a967a7 + 3064188 commit 343a005
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_ubkg_api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -304,28 +304,28 @@ echo | tee -a test.out

echo "3. concepts/C0006142/paths/subgraph/sequential?relsequence=NCI%3Ais_marked_by_gene_product&skip=X&limit=5 => skip non-numeric; should return custom 400" | tee -a test.out
curl --request GET \
--url "${UBKG_URL}/concepts/C0006142/paths/subgraph/sequentialrelsequence=NCI:is_marked_by_gene_product&skip=X&limit=5" \
--url "${UBKG_URL}/concepts/C0006142/paths/subgraph/sequential?relsequence=NCI:is_marked_by_gene_product&skip=X&limit=5" \
--header "Accept: application/json" | tee -a test.out
echo | tee -a test.out
echo | tee -a test.out

echo "4. concepts/C0006142/paths/subgraph/sequential?relsequence=NCI%3Ais_marked_by_gene_product&skip=-1&limit=5 => skip negative; should return custom 400" | tee -a test.out
curl --request GET \
--url "${UBKG_URL}/concepts/C0006142/paths/subgraph/sequentialrelsequence=NCI%3Ais_marked_by_gene_product&skip=X&limit=5" \
--url "${UBKG_URL}/concepts/C0006142/paths/subgraph/sequential?relsequence=NCI%3Ais_marked_by_gene_product&skip=X&limit=5" \
--header "Accept: application/json" | tee -a test.out
echo | tee -a test.out
echo | tee -a test.out

echo "5. concepts/C0006142/paths/subgraph/sequential?relsequence=NCI%3Ais_marked_by_gene_product&skip=0&limit=x => limit non-numeric; should return custom 400" | tee -a test.out
curl --request GET \
--url "${UBKG_URL}/concepts/C0006142/paths/subgraph/sequentialrelsequence=NCI:is_marked_by_gene_product&skip=0&limit=x" \
--url "${UBKG_URL}/concepts/C0006142/paths/subgraph/sequential?relsequence=NCI:is_marked_by_gene_product&skip=0&limit=x" \
--header "Accept: application/json" | tee -a test.out
echo | tee -a test.out
echo | tee -a test.out

echo "6. concepts/C0006142/paths/subgraph/sequential?relsequence=NCI%3Ais_marked_by_gene_product&skip=0&limit=-1 => limit negative; should return custom 400" | tee -a test.out
curl --request GET \
--url "${UBKG_URL}/concepts/C0006142/paths/subgraph/sequentialrelsequence=NCI:is_marked_by_gene_product&skip=0&limit=-1" \
--url "${UBKG_URL}/concepts/C0006142/paths/subgraph/sequential?relsequence=NCI:is_marked_by_gene_product&skip=0&limit=-1" \
--header "Accept: application/json" | tee -a test.out
echo | tee -a test.out
echo | tee -a test.out
Expand Down

0 comments on commit 343a005

Please sign in to comment.