From f3e02ef34ef667fd4b8553da8448893a96a6c089 Mon Sep 17 00:00:00 2001 From: John Blum Date: Fri, 20 Mar 2020 01:59:03 -0700 Subject: [PATCH] Add human readable, formatted JSON, VCAP environment variables file. --- .../src/test/resources/vcap-application.json | 17 +++++++++ .../src/test/resources/vcap-services.json | 36 +++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 spring-geode-autoconfigure/src/test/resources/vcap-application.json create mode 100644 spring-geode-autoconfigure/src/test/resources/vcap-services.json diff --git a/spring-geode-autoconfigure/src/test/resources/vcap-application.json b/spring-geode-autoconfigure/src/test/resources/vcap-application.json new file mode 100644 index 00000000..d26a9eb0 --- /dev/null +++ b/spring-geode-autoconfigure/src/test/resources/vcap-application.json @@ -0,0 +1,17 @@ +{ + "application_id": "c50bb519-2739-4fa3-8750-02c051e35735", + "application_name": "boot-test", + "application_uris": [ "boot-example.apps.tunis.cf-app.com" ], + "application_version": "d34bbbbd-c35c-4057-baf2-6300cb9aa2aa", + "cf_api": "https://api.sys.tunis.cf-app.com", "host": "0.0.0.0", + "instance_id": "babcf301-3b34-4dcf-720e-ccfc", + "instance_index": 0, + "limits": { + "disk": 1024, "fds": 16384, "mem": 1024}, + "name": "boot-example", + "port": 8080, + "space_id": "271cf083-7855-4b5e-be19-65342d099099", + "space_name": "jblum-space", + "uris": [ "boot-example.apps.tunis.cf-app.com" ], + "version": "d34bbbbd-c35c-4057-baf2-6300cb9aa2aa" +} diff --git a/spring-geode-autoconfigure/src/test/resources/vcap-services.json b/spring-geode-autoconfigure/src/test/resources/vcap-services.json new file mode 100644 index 00000000..34ee3934 --- /dev/null +++ b/spring-geode-autoconfigure/src/test/resources/vcap-services.json @@ -0,0 +1,36 @@ +{ + "p-cloudcache": [{ + "credentials": { + "distributed_system_id": "0", + "locators": [ "localhost[55221]" ], + "urls": { "pulse": "https://cloudcache-9defb33a-6b8b-49f0-bd35-cf6f7b2f222f.sys.tunis.cf-app.com/pulse" }, + "users": [ + { + "password": "vaxAi8UuJkBp9csgDvJ5YA", + "roles": ["cluster_operator"], + "username": "cluster_operator_CQhqoDaEIT1gobjLryfpBg" + }, + { + "password": "egSyyyaM5Q5yUMOVZD6pXA", + "roles": ["developer"], + "username": "developer_krCFKddILf8EfWs0laUQ" + } + ], + "wan": { + "sender_credentials": { + "active": { + "password": "tYHFwByaMN675FuBWDZQiQ", + "username": "gateway_sender_UJ0YO1pJBEnQP03yt7sVXQ" + } + } + } + }, + "syslog_drain_url": null, + "volume_mounts": [], + "label": "p-cloudcache", + "provider": null, + "plan": "small", + "name": "jblum-pcc", + "tags": [ "gemfire", "cloudcache", "database", "pivotal" ] + }] +}