Comments (12)
@ESamir Do we have an official docker image we can use here?
from ansible-elasticsearch.
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.
@strootman maybe of interest.
from ansible-elasticsearch.
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.
neillturner/kitchen-ansible#116
from ansible-elasticsearch.
The above is simpler and i believe will deliver what we need
from ansible-elasticsearch.
Much simpler 👍
from ansible-elasticsearch.
This is needed prior to any further work on improving plugin #84
from ansible-elasticsearch.
Working on.
from ansible-elasticsearch.
Maybe use molecule to test idempotency?
from ansible-elasticsearch.
from ansible-elasticsearch.
#267 closes this issue.
from ansible-elasticsearch.
Related Issues (20)
- Failure in "Debian - Ensure elasticsearch is installed" HOT 4
- FR: Install Elasticsearch-plugins with this role HOT 2
- Wrong elasticsearch.keystore permissions forbid elasticsearch.service from starting HOT 6
- issue with "could not find java in bundled JDK" HOT 2
- Does not accept static IP config Eg: transport.host: <hostname>" HOT 2
- gpg dependencies missing HOT 3
- Segmentation fault in JNA library due to non-existent home directory for elasticsearch user HOT 2
- Specifying `path.data` as a list is deprecated in Elasticsearch 7.13 HOT 2
- Turn on systemd on OracleLinux HOT 2
- kibana connect to elastic HOT 1
- Bootstrapping a new/additional instance with activated security fails HOT 1
- Single node cluster configuration HOT 2
- Playbook not working with rh8 HOT 3
- filter_plugins/custom.py is skipped when ansible is installed through pip HOT 2
- Hacktoberfest participation
- ssl-tls-setup.md should point to location of bin/elasticsearch-certutil HOT 2
- Role fails when pointed to es_ssl_keystore / es_ssl_truststore using CA and Cert created with bin/elasticsearch-certutil HOT 4
- Upload pem certs from local to remote
- Safe options for log4j2 - CVE-2021-44228 HOT 4
- How to remove always tag HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-elasticsearch.