Skip to content

Improvement of how to contribute testing, local setup. #1703

@Nikolajls

Description

@Nikolajls

So I'm trying to contribute two issues that I'd like to be fixed, both are fairly small.
One of them being :
#1699

But the contribution guide and the repo itself does not really indicate how to setup for contribs in regards to testing.
https://github.com/streamnative/pulsarctl/blob/master/CONTRIBUTING.md

I'm running on windows though but I still miss a lot of information on how to run the test locally.
Just zooming in on a specific test case for subscription create:
image
When executing a specific test case it reads from my config of my normal pulsarctl installation located in %home.config\pulsar\config and reads the current-context and tries to use it (and fails due to cred files being somewhere else).
This seems like its trying to work on actual cluster

If i remove current-context then it defaults to a localhost URL - however its not really documented how to setup the repo/ code for testing - so I cant really make sure it works in any way yet.

I would have hoped that the pulsar cluster and such was stubbed out for easier testing, but its not so would love to see some addition to how to contribute besides the git part.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions