You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by ji...@apache.org on 2019/07/16 02:56:57 UTC

[geode] branch develop updated: add script to list the management rest endpoints. (#3803)

This is an automated email from the ASF dual-hosted git repository.

jinmeiliao pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git


The following commit(s) were added to refs/heads/develop by this push:
     new c866cb6  add script to list the management rest endpoints. (#3803)
c866cb6 is described below

commit c866cb6da6a7422446840a3bd066ef4c2cbaa987
Author: Jinmei Liao <ji...@pivotal.io>
AuthorDate: Mon Jul 15 19:56:45 2019 -0700

    add script to list the management rest endpoints. (#3803)
    
    Co-authored-by: Darrel Schneider <ds...@pivotal.io>
---
 .../src/test/script/list-management-url.sh         | 30 ++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/geode-management/src/test/script/list-management-url.sh b/geode-management/src/test/script/list-management-url.sh
new file mode 100755
index 0000000..7819a59
--- /dev/null
+++ b/geode-management/src/test/script/list-management-url.sh
@@ -0,0 +1,30 @@
+#!/bin/bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# usage: list-management-url.sh <GEODE installation dir>
+
+if [ "$#" -ne 1 ]; then
+ echo "ERROR. Usage: list-management-url.sh <GEODE installation dir>"
+ exit 1
+fi
+
+GEODE=$1
+
+$GEODE/bin/gfsh -e "start locator --name=test --J=-Dgemfire.enable-experimental-cluster-management-service=true" > /dev/null
+curl -H "Content-Type: application/json" http://localhost:7070/management/v2/api-docs --fail --silent --show-error | jq -r '.paths | to_entries[] | {url:.key, method:.value|keys[]} | .method + " " + .url'
+
+$GEODE/bin/gfsh -e "stop locator --dir=test" > /dev/null
+rm -r test
\ No newline at end of file