containous / traefik-extra-service-fabric

Traefik extra: Service Fabric Provider
Apache License 2.0
12 stars 14 forks source link

Provide easy way to test Traefik Provider against Service Fabric with Docker #21

Closed lawrencegripper closed 5 years ago

lawrencegripper commented 6 years ago

This PR adds a simple way to start a cluster inside a docker image, with apps running, to test the behavior of the provider.

Related to #7

ldez commented 6 years ago

To be consistent with Træfik could you rename integrationtesting/ to integration/ ?

lawrencegripper commented 6 years ago

Done, I've added a note to the readme.md as you need to add the following to your docker daemon settings for the cluster to behave:

{
    "ipv6": true,
    "fixed-cidr-v6": "fd00::/64"
}
lawrencegripper commented 6 years ago

@ldez I've been looking at the existing integration tests in the Traefik repo and could use some guidance.

Would you preference be for me to use github.com/libkermit/compose/check to start the SF docker image running the cluster then start the traefik binary?

My first thought was to write a test which starts the container then invoke the provide function on the sf provider and ensure the configuration returned was as expected. I'd also like to write a further test where labels are then altered using the SF API and validate the configuration change is picked up. Does this sound like a good plan?

To keep things simple I'm considering just using exec to invoke a bash script

lawrencegripper commented 5 years ago

Closing as stale and very out of date now