brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From henev...@apache.org
Subject [2/5] brooklyn-ui git commit: Adding fixtures json files to the brooklyn-ui project
Date Wed, 09 Mar 2016 12:37:51 GMT
Adding fixtures json files to the brooklyn-ui project


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/commit/e5dfc85b
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/tree/e5dfc85b
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-ui/diff/e5dfc85b

Branch: refs/heads/master
Commit: e5dfc85b6eb05e4883f871d63d221844dfaec41f
Parents: 4ac635a
Author: Yavor Yanchev <yavor@yanchev.com>
Authored: Thu Mar 3 18:01:34 2016 +0200
Committer: Yavor Yanchev <yavor@yanchev.com>
Committed: Mon Mar 7 19:41:26 2016 +0200

----------------------------------------------------------------------
 pom.xml                                         | 24 ----------
 .../resources/fixtures/api-error-basic.json     |  4 ++
 .../fixtures/api-error-no-details.json          |  3 ++
 .../resources/fixtures/application-list.json    | 44 ++++++++++++++++++
 .../resources/fixtures/application-spec.json    | 16 +++++++
 .../resources/fixtures/application-tree.json    | 43 ++++++++++++++++++
 src/test/resources/fixtures/application.json    | 22 +++++++++
 .../fixtures/catalog-application-list.json      | 29 ++++++++++++
 .../resources/fixtures/catalog-application.json |  9 ++++
 .../fixtures/effector-summary-list.json         | 47 ++++++++++++++++++++
 .../resources/fixtures/effector-summary.json    |  9 ++++
 .../resources/fixtures/entity-only-type.json    |  3 ++
 .../resources/fixtures/entity-summary-list.json | 14 ++++++
 src/test/resources/fixtures/entity-summary.json | 13 ++++++
 src/test/resources/fixtures/entity.json         |  7 +++
 src/test/resources/fixtures/ha-summary.json     | 19 ++++++++
 src/test/resources/fixtures/location-list.json  | 10 +++++
 .../resources/fixtures/location-summary.json    |  8 ++++
 .../fixtures/location-without-credential.json   |  5 +++
 src/test/resources/fixtures/location.json       |  4 ++
 .../fixtures/sensor-current-state.json          |  6 +++
 .../resources/fixtures/sensor-summary-list.json | 42 +++++++++++++++++
 src/test/resources/fixtures/sensor-summary.json |  8 ++++
 src/test/resources/fixtures/server-version.json | 14 ++++++
 src/test/resources/fixtures/service-state.json  |  1 +
 .../resources/fixtures/task-summary-list.json   | 15 +++++++
 26 files changed, 395 insertions(+), 24 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index e06ed4f..03361bf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -99,30 +99,6 @@
                  run tests in the browser with: $ mvn jasmine:bdd
             -->
             <plugin>
