Coder Social home page Coder Social logo

Comments (12)

gingerwizard avatar gingerwizard commented on June 22, 2024

@ESamir Do we have an official docker image we can use here?

from ansible-elasticsearch.

electrical avatar electrical commented on June 22, 2024

This is indeed an important test, I'm only afraid that your proposed idea will give a lot of overhead maintaining wise.
If we could spend time on extending beaker then it will be much easier i think.

from ansible-elasticsearch.

gingerwizard avatar gingerwizard commented on June 22, 2024

@strootman maybe of interest.

from ansible-elasticsearch.

strootman avatar strootman commented on June 22, 2024

So, the kitchen lifecycle is in order: destroy, create, converge, setup, verify, destroy.
As @gingerwizard pointed out in #57, running test with a regex expression will destroy each container before proceeding to the next test.
I would have to test this out, but here is my proposal.
You would have 2 suites; one to set up and one to test the idempotency. The setup suite would specify an driver_config.instance_name: "setup" and it would set the appropriate volumes on that named container; driver_config.volume: - [CONF_DIR].

- name: setup_suite 
  ...
  driver_config:
    instance_name: setup
    volume:
       - [CONF_DIR]
       - [ES_HOME]
       - etc

Then, the second suite would use volumes_from: setup.

You would have to run these suites together with a kitchen verify to prevent the tests from tearing the container down between each test.
I've successfully tested the overriding of driver_config at the suite level. Also, if needed, you can limit the platforms you test with in the suite as well.

Like I said, I have not tested this out. And I won't be able to get to it until after next week.
If nobody gets to it before I do, I'll report back!

from ansible-elasticsearch.

gingerwizard avatar gingerwizard commented on June 22, 2024

neillturner/kitchen-ansible#116

from ansible-elasticsearch.

gingerwizard avatar gingerwizard commented on June 22, 2024

The above is simpler and i believe will deliver what we need

from ansible-elasticsearch.

strootman avatar strootman commented on June 22, 2024

Much simpler 👍

from ansible-elasticsearch.

gingerwizard avatar gingerwizard commented on June 22, 2024

This is needed prior to any further work on improving plugin #84

from ansible-elasticsearch.

gingerwizard avatar gingerwizard commented on June 22, 2024

Working on.

from ansible-elasticsearch.

bbaassssiiee avatar bbaassssiiee commented on June 22, 2024

Maybe use molecule to test idempotency?

from ansible-elasticsearch.

gingerwizard avatar gingerwizard commented on June 22, 2024

#267

from ansible-elasticsearch.

gingerwizard avatar gingerwizard commented on June 22, 2024

#267 closes this issue.

from ansible-elasticsearch.

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.