Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AgentRPC takes agent via an interface #1408

Closed
wants to merge 1 commit into from

Conversation

njbennett
Copy link

We're working on some code that interacts with the agent via RPC. For tests of this client, it is useful to mock out the Agent, but still lean on the AgentRPC.

This change enables us to pass a mock Agent object into the AgentRPC constructor.

cc @rosenhouse

- Enables mocking the agent
@slackpad slackpad added the type/enhancement Proposed improvement or new feature label Jan 8, 2016
@slackpad slackpad self-assigned this Jan 8, 2016
@slackpad
Copy link
Contributor

Hi @njbennett sorry for the late reply on this one! This is a pretty low-level interface and not really intended for use by other applications. Are you using the AgentRPC directly in your app and not the HTTP endpoints?

@rosenhouse
Copy link

cc: @ryanmoran @zankich you guys are maintaining Consul Release now, right?

@rosenhouse
Copy link

@slackpad The functionality we needed (rotating encryption keys) is not available in the HTTP API. In #1368 we were told that RPC interface was not internal.

@slackpad
Copy link
Contributor

@rosenhouse ah ok now I understand the full context. This RPC interface should eventually be replaced by HTTP endpoints, so I'd like to avoid adding more public stuff related to it (we will give a clear heads up before we deprecate anything). Would you have any issues switching to an HTTP endpoint if that was available? I'd prefer to not merge this and focus on that instead.

@ryanmoran
Copy link

@slackpad speaking on behalf of @rosenhouse we would prefer to only interact with consul over HTTP if that were possible. We were only using the RPC client out of necessity.

@slackpad
Copy link
Contributor

@ryanmoran ok thanks - I'll close this against #1867 which tracks adding an HTTP endpoint for this.

@slackpad slackpad closed this Mar 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Proposed improvement or new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants