WS GCP Part6: Teseting Waffle Server data responses - Gapminder/waffle-server GitHub Wiki
WARNING! This article may change without notice since both GCP and Waffle Server are in active development
This instruction will help you to test how your Waffle Server responds to data requests and if it serves the static assets correctly. If you don't have a Waffle Server up and running or you don't have a dataset imported, please refer to the previous parts
- WS GCP Part1: Getting started with Google Cloud Web GUI
- WS GCP Part2: Prepare a deploy virtual machine (VM)
- WS GCP Part3: Setting up WS repo and connection to Github
- WS GCP Part4: Waffle server deployment to GCP
- WS GCP Part5: WS GCP Part5: Installing ws cli and importing datasets
-
This tutorial will assume you have imported the dataset “open-numbers/ddf--gapminder--systema_globalis”, as described in Part 5. So you can actually go ahead and import exactly this one. This is a good example dataset because it has a static asset in it (the wold map).
-
You will need
<TM EXTERNAL IP>
and<LB EXTERNAL IP>
from your WS installation. Have them handy. Here is more info where you can get them
-
Try this request in your browser:
http://<TM EXTERNAL IP>/api/ddf/assets/open-numbers/ddf--gapminder--systema_globalis/master/assets/world-50m.json
-
This should download a file world-50m.json with a world map like this
-
Try this request in your browser:
http://<LB EXTERNAL IP>/api/ddf/ql/?_from=entities&select_key@=geo;&value@=name;;;;&dataset=open-numbers%252Fddf--gapminder--systema/_globalis%2523master
-
This should return a list of countries