Giter Site home page Giter Site logo

Comments (3)

munnerz avatar munnerz commented on August 9, 2024

In the Etcd case, it'd be great to also get access to the URL that has been selected.

Currently, there's no way to take advantage of the auto generated client URL without using the ControlPlane structure, as processState is not exported and is what contains the URL (the field is not copied back to the Etcd struct after generation right now).

from testing_frameworks.

totherme avatar totherme commented on August 9, 2024

I've begun a little exploration of what this might look like here. Comments very welcome!

from testing_frameworks.

hoegaarden avatar hoegaarden commented on August 9, 2024

@munnerz I did the same exploration as @totherme but with a bit of a different approach. I took your words literally and, after defaulting, copy certain interesting things back from the ProcessState to the actual struct (APIServer & Etcd)

Comparing this implementation with @totherme's I see the following pros and cons:

  • Pro: not changing the public interface too much (only adding the optional io.Writers for Std{Out,Err}
  • Con: Having somewhat strange "pointer magick" for the copy-back of interesting things

@munnerz which one do you prefer?

To compare the two approaches, here are the diffs for both:

from testing_frameworks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.