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
Implement label.get_labels, core.enable_plugin and core.disable_plugin #40
Conversation
Thanks for your PR @relvacode! See https://github.com/gdm85/go-libdeluge/pull/39/files for example: first I add the method in So there are always actually 2 tests: an integration test which talks to the real Deluge daemon (both v1 and v2) and a mocked test that uses the synthetic bytes payload. |
…labels; added LabelPlugin.GetLabels test
I think I've added all that's needed @gdm85, I've also added the method to delugecli as well. Let me know if I should change something |
The GitHub build is failing in my fork. Presumably this is because the Would need some mechanism for the integration test to create
|
That should be relatively easy to accomplish with some changes to scripts/deluge-install.sh, for example for v2 the
However I think that a better approach would be to implement Would you like to add those as well? Otherwise I can do it. |
Yeah that sounds useful. I can do that |
… in integration printServerResponse
Okay that should be it @gdm85 the build passes for me. Note I had to change https://github.com/relvacode/go-libdeluge/blob/feature/label.get_labels/integration/integration_test.go#L212 to use the most recent RPC call (as the plugin test will have >0 RPC calls before |
Thanks @relvacode; there is something odd there happening in the defer, I left some comments. |
…hronous wait for plugin enabled
Implement the
label.get_labels
RPC method.I'm happy to add a test if you can guide me how to construct the hex payload for the mock client