brooklyn-client.git
3 days agoThis closes #76 master
Alex Heneveld [Wed, 16 Jan 2019 02:12:49 +0000 (02:12 +0000)] 
This closes #76

3 days agobump resteasy to be compatible with new jersey
Alex Heneveld [Wed, 16 Jan 2019 01:26:08 +0000 (01:26 +0000)] 
bump resteasy to be compatible with new jersey

fix need for csrf header now that that is respected in tests

8 weeks agoThis closes #72
Thomas Bouron [Tue, 20 Nov 2018 09:20:40 +0000 (09:20 +0000)] 
This closes #72

2 months agoSwitch to dep for dependency management 72/head
Geoff Macartney [Sat, 17 Nov 2018 22:49:20 +0000 (22:49 +0000)] 
Switch to dep for dependency management

2 months agoThis closes #71
Thomas Bouron [Wed, 31 Oct 2018 15:53:48 +0000 (15:53 +0000)] 
This closes #71

2 months agoFix for SUREFIRE-1588 71/head
Paul Campbell [Wed, 31 Oct 2018 15:11:52 +0000 (15:11 +0000)] 
Fix for SUREFIRE-1588

Latest version of Java 1.8.0_191 enforces that Manifest classpath entries be
relative.

https://issues.apache.org/jira/browse/SUREFIRE-1588

3 months agoThis closes #70
Aled Sage [Sat, 29 Sep 2018 09:38:08 +0000 (10:38 +0100)] 
This closes #70

3 months agofix jenkins docker build 70/head
frogfather [Fri, 28 Sep 2018 11:13:05 +0000 (12:13 +0100)] 
fix jenkins docker build
Jenkins build failed writing to /var/maven/.brooklyn

6 months agoCloses #69
Geoff Macartney [Wed, 18 Jul 2018 15:20:14 +0000 (16:20 +0100)] 
Closes #69

updated LICENSE and NOTICE, using new procedure

Supporting changes for https://github.com/apache/brooklyn-dist/pull/123

6 months agoupdated LICENSE and NOTICE, using new procedure 69/head
Alex Heneveld [Tue, 26 Jun 2018 12:46:00 +0000 (13:46 +0100)] 
updated LICENSE and NOTICE, using new procedure

9 months agoCloses #68
Geoff Macartney [Fri, 23 Mar 2018 13:50:16 +0000 (13:50 +0000)] 
Closes #68

Temporarily use fork of NodePrime repo

See https://lists.apache.org/thread.html/10a74756dbeb1243928eb87c379b01ba58357a6204149d98676fa025@%3Cdev.brooklyn.apache.org%3E

Until this is resolved we can use John's fork

9 months agoAdd vendor file and remove glide from build/readme 68/head
Geoff Macartney [Fri, 23 Mar 2018 12:59:45 +0000 (12:59 +0000)] 
Add vendor file and remove glide from build/readme

9 months agoTemporarily use fork of NodePrime repo
Geoff Macartney [Fri, 23 Mar 2018 12:40:43 +0000 (12:40 +0000)] 
Temporarily use fork of NodePrime repo

See https://lists.apache.org/thread.html/10a74756dbeb1243928eb87c379b01ba58357a6204149d98676fa025@%3Cdev.brooklyn.apache.org%3E

Until this is resolved we can use John's fork

11 months agoCloses #67
Geoff Macartney [Fri, 2 Feb 2018 19:00:31 +0000 (19:00 +0000)] 
Closes #67

Invoke effector: support timeout

Passes the timeout arg (if supplied) when making the REST api call to Brooklyn. The response from this is written to stdout.

If it times out, the REST api still gives back a 202 response code with a json payload describing the executing task. The `br` tool simply writes that to stdout. For example:

```
cli/target/bin/darwin.amd64/br app rbfvau9i75 effector stop invoke --timeout 1ms

{"id":"kpML04c1","displayName":"stop","description":"Invoking effector stop on server @ localhost with parameters {}","entityId":"rbfvau9i75","entityDisplayName":"server @ localhost","tags":["EFFECTOR",{"entityId":"rbfvau9i75","effectorName":"stop"},{"entitlementContext":{"user":"<snip>","sourceIp":"0:0:0:0:0:0:0:1","requestUri":"/v1/applications/rbfvau9i75/entities/rbfvau9i75/effectors/stop","requestUniqueIdentifier":"rjuSuB"}},{"type":"org.apache.brooklyn.api.mgmt.ManagementContext"},{"wrappingType":"targetEntity","entity":{"type":"org.apache.brooklyn.api.entity.Entity","id":"rbfvau9i75"}},{"entitlementContext":{"user":"<snip>","sourceIp":"0:0:0:0:0:0:0:1","requestUri":"/v1/applications/rbfvau9i75/entities/rbfvau9i75/effectors/stop","requestUniqueIdentifier":"rjuSuB"}},{"wrappingType":"contextEntity","entity":{"type":"org.apache.brooklyn.api.entity.Entity","id":"rbfvau9i75"}}],"submitTimeUtc":1517490162402,"startTimeUtc":1517490162402,"endTimeUtc":null,"currentStatus":"In progress","result":null,"isError":false,"isCancelled":false,"children":[{"link":"/v1/activities/X9j8xcJ1","metadata":{"id":"X9j8xcJ1","taskName":"invoking stop[] on 1 node","entityId":"rbfvau9i75","entityDisplayName":"server @ localhost"}}],"submittedByTask":null,"blockingTask":{"link":"/v1/activities/X9j8xcJ1","metadata":{"id":"X9j8xcJ1","taskName":"invoking stop[] on 1 node","entityId":"rbfvau9i75","entityDisplayName":"server @ localhost"}},"detailedStatus":"Waiting on Task[invoking stop[] on 1 node]@X9j8xcJ1\n\nTask[stop]@kpML04c1\nChildren:\n  Task[invoking stop[] on 1 node]@X9j8xcJ1: Executing 1 child task\n\nIn progress, thread waiting (notify) on java.util.concurrent.FutureTask@61fe3136\nAt: com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:63)\n    org.apache.brooklyn.util.core.task.BasicTask.get(BasicTask.java:384)\n    org.apache.brooklyn.util.core.task.BasicTask.getUnchecked(BasicTask.java:393)\n    org.apache.brooklyn.util.core.task.DynamicTasks$TaskQueueingResult.andWaitForSuccess(DynamicTasks.java:195)\n    org.apache.brooklyn.util.core.task.DynamicTasks.get(DynamicTasks.java:363)\n    org.apache.brooklyn.core.entity.trait.StartableMethods.stop(StartableMethods.java:58)\n    org.apache.brooklyn.core.entity.AbstractApplication.doStop(AbstractApplication.java:271)\n    org.apache.brooklyn.core.entity.AbstractApplication.stop(AbstractApplication.java:246)\n    org.apache.brooklyn.util.javalang.Reflections.invokeMethodFromArgs(Reflections.java:984)\n    org.apache.brooklyn.util.javalang.Reflections.invokeMethodFromArgs(Reflections.java:871)\n    org.apache.brooklyn.util.javalang.Reflections.invokeMethodFromArgs(Reflections.java:857)\n    org.apache.brooklyn.util.javalang.Reflections.invokeMethodFromArgs(Reflections.java:852)\n    org.apache.brooklyn.core.mgmt.internal.AbstractManagementContext.invokeEffectorMethodLocal(AbstractManagementContext.java:327)\n    org.apache.brooklyn.core.mgmt.internal.AbstractManagementContext.invokeEffectorMethodSync(AbstractManagementContext.java:366)\n    org.apache.brooklyn.core.mgmt.internal.EffectorUtils.invokeMethodEffector(EffectorUtils.java:274)\n    org.apache.brooklyn.core.effector.MethodEffector.call(MethodEffector.java:153)\n    org.apache.brooklyn.core.entity.trait.Startable$StopEffectorBody.call(Startable.java:68)\n    org.apache.brooklyn.core.entity.trait.Startable$StopEffectorBody.call(Startable.java:60)\n    org.apache.brooklyn.core.effector.EffectorTasks$EffectorBodyTaskFactory$1.call(EffectorTasks.java:82)\n    org.apache.brooklyn.util.core.task.DynamicSequentialTask$DstJob.call(DynamicSequentialTask.java:364)\n    org.apache.brooklyn.util.core.task.BasicExecutionManager$SubmissionCallable.call(BasicExecutionManager.java:565)","streams":{},"links":{"self":"/v1/activities/kpML04c1","children":"/v1/activities/kpML04c1/children","entity":"/v1/applications/rbfvau9i75/entities/rbfvau9i75"}}
```

11 months agoInvoke effector: support timeout 67/head
Aled Sage [Fri, 2 Feb 2018 08:56:49 +0000 (08:56 +0000)] 
Invoke effector: support timeout

12 months agoThis closes #66
Duncan Godwin [Thu, 11 Jan 2018 14:02:15 +0000 (14:02 +0000)] 
This closes #66

12 months ago`br` on Windows generates incorrect ZIP archives 66/head
Richard Downer [Thu, 11 Jan 2018 11:11:08 +0000 (11:11 +0000)] 
`br` on Windows generates incorrect ZIP archives

The ZIP archive should use / internally but when on Windows `br` used
\ instead. This affects the `br catalog add` command when given a
directory.

12 months agobr catalog add: Fix path parsing errors on Windows
Richard Downer [Thu, 11 Jan 2018 11:36:24 +0000 (11:36 +0000)] 
br catalog add: Fix path parsing errors on Windows

br has trouble working with files on Windows due to its attempt to
coerce filenames to file: URLs, which are ill-defined and unreliable
when it comes to backslashes and drive letters. Code revised to handle
files as files instead of URLs to avoid a number of issues.

13 months agoThis closes #65
Duncan Godwin [Tue, 21 Nov 2017 11:46:39 +0000 (11:46 +0000)] 
This closes #65

13 months agoAdd dockerfile for CI build 65/head
Thomas Bouron [Wed, 18 Oct 2017 08:30:28 +0000 (09:30 +0100)] 
Add dockerfile for CI build

14 months agoThis closes #64
Thomas Bouron [Fri, 10 Nov 2017 09:29:32 +0000 (09:29 +0000)] 
This closes #64

14 months agoDefault login port to 80/443 if not supplied 64/head
Geoff Macartney [Thu, 9 Nov 2017 22:15:01 +0000 (22:15 +0000)] 
Default login port to 80/443 if not supplied

14 months agoCloses #63
Geoff Macartney [Thu, 9 Nov 2017 10:22:42 +0000 (10:22 +0000)] 
Closes #63

Fixes index out of range issue

Wasn't handling calls where there were only flag params e.g.
br -v

14 months agoFixes index out of range issue 63/head
Duncan Grant [Wed, 8 Nov 2017 21:49:08 +0000 (21:49 +0000)] 
Fixes index out of range issue

Wasn't handling calls where there were only flag params e.g.
br -v

15 months agoThis closes #61
Thomas Bouron [Wed, 18 Oct 2017 08:30:28 +0000 (09:30 +0100)] 
This closes #61

15 months agoDelete old deprecated code 61/head
Aled Sage [Tue, 10 Oct 2017 08:08:19 +0000 (09:08 +0100)] 
Delete old deprecated code

15 months agoChange version to 1.0.0-SNAPSHOT
Duncan Godwin [Fri, 6 Oct 2017 13:21:50 +0000 (13:21 +0000)] 
Change version to 1.0.0-SNAPSHOT

15 months agoThis closes #60
Duncan Godwin [Mon, 2 Oct 2017 15:28:26 +0000 (16:28 +0100)] 
This closes #60

15 months agoFix tests tearDown (to always stop management context) 60/head
Aled Sage [Thu, 21 Sep 2017 08:19:18 +0000 (09:19 +0100)] 
Fix tests tearDown (to always stop management context)