-                <artifactId>maven-resources-plugin</artifactId>
-                <version>${maven-resources-plugin.version}</version>
-                <executions>
-                    <execution>
-                        <id>copy-fixtures</id>
-                        <phase>process-test-resources</phase>
-                        <goals>
-                            <goal>copy-resources</goal>
-                        </goals>
-                        <configuration>
-                            <outputDirectory>${project.build.directory}/jasmine/fixtures</outputDirectory>
-                            <resources>
-                                <resource>
-                                    <!-- copy rest-api fixtures from brooklyn-server submodule
repo -->
-                                    <directory>
-                                        ${project.basedir}/../brooklyn-server/rest/rest-api/src/test/resources/fixtures
-                                    </directory>
-                                </resource>
-                            </resources>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-            <plugin>
                 <groupId>com.github.searls</groupId>
                 <artifactId>jasmine-maven-plugin</artifactId>
                 <version>${jasmine-maven-plugin.version}</version>

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/src/test/resources/fixtures/api-error-basic.json
----------------------------------------------------------------------
diff --git a/src/test/resources/fixtures/api-error-basic.json b/src/test/resources/fixtures/api-error-basic.json
new file mode 100644
index 0000000..7634c50
--- /dev/null
+++ b/src/test/resources/fixtures/api-error-basic.json
@@ -0,0 +1,4 @@
+{
+    "message": "explanatory message",
+    "details": "accompanying details"
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/src/test/resources/fixtures/api-error-no-details.json
----------------------------------------------------------------------
diff --git a/src/test/resources/fixtures/api-error-no-details.json b/src/test/resources/fixtures/api-error-no-details.json
new file mode 100644
index 0000000..5762f6f
--- /dev/null
+++ b/src/test/resources/fixtures/api-error-no-details.json
@@ -0,0 +1,3 @@
+{
+    "message": "explanatory message"
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/src/test/resources/fixtures/application-list.json
----------------------------------------------------------------------
diff --git a/src/test/resources/fixtures/application-list.json b/src/test/resources/fixtures/application-list.json
new file mode 100644
index 0000000..a4e7980
--- /dev/null
+++ b/src/test/resources/fixtures/application-list.json
@@ -0,0 +1,44 @@
+[
+    {
+        "spec":{
+            "name":"tesr",
+            "entities":[
+                {
+                    "name":"tomcat",
+                    "type":"org.apache.brooklyn.entity.webapp.tomcat.TomcatServer",
+                    "config":{ }
+                }
+            ],
+            "locations":[
+                "/locations/0"
+            ]
+        },
+        "status":"STARTING",
+        "links":{
+            "self":"/applications/tesr",
+            "entities":"fixtures/entity-summary-list.json"
+        }
+    },
+    {
+        "spec":{
+            "name":"myapp",
+            "entities":[
+                {
+                    "name":"Vanilla Java App",
+                    "type":"org.apache.brooklyn.entity.java.VanillaJavaApp",
+                    "config":{
+                        "initialSize":"1",
+                        "creationScriptUrl":"http://my.brooklyn.io/storage/foo.sql"
+                    }
+                }
+            ],
+            "locations":["/locations/1"]
+        },
+        "status":"STARTING",
+        "links":{
+            "self":"/applications/myapp",
+            "entities":"fixtures/entity-summary-list.json"
+        }
+    }
+]
+

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/src/test/resources/fixtures/application-spec.json
----------------------------------------------------------------------
diff --git a/src/test/resources/fixtures/application-spec.json b/src/test/resources/fixtures/application-spec.json
new file mode 100644
index 0000000..48e9e5f
--- /dev/null
+++ b/src/test/resources/fixtures/application-spec.json
@@ -0,0 +1,16 @@
+{
+    "name":"myapp",
+    "entities":[
+        {
+            "name":"Vanilla Java App",
+            "type":"org.apache.brooklyn.entity.java.VanillaJavaApp",
+            "config":{
+                "initialSize":"1",
+                "creationScriptUrl":"http://my.brooklyn.io/storage/foo.sql"
+            }
+        }
+    ],
+    "locations":[
+        "/locations/1"
+    ]
+}

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/src/test/resources/fixtures/application-tree.json
----------------------------------------------------------------------
diff --git a/src/test/resources/fixtures/application-tree.json b/src/test/resources/fixtures/application-tree.json
new file mode 100644
index 0000000..e4ce29f
--- /dev/null
+++ b/src/test/resources/fixtures/application-tree.json
@@ -0,0 +1,43 @@
+[
+    {
+        "name":"test",
+        "id":"riBZUjMq",
+        "type":null,
+        "children":[
+            {
+                "name":"tomcat1",
+                "id":"fXyyQ7Ap",
+                "type":"org.apache.brooklyn.entity.webapp.tomcat.TomcatServer"
+            }
+        ]
+    },
+    {
+        "name":"test2",
+        "id":"app-002",
+        "type":null,
+        "children":[
+            {
+                "name":"tomcat1",
+                "id":"child-01",
+                "type":"org.apache.brooklyn.entity.webapp.tomcat.TomcatServer"
+            },
+            {
+                "name":"tomcat2",
+                "id":"child-02",
+                "type":"org.apache.brooklyn.entity.webapp.tomcat.TomcatServer",
+                "children":[
+                    {
+                        "name":"tomcat03",
+                        "id":"child-03",
+                        "type":"org.apache.brooklyn.entity.webapp.tomcat.TomcatServer"
+                    },
+                    {
+                        "name":"tomcat04",
+                        "id":"child-04",
+                        "type":"org.apache.brooklyn.entity.webapp.tomcat.TomcatServer"
+                    }
+                ]
+            }
+        ]
+    }
+]

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/src/test/resources/fixtures/application.json
----------------------------------------------------------------------
diff --git a/src/test/resources/fixtures/application.json b/src/test/resources/fixtures/application.json
new file mode 100644
index 0000000..c7b9aed
--- /dev/null
+++ b/src/test/resources/fixtures/application.json
@@ -0,0 +1,22 @@
+{
+    "id":"myapp_id",
+    "spec":{
+        "name":"myapp",
+        "entities":[
+            {
+                "name":"Vanilla Java App",
+                "type":"org.apache.brooklyn.entity.java.VanillaJavaApp",
+                "config":{
+                    "initialSize":"1",
+                    "creationScriptUrl":"http://my.brooklyn.io/storage/foo.sql"
+                }
+            }
+        ],
+        "locations":["/locations/1"]
+    },
+    "status":"STARTING",
+    "links":{
+        "self":"/applications/myapp",
+        "entities":"fixtures/entity-summary-list.json"
+    }
+}

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/src/test/resources/fixtures/catalog-application-list.json
----------------------------------------------------------------------
diff --git a/src/test/resources/fixtures/catalog-application-list.json b/src/test/resources/fixtures/catalog-application-list.json
new file mode 100644
index 0000000..c4757be
--- /dev/null
+++ b/src/test/resources/fixtures/catalog-application-list.json
@@ -0,0 +1,29 @@
+[
+    {
+        "id": "com.example.app:1.1",
+        "type": "com.example.app",
+        "name": "My example application",
+        "version": "1.1",
+        "description": "My awesome example application, as a catalog item",
+        "planYaml": "services:\n- type: org.apache.brooklyn.entity.software.base.VanillaSoftwareProcess\n
 launch.command: echo \"Launch application\"\n  checkRunning.command: echo \"Check running
application\"",
+        "iconUrl": "http://my.example.com/icon.png"
+    },
+    {
+        "id": "com.example.app:2.0",
+        "type": "com.example.app",
+        "name": "My example application",
+        "version": "2.0",
+        "description": "My awesome example application, as a catalog item",
+        "planYaml": "services:\n- type: org.apache.brooklyn.entity.software.base.VanillaSoftwareProcess\n
 launch.command: echo \"Launch application\"\n  checkRunning.command: echo \"Check running
application\"",
+        "iconUrl": "http://my.example.com/icon.png"
+    },
+    {
+        "id": "com.example.other.app:1.0",
+        "type": "com.example.other.app",
+        "name": "Another example application",
+        "version": "1.0",
+        "description": "Another awesome example application, as a catalog item",
+        "planYaml": "services:\n- type: org.apache.brooklyn.entity.software.base.VanillaSoftwareProcess\n
 launch.command: echo \"Launch other application\"\n  checkRunning.command: echo \"Check running
other application\"",
+        "iconUrl": "http://my.other.example.com/icon.png"
+    }
+]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/src/test/resources/fixtures/catalog-application.json
----------------------------------------------------------------------
diff --git a/src/test/resources/fixtures/catalog-application.json b/src/test/resources/fixtures/catalog-application.json
new file mode 100644
index 0000000..7c72270
--- /dev/null
+++ b/src/test/resources/fixtures/catalog-application.json
@@ -0,0 +1,9 @@
+{
+    "id": "com.example.app:1.1",
+    "type": "com.example.app",
+    "name": "My example application",
+    "version": "1.1",
+    "description": "My awesome example application, as a catalog item",
+    "planYaml": "services:\n- type: org.apache.brooklyn.entity.software.base.VanillaSoftwareProcess\n
 launch.command: echo \"Launch application\"\n  checkRunning.command: echo \"Check running
application\"",
+    "iconUrl": "http://my.example.com/icon.png"
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/src/test/resources/fixtures/effector-summary-list.json
----------------------------------------------------------------------
diff --git a/src/test/resources/fixtures/effector-summary-list.json b/src/test/resources/fixtures/effector-summary-list.json
new file mode 100644
index 0000000..2b7e7c5
--- /dev/null
+++ b/src/test/resources/fixtures/effector-summary-list.json
@@ -0,0 +1,47 @@
+[
+    {
+        "name":"start",
+        "description":"Start the process/service represented by an entity",
+        "returnType":"void",
+        "parameters":[
+            {
+                "name":"locations",
+                "type":"java.util.Collection",
+                "description":"A list of locations"
+            },
+            {
+                "name":"booleanValue",
+                "type":"java.lang.Boolean",
+                "description":"True or false",
+                "defaultValue": true
+            }
+        ],
+        "links":{
+            "self":"/applications/tesr/entities/ZgoDhGQA/effectors/start",
+            "entity":"/applications/tesr/entities/ZgoDhGQA",
+            "application":"/applications/tesr"
+        }
+    },
+    {
+        "name":"restart",
+        "description":"Restart the process/service represented by an entity",
+        "returnType":"void",
+        "parameters":[ ],
+        "links":{
+            "self":"/applications/tesr/entities/ZgoDhGQA/effectors/restart",
+            "entity":"/applications/tesr/entities/ZgoDhGQA",
+            "application":"/applications/tesr"
+        }
+    },
+    {
+        "name":"stop",
+        "description":"Stop the process/service represented by an entity",
+        "returnType":"void",
+        "parameters":[ ],
+        "links":{
+            "self":"/applications/tesr/entities/ZgoDhGQA/effectors/stop",
+            "entity":"/applications/tesr/entities/ZgoDhGQA",
+            "application":"/applications/tesr"
+        }
+    }
+]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/src/test/resources/fixtures/effector-summary.json
----------------------------------------------------------------------
diff --git a/src/test/resources/fixtures/effector-summary.json b/src/test/resources/fixtures/effector-summary.json
new file mode 100644
index 0000000..1ba826d
--- /dev/null
+++ b/src/test/resources/fixtures/effector-summary.json
@@ -0,0 +1,9 @@
+{
+    "name":"stop",
+    "returnType":"void",
+    "parameters":[],
+    "description":"Effector description",
+    "links":{
+        "self":"/applications/redis-app/entities/redis-ent/effectors/stop"
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/src/test/resources/fixtures/entity-only-type.json
----------------------------------------------------------------------
diff --git a/src/test/resources/fixtures/entity-only-type.json b/src/test/resources/fixtures/entity-only-type.json
new file mode 100644
index 0000000..e932ab1
--- /dev/null
+++ b/src/test/resources/fixtures/entity-only-type.json
@@ -0,0 +1,3 @@
+{
+    "type":"org.apache.brooklyn.entity.java.VanillaJavaApp"
+}

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/src/test/resources/fixtures/entity-summary-list.json
----------------------------------------------------------------------
diff --git a/src/test/resources/fixtures/entity-summary-list.json b/src/test/resources/fixtures/entity-summary-list.json
new file mode 100644
index 0000000..bf71c36
--- /dev/null
+++ b/src/test/resources/fixtures/entity-summary-list.json
@@ -0,0 +1,14 @@
+[
+    {
+        "type":"org.apache.brooklyn.entity.webapp.tomcat.TomcatServer",
+        "links":{
+            "self":"/applications/tesr/entities/zQsqdXzi",
+            "catalog":"/catalog/entities/org.apache.brooklyn.entity.webapp.tomcat.TomcatServer",
+            "application":"/applications/tesr",
+            "children":"/applications/tesr/entities/zQsqdXzi/entities",
+            "effectors":"fixtures/effector-summary-list.json",
+            "sensors":"fixtures/sensor-summary-list.json",
+            "activities":"fixtures/task-summary-list.json"
+        }
+    }
+]

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/src/test/resources/fixtures/entity-summary.json
----------------------------------------------------------------------
diff --git a/src/test/resources/fixtures/entity-summary.json b/src/test/resources/fixtures/entity-summary.json
new file mode 100644
index 0000000..fe0343c
--- /dev/null
+++ b/src/test/resources/fixtures/entity-summary.json
@@ -0,0 +1,13 @@
+{"id":"zQsqdXzi",
+ "name":"MyTomcat",
+ "type":"org.apache.brooklyn.entity.webapp.tomcat.TomcatServer",
+ "links":{
+   "self":"/applications/tesr/entities/zQsqdXzi",
+   "catalog":"/catalog/entities/org.apache.brooklyn.entity.webapp.tomcat.TomcatServer",
+   "application":"/applications/tesr",
+   "children":"/applications/tesr/entities/zQsqdXzi/children",
+   "effectors":"fixtures/effector-summary-list.json",
+   "sensors":"fixtures/sensor-summary-list.json",
+   "activities":"fixtures/task-summary-list.json"
+ }
+}

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/src/test/resources/fixtures/entity.json
----------------------------------------------------------------------
diff --git a/src/test/resources/fixtures/entity.json b/src/test/resources/fixtures/entity.json
new file mode 100644
index 0000000..dac0509
--- /dev/null
+++ b/src/test/resources/fixtures/entity.json
@@ -0,0 +1,7 @@
+[
+    {
+        "name":"Vanilla Java App",
+        "type":"org.apache.brooklyn.entity.java.VanillaJavaApp",
+        "config":{}
+    }
+]

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/src/test/resources/fixtures/ha-summary.json
----------------------------------------------------------------------
diff --git a/src/test/resources/fixtures/ha-summary.json b/src/test/resources/fixtures/ha-summary.json
new file mode 100644
index 0000000..3c3eb7c
--- /dev/null
+++ b/src/test/resources/fixtures/ha-summary.json
@@ -0,0 +1,19 @@
+{
+    "links": {},
+    "masterId": "kDp39gAv",
+    "nodes": {
+        "kDp39gAv": {
+            "nodeId": "kDp39gAv",
+            "nodeUri": "http://10.30.40.50:8081/",
+            "status": "MASTER",
+            "timestampUtc": 1400257858796
+        },
+        "lHNCTtZ4": {
+            "nodeId": "lHNCTtZ4",
+            "nodeUri": "http://10.30.40.60:8081/",
+            "status": "STANDBY",
+            "timestampUtc": 1400257858796
+        }
+    },
+    "ownId": "kDp39gAv"
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/src/test/resources/fixtures/location-list.json
----------------------------------------------------------------------
diff --git a/src/test/resources/fixtures/location-list.json b/src/test/resources/fixtures/location-list.json
new file mode 100644
index 0000000..6faa0b9
--- /dev/null
+++ b/src/test/resources/fixtures/location-list.json
@@ -0,0 +1,10 @@
+[
+    {
+        "id":"123",
+        "name":"localhost",
+        "spec":"localhost",
+        "links":{
+            "self":"/locations/123"
+        }
+    }
+]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/src/test/resources/fixtures/location-summary.json
----------------------------------------------------------------------
diff --git a/src/test/resources/fixtures/location-summary.json b/src/test/resources/fixtures/location-summary.json
new file mode 100644
index 0000000..57749aa
--- /dev/null
+++ b/src/test/resources/fixtures/location-summary.json
@@ -0,0 +1,8 @@
+{
+    "id":"123",
+    "name":"localhost",
+    "spec":"localhost",
+    "links":{
+        "self":"/locations/123"
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/src/test/resources/fixtures/location-without-credential.json
----------------------------------------------------------------------
diff --git a/src/test/resources/fixtures/location-without-credential.json b/src/test/resources/fixtures/location-without-credential.json
new file mode 100644
index 0000000..af8051d
--- /dev/null
+++ b/src/test/resources/fixtures/location-without-credential.json
@@ -0,0 +1,5 @@
+{
+    "name":"localhost",
+    "spec":"localhost",
+    "config":{"identity":"bob"}
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/src/test/resources/fixtures/location.json
----------------------------------------------------------------------
diff --git a/src/test/resources/fixtures/location.json b/src/test/resources/fixtures/location.json
new file mode 100644
index 0000000..a2670cd
--- /dev/null
+++ b/src/test/resources/fixtures/location.json
@@ -0,0 +1,4 @@
+{
+    "name":"localhost",
+    "spec":"localhost"
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/src/test/resources/fixtures/sensor-current-state.json
----------------------------------------------------------------------
diff --git a/src/test/resources/fixtures/sensor-current-state.json b/src/test/resources/fixtures/sensor-current-state.json
new file mode 100644
index 0000000..e8084e0
--- /dev/null
+++ b/src/test/resources/fixtures/sensor-current-state.json
@@ -0,0 +1,6 @@
+{
+    "service.state":"running",
+    "jmx.context":"jmx/context",
+    "tomcat.shutdownport":"8081",
+    "service.isUp":"true"
+}

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/src/test/resources/fixtures/sensor-summary-list.json
----------------------------------------------------------------------
diff --git a/src/test/resources/fixtures/sensor-summary-list.json b/src/test/resources/fixtures/sensor-summary-list.json
new file mode 100644
index 0000000..10d7ee2
--- /dev/null
+++ b/src/test/resources/fixtures/sensor-summary-list.json
@@ -0,0 +1,42 @@
+[
+    {
+        "name":"service.state",
+        "type":"org.apache.brooklyn.entity.lifecycle.Lifecycle",
+        "description":"Service lifecycle state",
+        "links":{
+            "self":"fixtures/service-state.json",
+            "application":"/applications/tesr",
+            "entity":"/applications/tesr/entities/zQsqdXzi"
+        }
+    },
+    {
+        "name":"jmx.context",
+        "type":"java.lang.String",
+        "description":"JMX context path",
+        "links":{
+            "self":"fixtures/service-state.json",
+            "application":"/applications/tesr",
+            "entity":"/applications/tesr/entities/zQsqdXzi"
+        }
+    },
+    {
+        "name":"tomcat.shutdownport",
+        "type":"java.lang.Integer",
+        "description":"Suggested shutdown port",
+        "links":{
+            "self":"fixtures/service-state.json",
+            "application":"/applications/tesr",
+            "entity":"/applications/tesr/entities/zQsqdXzi"
+        }
+    },
+    {
+        "name":"service.isUp",
+        "type":"java.lang.Boolean",
+        "description":"Service has been started successfully and is running",
+        "links":{
+            "self":"fixtures/service-state.json",
+            "application":"/applications/tesr",
+            "entity":"/applications/tesr/entities/zQsqdXzi"
+        }
+    }
+]
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/src/test/resources/fixtures/sensor-summary.json
----------------------------------------------------------------------
diff --git a/src/test/resources/fixtures/sensor-summary.json b/src/test/resources/fixtures/sensor-summary.json
new file mode 100644
index 0000000..0ab6c8e
--- /dev/null
+++ b/src/test/resources/fixtures/sensor-summary.json
@@ -0,0 +1,8 @@
+{
+    "name":"redis.uptime",
+    "type":"Integer",
+    "description":"Description",
+    "links":{
+        "self":"/applications/redis-app/entities/redis-ent/sensors/redis.uptime"
+    }
+}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/src/test/resources/fixtures/server-version.json
----------------------------------------------------------------------
diff --git a/src/test/resources/fixtures/server-version.json b/src/test/resources/fixtures/server-version.json
new file mode 100644
index 0000000..affd707
--- /dev/null
+++ b/src/test/resources/fixtures/server-version.json
@@ -0,0 +1,14 @@
+{
+    "version": "0.7.0-SNAPSHOT",
+    "buildSha1": "cb4f0a3af2f5042222dd176edc102bfa64e7e0b5",
+    "buildBranch":"versions",
+    "features":[
+        {
+          "name": "Sample Brooklyn Project com.acme.sample:brooklyn-sample v0.1.0-SNAPSHOT",
+          "symbolicName":"com.acme.sample.brooklyn-sample",
+          "version":"0.1.0.SNAPSHOT",
+          "lastModified":"523305000",
+          "Brooklyn-Feature-Build-Id":"e0fee1adf795c84eec4735f039503eb18d9c35cc"
+        }
+    ]
+}

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/src/test/resources/fixtures/service-state.json
----------------------------------------------------------------------
diff --git a/src/test/resources/fixtures/service-state.json b/src/test/resources/fixtures/service-state.json
new file mode 100644
index 0000000..61d5e33
--- /dev/null
+++ b/src/test/resources/fixtures/service-state.json
@@ -0,0 +1 @@
+running
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/brooklyn-ui/blob/e5dfc85b/src/test/resources/fixtures/task-summary-list.json
----------------------------------------------------------------------
diff --git a/src/test/resources/fixtures/task-summary-list.json b/src/test/resources/fixtures/task-summary-list.json
new file mode 100644
index 0000000..25b3193
--- /dev/null
+++ b/src/test/resources/fixtures/task-summary-list.json
@@ -0,0 +1,15 @@
+[
+    {
+        "entityId":"VzK45RFC",
+        "entityDisplayName":"tomcat",
+        "displayName":"start",
+        "description":"invoking start on tomcat",
+        "id":"n24NC63Nsu",
+        "rawSubmitTimeUtc":1348663165550,
+        "submitTimeUtc":"2012-09-26 12:39:25",
+        "startTimeUtc":"2012-09-26 12:39:25",
+        "endTimeUtc":"2012-09-26 12:39:33",
+        "currentStatus":"Ended normally",
+        "detailedStatus":"Ended normally after 7940 ms\nResult: null"
+    }
+]
\ No newline at end of file


Mime
View raw message