summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPjotr Prins2022-12-23 13:42:01 +0100
committerPjotr Prins2022-12-23 13:42:01 +0100
commit4c4335b5555d23d76cb407207f27819deebaf8be (patch)
tree76f041a128f2c3108bbe781ae3c10724690e099b
parent8ad38808688a6cefa5d88e66cef80caa5f780232 (diff)
downloadgn-gemtext-4c4335b5555d23d76cb407207f27819deebaf8be.tar.gz
Test examples using curl and POST
-rw-r--r--tasks/pjotrp.gmi5
-rw-r--r--topics/testing/using-curl.gmi30
2 files changed, 33 insertions, 2 deletions
diff --git a/tasks/pjotrp.gmi b/tasks/pjotrp.gmi
index c2877c6..85f7313 100644
--- a/tasks/pjotrp.gmi
+++ b/tasks/pjotrp.gmi
@@ -18,8 +18,9 @@ The tasks here should probably be broken out into appropriately tagged issues, w
Now
-* [ ] Fix https on tux01
-* [ ] Fix Lily edit form
+* [ ] Write test for R/qtl, GEMMA and other mapping
+* [X] Fix https on tux01
+* [X] Fix Lily edit form
=> http://gn1.genenetwork.org/infoshare/manager/member-studies-edit.html?DatasetId=101
* [+] Shelby's application
* [X] Opar.io move to dnsimple
diff --git a/topics/testing/using-curl.gmi b/topics/testing/using-curl.gmi
new file mode 100644
index 0000000..8738d43
--- /dev/null
+++ b/topics/testing/using-curl.gmi
@@ -0,0 +1,30 @@
+# Using curl
+
+Curl is a command line tool that can be used for testing. We use it extensively for 'sheepdog' monitoring. See
+
+=> ../systems/gn-services.gmi
+
+## GET fetch
+
+A simple fetch may look like
+
+```
+URL=https://ci.genenetwork.org/channels.scm
+sheepdog_run.rb -c "curl --max-time 20 $URL|grep -i bioinformatics" --tag $URL $*
+```
+
+and with GET parameters
+
+```
+URL="$host/search?species=mouse&group=BXD&type=Hippocampus+mRNA&dataset=HC_M2_0606_P&search_terms_or=sh*&search_terms_and=&FormID=searchResult"
+FIND="2310010I16Rik"
+sheepdog_run.rb -c "curl \"$URL\"|grep -i $FIND" --tag "wild-card-search-$URL" $*
+```
+
+## POST fetch
+
+Post fetches are a bit harder. First use firefox console and click of Debugger tab. Next click on the POST field in the tabel (you may need to reload the page and cancel any redirections). At the bottom you'll find 'Request payload'. Copy that using a right click and save it in a file named post.in. Next run POST with something like
+
+```
+cat data/post-hk.in |curl --max-time 60 -d @- https://genenetwork.org/run_mapping |grep 'Mapping Results'
+```