changeset 273:84d4e3e9d77a

Use command channel version 0.0.1 rather than v1 Reviewed-by: jkang Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-October/025547.html
author Andrew Azores <aazores@redhat.com>
date Thu, 26 Oct 2017 10:41:29 -0400
parents b35a283eb016
children bdbc30b9f43c
files mock-api/endpoints/jvm-byteman.endpoint.js mock-api/endpoints/kill-vm.command.endpoint.js mock-api/endpoints/ping.command.endpoint.js src/app/components/jvm-info/byteman/byteman.service.js src/app/components/jvm-info/byteman/byteman.service.spec.js src/app/components/jvm-info/kill-vm.service.js
diffstat 6 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/mock-api/endpoints/jvm-byteman.endpoint.js	Thu Oct 26 09:47:58 2017 -0400
+++ b/mock-api/endpoints/jvm-byteman.endpoint.js	Thu Oct 26 10:41:29 2017 -0400
@@ -55,7 +55,7 @@
 
   // command channel
   server.init('byteman-command');
-  server.app.ws('/commands/v1/actions/byteman/systems/:systemId/agents/:agentId/jvms/:jvmId/sequence/:seqId', function (ws, req) {
+  server.app.ws('/commands/0.0.1/actions/byteman/systems/:systemId/agents/:agentId/jvms/:jvmId/sequence/:seqId', function (ws, req) {
     server.logRequest('byteman-command', req);
     ws.on('message', function (msg) {
       ws.send(JSON.stringify(
--- a/mock-api/endpoints/kill-vm.command.endpoint.js	Thu Oct 26 09:47:58 2017 -0400
+++ b/mock-api/endpoints/kill-vm.command.endpoint.js	Thu Oct 26 10:41:29 2017 -0400
@@ -1,6 +1,6 @@
 function killVm (server) {
   server.init('kill-vm-command');
-  server.app.ws('/commands/v1/actions/kill_vm/systems/:systemId/agents/:agentId/jvms/:jvmId/sequence/:seqId', function (ws, req) {
+  server.app.ws('/commands/0.0.1/actions/kill_vm/systems/:systemId/agents/:agentId/jvms/:jvmId/sequence/:seqId', function (ws, req) {
     server.logRequest('kill-vm-command', req);
     ws.on('message', function (msg) {
       ws.send(JSON.stringify(
--- a/mock-api/endpoints/ping.command.endpoint.js	Thu Oct 26 09:47:58 2017 -0400
+++ b/mock-api/endpoints/ping.command.endpoint.js	Thu Oct 26 10:41:29 2017 -0400
@@ -1,6 +1,6 @@
 function pingCommand (server) {
   server.init('ping-command');
-  server.app.ws('/commands/v1/actions/ping/systems/:systemId/agents/:agentId/jvms/:jvmId/sequence/:seqId', function (ws, req) {
+  server.app.ws('/commands/0.0.1/actions/ping/systems/:systemId/agents/:agentId/jvms/:jvmId/sequence/:seqId', function (ws, req) {
     server.logRequest('ping-command', req);
     ws.on('message', function (msg) {
       ws.send(JSON.stringify(
--- a/src/app/components/jvm-info/byteman/byteman.service.js	Thu Oct 26 09:47:58 2017 -0400
+++ b/src/app/components/jvm-info/byteman/byteman.service.js	Thu Oct 26 10:41:29 2017 -0400
@@ -120,7 +120,7 @@
 
       let path = urlJoin(
         'commands',
-        'v1',
+        '0.0.1',
         'actions',
         'byteman',
         'systems',
--- a/src/app/components/jvm-info/byteman/byteman.service.spec.js	Thu Oct 26 09:47:58 2017 -0400
+++ b/src/app/components/jvm-info/byteman/byteman.service.spec.js	Thu Oct 26 10:41:29 2017 -0400
@@ -144,7 +144,7 @@
       svc.loadRule('foo-systemId', 'foo-jvmId', 'fake rule').then(res => {
         cmdChan.sendMessage.should.be.calledOnce();
         cmdChan.sendMessage.should.be.calledWith(
-          'commands/v1/actions/byteman/systems/foo-systemId/agents/foo-agentId/jvms/foo-jvmId/sequence/5',
+          'commands/0.0.1/actions/byteman/systems/foo-systemId/agents/foo-agentId/jvms/foo-jvmId/sequence/5',
           {
             'byteman-action': 0,
             'byteman-rule': 'fake rule',
@@ -183,7 +183,7 @@
       svc.loadRule('foo-systemId', 'foo-jvmId', 'fake rule').then(res => {
         cmdChan.sendMessage.should.be.calledOnce();
         cmdChan.sendMessage.should.be.calledWith(
-          'commands/v1/actions/byteman/systems/foo-systemId/agents/foo-agentId/jvms/foo-jvmId/sequence/5',
+          'commands/0.0.1/actions/byteman/systems/foo-systemId/agents/foo-agentId/jvms/foo-jvmId/sequence/5',
           {
             'byteman-action': 0,
             'byteman-rule': 'fake rule',
@@ -228,7 +228,7 @@
       svc.unloadRules('foo-systemId', 'foo-jvmId').then(res => {
         cmdChan.sendMessage.should.be.calledOnce();
         cmdChan.sendMessage.should.be.calledWith(
-          'commands/v1/actions/byteman/systems/foo-systemId/agents/foo-agentId/jvms/foo-jvmId/sequence/5',
+          'commands/0.0.1/actions/byteman/systems/foo-systemId/agents/foo-agentId/jvms/foo-jvmId/sequence/5',
           {
             'byteman-action': 1,
             'listen-port': 9999,
--- a/src/app/components/jvm-info/kill-vm.service.js	Thu Oct 26 09:47:58 2017 -0400
+++ b/src/app/components/jvm-info/kill-vm.service.js	Thu Oct 26 10:41:29 2017 -0400
@@ -39,7 +39,7 @@
   getPath (systemId, agentId, jvmId) {
     return urlJoin(
       'commands',
-      'v1',
+      '0.0.1',
       'actions',
       'kill_vm',
       'systems',