Skip to content

Commit

Permalink
use /data endpoints instead of /client endpoints (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcrayford committed Jan 4, 2017
1 parent 82a99ea commit 504785e
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion commands/credentials_rotate.js
Expand Up @@ -11,7 +11,7 @@ function * credentialsRotate (context, heroku) {
yield withCluster(heroku, context.app, context.args.CLUSTER, function * (addon) {
let response = yield request(heroku, {
method: 'POST',
path: `/client/kafka/${VERSION}/clusters/${addon.id}/rotate-credentials`
path: `/data/kafka/${VERSION}/clusters/${addon.id}/rotate-credentials`
})

cli.log(response.message)
Expand Down
2 changes: 1 addition & 1 deletion commands/fail.js
Expand Up @@ -19,7 +19,7 @@ function * fail (context, heroku) {
catastrophic: context.flags.catastrophic,
zookeeper: context.flags.zookeeper
},
path: `/client/kafka/${VERSION}/clusters/${addon.id}/induce-failure`
path: `/data/kafka/${VERSION}/clusters/${addon.id}/induce-failure`
})
}))

Expand Down
2 changes: 1 addition & 1 deletion commands/jmx.js
Expand Up @@ -26,7 +26,7 @@ function * jmx (context, heroku) {
body: {
enabled: enabled
},
path: `/client/kafka/${VERSION}/clusters/${addon.id}/jmx`
path: `/data/kafka/${VERSION}/clusters/${addon.id}/jmx`
})
}))
})
Expand Down
2 changes: 1 addition & 1 deletion commands/upgrade.js
Expand Up @@ -25,7 +25,7 @@ function * upgradeCluster (context, heroku) {
body: {
version: context.flags.version
},
path: `/client/kafka/${VERSION}/clusters/${addon.id}/upgrade`
path: `/data/kafka/${VERSION}/clusters/${addon.id}/upgrade`
})

cli.action.done('started.\n\n')
Expand Down
2 changes: 1 addition & 1 deletion commands/zookeeper.js
Expand Up @@ -31,7 +31,7 @@ function * zookeeper (context, heroku) {
body: {
enabled: enabled
},
path: `/client/kafka/${VERSION}/clusters/${addon.id}/zookeeper`
path: `/data/kafka/${VERSION}/clusters/${addon.id}/zookeeper`
})
}))
})
Expand Down
2 changes: 1 addition & 1 deletion lib/clusters.js
Expand Up @@ -24,7 +24,7 @@ HerokuKafkaClusters.prototype.waitStatus = function * (addon) {
return null
}
var response = yield this.request({
path: `/client/kafka/${VERSION}/clusters/${addon.id}/wait_status`
path: `/data/kafka/${VERSION}/clusters/${addon.id}/wait_status`
}).catch(function (err) {
if (err.statusCode === 410) {
return Object.assign({ 'deprovisioned?': true }, errorResponse)
Expand Down
2 changes: 1 addition & 1 deletion test/commands/credentials_rotate_test.js
Expand Up @@ -26,7 +26,7 @@ describe('kafka:credentials', () => {
let kafka

let credentialsUrl = (cluster) => {
return `/client/kafka/v0/clusters/${cluster}/rotate-credentials`
return `/data/kafka/v0/clusters/${cluster}/rotate-credentials`
}

beforeEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion test/commands/fail_test.js
Expand Up @@ -36,7 +36,7 @@ describe('kafka:fail', () => {
let kafka

let failUrl = (cluster) => {
return `/client/kafka/v0/clusters/${cluster}/induce-failure`
return `/data/kafka/v0/clusters/${cluster}/induce-failure`
}

beforeEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion test/commands/jmx_test.js
Expand Up @@ -26,7 +26,7 @@ describe('kafka:jmx', () => {
let kafka

let configUrl = (cluster) => {
return `/client/kafka/v0/clusters/${cluster}/jmx`
return `/data/kafka/v0/clusters/${cluster}/jmx`
}

beforeEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion test/commands/upgrade_test.js
Expand Up @@ -36,7 +36,7 @@ describe('kafka:upgrade', () => {
let kafka

let upgradeUrl = (cluster) => {
return `/client/kafka/v0/clusters/${cluster}/upgrade`
return `/data/kafka/v0/clusters/${cluster}/upgrade`
}

beforeEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion test/commands/wait_test.js
Expand Up @@ -30,7 +30,7 @@ const cmd = proxyquire('../../commands/wait', {
describe('kafka:wait', () => {
let kafka
let waitUrl = (cluster) => {
return `/client/kafka/v0/clusters/${cluster}/wait_status`
return `/data/kafka/v0/clusters/${cluster}/wait_status`
}

beforeEach(() => {
Expand Down
2 changes: 1 addition & 1 deletion test/commands/zookeeper_test.js
Expand Up @@ -27,7 +27,7 @@ describe('kafka:zookeeper', () => {
let kafka

let configUrl = (cluster) => {
return `/client/kafka/v0/clusters/${cluster}/zookeeper`
return `/data/kafka/v0/clusters/${cluster}/zookeeper`
}

beforeEach(() => {
Expand Down

0 comments on commit 504785e

Please sign in to comment.