Skip to content

Commit

Permalink
Switch 3.fir to 3.sdk (#3044)
Browse files Browse the repository at this point in the history
  • Loading branch information
eablack authored Oct 17, 2024
1 parent 090c1a8 commit 82372c1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/commands/spaces/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default class Index extends Command {
const {team, json} = flags
let {body: spaces} = await this.heroku.get<SpaceArray>('/spaces', {
headers: {
Accept: 'application/vnd.heroku+json; version=3.fir',
Accept: 'application/vnd.heroku+json; version=3.sdk',
},
})
if (team) {
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/src/commands/telemetry/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ export default class Index extends Command {
if (app) {
const {body: appTelemetryDrains} = await this.heroku.get<TelemetryDrains>(`/apps/${app}/telemetry-drains`, {
headers: {
Accept: 'application/vnd.heroku+json; version=3.fir',
Accept: 'application/vnd.heroku+json; version=3.sdk',
},
})
this.display(appTelemetryDrains, 'App')
} else if (space) {
const {body: spaceTelemetryDrains} = await this.heroku.get<TelemetryDrains>(`/spaces/${space}/telemetry-drains`, {
headers: {
Accept: 'application/vnd.heroku+json; version=3.fir',
Accept: 'application/vnd.heroku+json; version=3.sdk',
},
})
this.display(spaceTelemetryDrains, 'Space')
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/telemetry/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default class Info extends Command {

const {body: telemetryDrain} = await this.heroku.get<TelemetryDrain>(`/telemetry-drains/${telemetry_drain_id}`, {
headers: {
Accept: 'application/vnd.heroku+json; version=3.fir',
Accept: 'application/vnd.heroku+json; version=3.sdk',
},
})
this.display(telemetryDrain)
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/test/unit/commands/telemetry/index.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('telemetry:index', function () {
})

it('shows space telemetry drains', async function () {
nock('https://api.heroku.com', {reqheaders: {Accept: 'application/vnd.heroku+json; version=3.fir'}})
nock('https://api.heroku.com', {reqheaders: {Accept: 'application/vnd.heroku+json; version=3.sdk'}})
.get(`/spaces/${spaceId}/telemetry-drains`)
.reply(200, spaceTelemetryDrains)

Expand All @@ -42,7 +42,7 @@ describe('telemetry:index', function () {
})

it('shows app telemetry drains', async function () {
nock('https://api.heroku.com', {reqheaders: {Accept: 'application/vnd.heroku+json; version=3.fir'}})
nock('https://api.heroku.com', {reqheaders: {Accept: 'application/vnd.heroku+json; version=3.sdk'}})
.get(`/apps/${appId}/telemetry-drains`)
.reply(200, appTelemetryDrains)

Expand Down
4 changes: 2 additions & 2 deletions packages/cli/test/unit/commands/telemetry/info.unit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe('telemetry:info', function () {
})

it('shows info for space telemetry drain', async function () {
nock('https://api.heroku.com', {reqheaders: {Accept: 'application/vnd.heroku+json; version=3.fir'}})
nock('https://api.heroku.com', {reqheaders: {Accept: 'application/vnd.heroku+json; version=3.sdk'}})
.get(`/telemetry-drains/${spaceTelemetryDrain.id}`)
.reply(200, spaceTelemetryDrain)

Expand All @@ -64,7 +64,7 @@ describe('telemetry:info', function () {
})

it('shows info for app telemetry drains', async function () {
nock('https://api.heroku.com', {reqheaders: {Accept: 'application/vnd.heroku+json; version=3.fir'}})
nock('https://api.heroku.com', {reqheaders: {Accept: 'application/vnd.heroku+json; version=3.sdk'}})
.get(`/telemetry-drains/${appTelemetryDrain.id}`)
.reply(200, appTelemetryDrain)

Expand Down

0 comments on commit 82372c1

Please sign in to comment.