16 months agoChange version to 0.13.0-SNAPSHOT
Duncan Godwin [Mon, 18 Sep 2017 15:13:19 +0000 (15:13 +0000)] 
Change version to 0.13.0-SNAPSHOT

17 months agoCloses #59
Geoff Macartney [Fri, 28 Jul 2017 14:41:16 +0000 (15:41 +0100)] 
Closes #59

Move Resteasy dependency management to java module pom

17 months agoCloses #58
Geoff Macartney [Fri, 28 Jul 2017 14:30:10 +0000 (15:30 +0100)] 
Closes #58

Fix handling of global flags in scope definition

Previously the presence of global flags in a command like `br --flag app a ent b sensor c` caused the CLI to run the command for app, not sensor.

17 months agoCloses #57
Geoff Macartney [Fri, 28 Jul 2017 14:18:17 +0000 (15:18 +0100)] 
Closes #57

Add flags for verbose output of HTTP request data

New global flags `--verbose` and `--vverbose` (very verbose) configure the network library to write data about API requests to stderr. (I would have used `-v` and `-vv` but the former is already taken as shorthand for `--version`.)

The intention is to make it easier to debug both the working of the CLI and unexpected responses from Brooklyn servers.

Example:
```
$ ./bin/br --verbose deploy ./bp.yaml
POST /v1/applications HTTP/1.1
Host: localhost:8081
User-Agent: Go-http-client/1.1
Content-Length: 0
Authorization: ******
Content-Type: application/json
Accept-Encoding: gzip

HTTP/1.1 201 Created
Transfer-Encoding: chunked
Cache-Control: no-cache, no-store
Content-Type: application/json
Date: Thu, 27 Jul 2017 14:12:56 GMT
Expires: 0
Location: http://localhost:8081/v1/applications/sr9uw9bdbu
Pragma: no-cache
Server: Jetty(9.2.13.v20150730)
Vary: Accept-Encoding

Id:       | sr9uw9bdbu
Name:     | Application (sr9uw9bdbu)
Status:   | In progress
```

```
$ ./bin/br --vverbose application vhkhp6nbbl entity
GET /v1/applications/vhkhp6nbbl/entities HTTP/1.1
Host: localhost:8081
User-Agent: Go-http-client/1.1
Accept: application/json, text/plain
Authorization: ******
Accept-Encoding: gzip

HTTP/1.1 200 OK
Transfer-Encoding: chunked
Cache-Control: no-cache, no-store
Content-Type: application/json
Date: Thu, 27 Jul 2017 14:16:43 GMT
Expires: 0
Pragma: no-cache
Server: Jetty(9.2.13.v20150730)
Vary: Accept-Encoding

503
[{"id":"tqj1a2g883","name":"Tomcat 7 Server","type":"org.apache.brooklyn.entity.webapp.tomcat.TomcatServer","catalogItemId":"org.apache.brooklyn.entity.webapp.tomcat.TomcatServer:0.12.0-SNAPSHOT","links":{"self":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883","parent":"/v1/applications/vhkhp6nbbl/entities/vhkhp6nbbl","application":"/v1/applications/vhkhp6nbbl","children":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883/children","config":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883/config","sensors":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883/sensors","effectors":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883/effectors","policies":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883/policies","activities":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883/activities","locations":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883/locations","tags":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883/tags","expunge":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883/expunge","rename":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883/name","spec":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883/spec","iconUrl":"/v1/applications/vhkhp6nbbl/entities/tqj1a2g883/icon","catalog":"/v1/catalog/entities/org.apache.brooklyn.entity.webapp.tomcat.TomcatServer/0.12.0-SNAPSHOT"}}]
0

Id           | Name              | Type
tqj1a2g883   | Tomcat 7 Server   | org.apache.brooklyn.entity.webapp.tomcat.TomcatServer
```

The Authorization header is redacted.

17 months agoMove Resteasy dependency management to java module pom 59/head
Sam Corbett [Fri, 28 Jul 2017 11:53:17 +0000 (12:53 +0100)] 
Move Resteasy dependency management to java module pom

17 months agoAdd flags for verbose output of HTTP request data 57/head
Sam Corbett [Fri, 28 Jul 2017 09:45:27 +0000 (10:45 +0100)] 
Add flags for verbose output of HTTP request data

17 months agoCloses #56
Geoff Macartney [Thu, 27 Jul 2017 17:15:03 +0000 (18:15 +0100)] 
Closes #56

Set ContentType header when adding .yaml and .bom files to the catalog

Using application/x-yaml saves the Brooklyn server the hassle of guessing. At the moment it's too smart for its own good and gives useless errors about zipfiles when there are errors in yaml files, e.g. when trying to add yaml containing an undefined alias.

Before:
```
$ br catalog add mybp.bom
Server error (400): Bundle BasicManagedBundle{symbolicName=null, version=null, url=n
ull} failed preparation: Unable to read /tmp/brooklyn-bundle-transient-null-86366849
75390229868.zip when looking for manifest: ZipException: error in opening zip file
```
After:
```
$ br catalog add mybp.bom
Server error (400): ComposerException: found undefined alias doesntexist
 in 'reader', line 23, column 15:
            name: *doesntexist
```
I'll look to improve the feedback from Brooklyn's guessing endpoint too.

17 months agoFix handling of global flags in scope definition 58/head
Sam Corbett [Thu, 27 Jul 2017 13:58:11 +0000 (14:58 +0100)] 
Fix handling of global flags in scope definition

Previously the presence of global flags in a command like
"br --flag app a ent b sensor c" caused the CLI to run the command for
app, not sensor.

18 months agoSet ContentType when adding .yaml and .bom files to the catalog 56/head
Sam Corbett [Wed, 19 Jul 2017 15:11:14 +0000 (16:11 +0100)] 
Set ContentType when adding .yaml and .bom files to the catalog

Using application/x-yaml saves the Brooklyn server the hassle of
guessing. At the moment it's too smart for its own good and gives
useless errors about zipfiles when there are errors in yaml files.

18 months agoThis closes #42
Sam Corbett [Mon, 17 Jul 2017 12:03:05 +0000 (13:03 +0100)] 
This closes #42

Improve login handling.

18 months agoEnsure logout does not prevent help being displayed 42/head
Geoff Macartney [Thu, 13 Jul 2017 16:07:32 +0000 (17:07 +0100)] 
Ensure logout does not prevent help being displayed

18 months agoAdd licence header to config_test.go
Geoff Macartney [Tue, 4 Jul 2017 15:08:35 +0000 (16:08 +0100)] 
Add licence header to config_test.go

18 months agoAllow login without user/password if target already in config
Geoff Macartney [Tue, 4 Jul 2017 15:01:46 +0000 (16:01 +0100)] 
Allow login without user/password if target already in config

18 months agoRevert to keeping multiple credentials in the config file
Geoff Macartney [Tue, 4 Jul 2017 13:20:46 +0000 (14:20 +0100)] 
Revert to keeping multiple credentials in the config file

per https://github.com/apache/brooklyn-client/pull/42#issuecomment-303995483

18 months agoIgnore invalid config during login and remove config upon failure
Geoff Macartney [Wed, 24 May 2017 19:43:08 +0000 (20:43 +0100)] 
Ignore invalid config during login and remove config upon failure

18 months agoImprove error message when not logged in.
Geoff Macartney [Wed, 24 May 2017 15:13:42 +0000 (16:13 +0100)] 
Improve error message when not logged in.

18 months agoAdd a br server command.
Geoff Macartney [Wed, 24 May 2017 14:15:25 +0000 (15:15 +0100)] 
Add a br server command.

Displays the URL of the connected Brooklyn.

18 months agoSimply the format even more: encode username and password
Geoff Macartney [Wed, 24 May 2017 13:19:10 +0000 (14:19 +0100)] 
Simply the format even more: encode username and password

18 months agoRename method to private
Geoff Macartney [Wed, 24 May 2017 11:51:46 +0000 (12:51 +0100)] 
Rename method to private

18 months agobase64 encode passwords and simplify .brooklyn_cli structure
Geoff Macartney [Wed, 24 May 2017 11:49:56 +0000 (12:49 +0100)] 
base64 encode passwords and simplify .brooklyn_cli structure

Includes support for old style .brooklyn_cli format such that it will
read credentials from the old style and use them, but overwrite with
the new style on next login.

New style looks like:
{
  "credentials": {
    "password": "cGFzc3dvcmQ=",
    "username": "geoff"
  },
  "skipSslChecks": false,
  "target": "http://geoffs-macbook-pro.local:8081"
}

18 months agoAdd logout command
Geoff Macartney [Tue, 23 May 2017 18:34:23 +0000 (19:34 +0100)] 
Add logout command

18 months agoDon't store all old logins in .brooklyn_cli
Geoff Macartney [Tue, 23 May 2017 16:42:16 +0000 (17:42 +0100)] 
Don't store all old logins in .brooklyn_cli

18 months agoDon't use resp if there was an error
Geoff Macartney [Tue, 23 May 2017 16:08:45 +0000 (17:08 +0100)] 
Don't use resp if there was an error

18 months agoHandle newline/spaces in prompt for username
Geoff Macartney [Tue, 23 May 2017 16:08:15 +0000 (17:08 +0100)] 
Handle newline/spaces in prompt for username

18 months agoDon't panic on failure to connect to host
Geoff Macartney [Tue, 23 May 2017 15:48:35 +0000 (16:48 +0100)] 
Don't panic on failure to connect to host

18 months agoDon't trim password.
Geoff Macartney [Tue, 4 Apr 2017 14:26:31 +0000 (15:26 +0100)] 
Don't trim password.

18 months agoImprove login handling.
Geoff Macartney [Tue, 4 Apr 2017 13:08:18 +0000 (14:08 +0100)] 
Improve login handling.

See https://issues.apache.org/jira/browse/BROOKLYN-463.

Prompt for user name if not supplied.
Check for 401 Unauthorized and give tidier output.

18 months agoThis closes #55
Mark McKenna [Fri, 23 Jun 2017 13:38:29 +0000 (14:38 +0100)] 
This closes #55

18 months agoAllow catalog item (YAML or bundle) to be force-updated via query string flag on... 55/head
Thomas Bouron [Fri, 23 Jun 2017 10:48:30 +0000 (11:48 +0100)] 
Allow catalog item (YAML or bundle) to be force-updated via query string flag on the REST API

19 months agoThis closes #53
Alex Heneveld [Tue, 6 Jun 2017 15:55:16 +0000 (16:55 +0100)] 
This closes #53

19 months agoshow bundle info and message when doing `catalog add` 53/head
Alex Heneveld [Mon, 5 Jun 2017 12:35:02 +0000 (13:35 +0100)] 
show bundle info and message when doing `catalog add`

also supports backwards compatibility as only some API methods support the detail

19 months agoCloses #52
Geoff Macartney [Tue, 23 May 2017 14:51:44 +0000 (15:51 +0100)] 
Closes #52

Delete requrest now only fail is an unsuccessful code is returned

19 months agoDelete requrest now only fail is an unsuccessful code is returned 52/head
graeme.miller [Tue, 23 May 2017 14:47:17 +0000 (15:47 +0100)] 
Delete requrest now only fail is an unsuccessful code is returned

20 months agoThis closes #51
Duncan Godwin [Fri, 19 May 2017 13:10:09 +0000 (14:10 +0100)] 
This closes #51

20 months agoMove to Java 8, remove MaxPermSize options 51/head
Svetoslav Neykov [Fri, 19 May 2017 12:55:29 +0000 (15:55 +0300)] 
Move to Java 8, remove MaxPermSize options

20 months agoThis closes #40
Alex Heneveld [Tue, 9 May 2017 13:27:01 +0000 (14:27 +0100)] 
This closes #40

20 months agoupdate javadoc following PR review 40/head
Alex Heneveld [Tue, 9 May 2017 13:26:19 +0000 (14:26 +0100)] 
update javadoc following PR review

20 months agofix misleading string description in test, following PR review
Alex Heneveld [Tue, 9 May 2017 13:22:41 +0000 (14:22 +0100)] 
fix misleading string description in test, following PR review

20 months agoMerge branch 'master' into brooklyn-api-convenience-better-error-propagation
Alex Heneveld [Tue, 9 May 2017 08:10:48 +0000 (09:10 +0100)] 
Merge branch 'master' into brooklyn-api-convenience-better-error-propagation

imports conflict

20 months agoThis closes #50
Duncan Godwin [Mon, 8 May 2017 11:58:24 +0000 (12:58 +0100)] 
This closes #50

20 months agoDelete catalog.xml support (including /v1/catalog/reset) 50/head
Aled Sage [Wed, 3 May 2017 10:19:39 +0000 (11:19 +0100)] 
Delete catalog.xml support (including /v1/catalog/reset)

20 months agoCloses #49
Geoff Macartney [Thu, 27 Apr 2017 13:01:26 +0000 (14:01 +0100)] 
Closes #49

Add check that path is not empty.

This avoids a panic in a case like br catalog add file://test.zip,
if you forget to add the path to the file, file:///some/path/test.zip.

20 months agoAdd check that path is not empty. 49/head
Geoff Macartney [Thu, 27 Apr 2017 09:45:41 +0000 (10:45 +0100)] 
Add check that path is not empty.

This avoids a panic in a case like br catalog add file://test.zip,
if you forget to add the path to the file, file:///some/path/test.zip.

20 months agoCloses #48
Geoff Macartney [Thu, 27 Apr 2017 09:44:38 +0000 (10:44 +0100)] 
Closes #48

Catalog add tweaks

Fixes items noted in #44

20 months agoCloses #47
Geoff Macartney [Tue, 25 Apr 2017 08:10:14 +0000 (09:10 +0100)] 
Closes #47

simpler go CLI project setup and tweaks to instructions for n00bs

20 months agodisplay nice error if argument is omitted 48/head
Alex Heneveld [Mon, 24 Apr 2017 14:11:22 +0000 (15:11 +0100)] 
display nice error if argument is omitted

20 months agoset content type to unknown to use auto-detect when posting to catalog
Alex Heneveld [Mon, 24 Apr 2017 14:06:35 +0000 (15:06 +0100)] 
set content type to unknown to use auto-detect when posting to catalog

(prevent reader error if the item is a zip)

20 months agobetter error message when server returns an error
Alex Heneveld [Mon, 24 Apr 2017 13:38:36 +0000 (14:38 +0100)] 
better error message when server returns an error

we need better error handling; this solves the thing I was wondering, which is where
was the exception coming from.

20 months agocorrectly handle file:// urls
Alex Heneveld [Mon, 24 Apr 2017 13:02:28 +0000 (14:02 +0100)] 
correctly handle file:// urls

20 months agoupdate description
Alex Heneveld [Mon, 24 Apr 2017 13:02:20 +0000 (14:02 +0100)] 
update description

20 months agoThis closes #44
Alex Heneveld [Mon, 24 Apr 2017 14:12:02 +0000 (15:12 +0100)] 
This closes #44

20 months agocode review 47/head
Alex Heneveld [Mon, 24 Apr 2017 12:30:40 +0000 (13:30 +0100)] 
code review

20 months agoimprove README instructions
Alex Heneveld [Mon, 24 Apr 2017 10:53:50 +0000 (11:53 +0100)] 
improve README instructions

- clearer for new users
- the checked-out folder is used (no need for a second copy)
- glide doesn't have to be on the path (it wasn't for me)
- release/build.sh can be used directly

20 months agoset sensible defaults (`.` is not a valid GOPATH)
Alex Heneveld [Mon, 24 Apr 2017 10:42:58 +0000 (11:42 +0100)] 
set sensible defaults (`.` is not a valid GOPATH)

21 months agoCloses #46
Geoff Macartney [Wed, 19 Apr 2017 08:38:56 +0000 (09:38 +0100)] 
Closes #46

Removed unused class

Fixes broken jenkins builds, introduced by #45 and https://github.com/apache/brooklyn-server/pull/637

21 months agoRemove test that was using removed deprecated code 46/head
Thomas Bouron [Wed, 19 Apr 2017 08:25:54 +0000 (09:25 +0100)] 
Remove test that was using removed deprecated code

21 months agoRemoved unused class
Thomas Bouron [Wed, 19 Apr 2017 08:15:08 +0000 (09:15 +0100)] 
Removed unused class

21 months agoCloses #45
Geoff Macartney [Tue, 18 Apr 2017 13:58:51 +0000 (14:58 +0100)] 
Closes #45

Remove deprecated REST API endpoints

This requires https://github.com/apache/brooklyn-server/pull/637

21 months agoFix unit tests and launcher config 45/head
Thomas Bouron [Fri, 14 Apr 2017 12:21:34 +0000 (13:21 +0100)] 
Fix unit tests and launcher config

21 months agoBump version to 0.12.0-SNAPSHOT
Richard Downer [Tue, 11 Apr 2017 15:13:49 +0000 (15:13 +0000)] 
Bump version to 0.12.0-SNAPSHOT

21 months agoAdded the ability to upload a zip via the CLI 44/head
graeme.miller [Wed, 5 Apr 2017 15:12:04 +0000 (16:12 +0100)] 
Added the ability to upload a zip via the CLI

21 months agoCloses #41
Svetoslav Neykov [Mon, 27 Mar 2017 12:39:05 +0000 (15:39 +0300)] 
Closes #41

Use the non-deprecated API method to upload catalog items

This requires https://github.com/apache/brooklyn-server/pull/485 to be merged first

21 months agoUse the non-deprecated API method to upload catalog items 41/head
Thomas Bouron [Fri, 24 Mar 2017 12:34:38 +0000 (12:34 +0000)] 
Use the non-deprecated API method to upload catalog items

22 months agolets BrooklynApi.getEntity understand some errors, and add better method
Alex Heneveld [Mon, 27 Feb 2017 13:16:29 +0000 (13:16 +0000)] 
lets BrooklynApi.getEntity understand some errors, and add better method

    getEntityOnSuccess which requires a success code from the server.

    triggered by observing downstream usages which use getEntity on results
    without checking them, and thus have an empty TaskSummary following a severe server error
    (the server error is lost and the code typically fails later with no indication of cause)

    also tidy deprecations/warnings, toString

22 months agoremove redundant pom metadata
Alex Heneveld [Mon, 27 Feb 2017 13:16:12 +0000 (13:16 +0000)] 
remove redundant pom metadata

23 months agoThis closes #39
Duncan Godwin [Wed, 15 Feb 2017 09:26:26 +0000 (09:26 +0000)] 
This closes #39

23 months agoadds flag for connecting to servers using self-sign ssl, fixing existing code that... 39/head
Robert Moss [Tue, 14 Feb 2017 15:44:23 +0000 (15:44 +0000)] 
adds flag for connecting to servers using self-sign ssl, fixing existing code that handles flags

23 months agoThis closes #37
Sam Corbett [Mon, 6 Feb 2017 14:58:15 +0000 (14:58 +0000)] 
This closes #37

Add missing @Override annotations and other cleanup

23 months agoAdd missing @Override annotation to method signatures overriding interface methods 37/head
Svetoslav Neykov [Fri, 20 Jan 2017 14:07:33 +0000 (16:07 +0200)] 
Add missing @Override annotation to method signatures overriding interface methods

23 months agoThis closes #38
Aled Sage [Mon, 23 Jan 2017 19:58:09 +0000 (19:58 +0000)] 
This closes #38

23 months agoExclude cli/.glide/* (cache) from rat + git 38/head
Aled Sage [Mon, 23 Jan 2017 18:51:28 +0000 (18:51 +0000)] 
Exclude cli/.glide/* (cache) from rat + git