Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Added documented fields to provision payload #84

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

beardyman
Copy link

No description provided.

@beardyman
Copy link
Author

Closes #83

@@ -281,9 +282,11 @@ def call!
:heroku_id => heroku_id,
:plan => data[:plan] || 'test',
:callback_url => callback,
:log_input_url => "https://token:[email protected]/logs",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this field is not actually always present, but I think we should add a test case that runs for add-ons which have this enabled.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bjeanes yep, that's correct. The log_input_url value is only sent in the payload if the add-on service has log_input in its manifest: https://devcenter.heroku.com/articles/add-on-provider-log-integration#setup

What would the test case for sending log_input_url cover? That the provisioning service accepts the request including log_input_url without issue?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, basically just that.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the description in that link creates a structure(in the manifest) of
{ "api": { "requires": [ "log_input" ] } }
Is that correct? I'm new to add ons, so I've never seen it before.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nornholdj that's correct.

@mathias
Copy link
Contributor

mathias commented Mar 1, 2019

Hello! Have you tried https://github.com/heroku/heroku-cli-addons-admin ? Kensa is mostly deprecated, and I'd like to close this PR if the new CLI plugin works for you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants