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

Run specs through docker image #2

Open
solsson opened this issue Dec 15, 2015 · 2 comments
Open

Run specs through docker image #2

solsson opened this issue Dec 15, 2015 · 2 comments

Comments

@solsson
Copy link
Contributor

solsson commented Dec 15, 2015

Two benefits if Testbeat can run from docker image:

  • No need for gem install this and that
  • Can test a dockerized service using a link

Will it also be able to test a service by name in the host's hosts file? If so there's not many drawbacks.

Specs can be for example /spec/*_spec.rb by default, overridable with env. /spec can be COPY'd to in a downstream Dockerfile, or simply mounted as volume.

NODE is no longer a good name, and maybe never was, for the System Under Test. In contexts of Docker or Kubernetes it is rather a Service. We can keep the NODE env for backwards compatibility but use something else to name the link. svc or service or sut or target

solsson pushed a commit to solsson/dockerfiles that referenced this issue Dec 15, 2015
solsson pushed a commit to solsson/dockerfiles that referenced this issue Dec 15, 2015
@solsson
Copy link
Contributor Author

solsson commented Apr 29, 2016

Docker scenarios tend to involve multiple services on different hostnames; a poor fit for the NODE concept in testbeat that sort of assumes that tests and assertions target the same VM.

For a docker concept to be worthwhile we might have to add a host/service argument in the spec syntax, in describes.

@takesson
Copy link
Contributor

takesson commented May 1, 2016

I would like to avoid that. Suggest combination of:

  • Tests apply to a single service (which might have back-end containers). No problem.
  • Tests apply to a whole system which is accessed through a single proxy. No problem.

Testing multiple different services can be done in separate test runs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants