terraform-provider-octopus icon indicating copy to clipboard operation
terraform-provider-octopus copied to clipboard

acceptance tests

Open josephholsten opened this issue 7 years ago ā€¢ 12 comments

With most providers, the only really reliable tests are acc tests. We should at least get some basic tests up.

What's the easiest way to throw up an octopus server?

josephholsten avatar Jun 21 '17 22:06 josephholsten

Looks like https://github.com/DimensionDataDevOps/cookbook-octopus is deprecated in favor of https://github.com/OctopusDeploy/OctopusDSC, anyone used that?

josephholsten avatar Jun 21 '17 22:06 josephholsten

oh, if we wanted to use chef, there's always https://github.com/cvent/octopus-deploy-cookbook.

josephholsten avatar Jun 21 '17 22:06 josephholsten

Meh, tomayto-tomato. We can make it work with any of those. Costs money for a virtual server to run the acceptance tests. I'd be willing to stump up some cash for that but only if the CI that actually runs acceptance tests is throttled to a limited number of runs per day and the server is created / destroyed on each run (could get expensive otherwise).

tintoy avatar Jun 22 '17 07:06 tintoy

@tintoy then it might make more sense to just build an image instead of configuring from scratch every time. So https://github.com/beaudryj/octo-box

Got any preference for hosting?

josephholsten avatar Jun 22 '17 13:06 josephholsten

Hmm - probably Azure; I'll look into whipping up TF configuration for it this weekend.

On Thu, 22 Jun. 2017, 11:39 pm Joseph Anthony Pasquale Holsten, < [email protected]> wrote:

@tintoy https://github.com/tintoy then it might make more sense to just build an image instead of configuring from scratch every time. So https://github.com/beaudryj/octo-box

Got any preference for hosting?

ā€” You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/terra-farm/terraform-octopus/issues/3#issuecomment-310382931, or mute the thread https://github.com/notifications/unsubscribe-auth/ABkezG8EUcD_dqnPT1KjQAxIjeHBjMhuks5sGm6DgaJpZM4OBmpZ .

tintoy avatar Jun 22 '17 19:06 tintoy

Ok, I'm going to build a config for acceptance tests this afternoon.

tintoy avatar Jun 24 '17 22:06 tintoy

Still working on this, BTW, but work is a little hectic for the next week or so. Will try to finish it off as soon as I get the time :)

tintoy avatar Jul 03 '17 02:07 tintoy

I'm not sure what the current status is of this project, if still alive and kicking then it may be worth considering the Octopus marketplace app: https://azuremarketplace.microsoft.com/en-us/marketplace/apps/octopus.octopusdeploy

fenneh avatar Mar 30 '18 02:03 fenneh

Iā€™m not actively doing any work on the provider. @fenneh are you wanting anything improved? Do you need any help to be able to contribute?

josephholsten avatar Mar 30 '18 02:03 josephholsten

@josephholsten - Was toying with the idea of writing something from scratch and came across this. Will bang in a PR if I get the time to sit down and do something worthwhile.

fenneh avatar Apr 27 '18 21:04 fenneh

@fenneh awesome! And honestly, if you think something from scratch would be better, have at it. Alive and usable is always better than dead and backwards-compatible.

josephholsten avatar Apr 28 '18 01:04 josephholsten

Hi - sorry, I've been flat-out on a bunch of other projects so I never got around to organising hosting for the acceptance tests to run. I'm wondering whether it's perhaps worth using something like Vagrant so whoever needs to run the tests can do so locally? Doing acceptance tests as part of CI is going to cost money unfortunately šŸ˜ž

I'd love to see someone pick this up and run with it (other time commitments mean I just don't have time to give this the attention it deserves but I'd be happy to pitch in if anyone else is interested in driving it forwards).

tintoy avatar May 03 '18 07:05 tintoy