community-catalog icon indicating copy to clipboard operation
community-catalog copied to clipboard

How do I test my catalogue entry?

Open errordeveloper opened this issue 8 years ago • 3 comments

I'd like to be able to spin up a cluster and install new version of my thing in at least semi-automated way (i.e. one or two commands). I am happy with Vagrant or any cloud or whatever is good place for doing this.

errordeveloper avatar Sep 29 '16 07:09 errordeveloper

To give an answer to the initial question "How do I test my catalogue entry?" first:

  • You can either log into your docker host machine and do something like docker-compose my-test-template.yml
  • Or within the Rancher UI, you can navigate to Stacks -> Add Stack and put your template file(s) in there to spin up your thing.
bildschirmfoto 2016-11-28 um 14 48 14

I don't know what you mean with the rest of your question, please be more specific if the answers above couldn't help you.

nevotheless avatar Nov 28 '16 13:11 nevotheless

@ununseptium Your approach would effectively test the docker-compose.yml and rancher-compose.yml but wouldn't help with the catalog-specific stuff like config.yml and answers.txt.

I will be submitting a PR with an additional catalog entry. I currently plan to test that PR by creating a brand new Rancher server, environment, and host a la Rancher on a laptop -- if there exists some kind of test suite which is superior to this approach, please let me know!

mathuin avatar Dec 29 '16 18:12 mathuin

When I've opened this issue, is some kind of automated test I could run to validate changes... In fact, I'd be quite happy with linter script of sorts too.

errordeveloper avatar Feb 02 '17 20:02 errordeveloper