Reasons:
- trove.sh should use native python client to exercise Trove API
Changes:
- adding datastore and datastore version exercises
Change-Id: I041465e5bda6ad9ec3f597ecc290612b8baef09c
Closes-Bug: #1346743
| ... | ... |
@@ -35,8 +35,12 @@ source $TOP_DIR/exerciserc |
| 35 | 35 |
|
| 36 | 36 |
is_service_enabled trove || exit 55 |
| 37 | 37 |
|
| 38 |
-# can we get a list versions |
|
| 39 |
-curl http://$SERVICE_HOST:8779/ 2>/dev/null | grep -q 'versions' || die $LINENO "Trove API not functioning!" |
|
| 38 |
+# can try to get datastore id |
|
| 39 |
+DSTORE_ID=$(trove datastore-list | tail -n +4 |head -3 | get_field 1) |
|
| 40 |
+die_if_not_set $LINENO DSTORE_ID "Trove API not functioning!" |
|
| 41 |
+ |
|
| 42 |
+DV_ID=$(trove datastore-version-list $DSTORE_ID | tail -n +4 | get_field 1) |
|
| 43 |
+die_if_not_set $LINENO DV_ID "Trove API not functioning!" |
|
| 40 | 44 |
|
| 41 | 45 |
set +o xtrace |
| 42 | 46 |
echo "*********************************************************************" |