Skip to content

robertcheramy/oxidized-integrationtests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oxidized-integrationtests

This repository contains integration tests for oxidized. It is primary targetet for my own use, so the documentation is not very pretty. Feel free to use it if you want, don't expect much support.

Run

To run all tests in paralell, you could in theory just start make run. Note that this may take some time and ressources AND it may not work.

You probably prefer to build images once (make images or rebuild images as needed (cd images; make debian_install.rebuild), and run one pod at a time (cd pods/linux-install; make setup; make run).

Don't forget to make stop after running your pod to clean the rights in the filesystem (official-docker).

linux-install

Different linux distributions as you would intall them from Oxidized instructions, with an nginx and a lighttpd web-proxy.

Choose the Distribution you want to run in pods/linux-install/docker-compose.yml

Tests

official docker

Official docker container with the githubrepo hook.

Git server public keys

To enable Oxidized to access the Git server, you'll need to retrieve the servers' public SSH keys and store them under oxidized-ssh/known_hosts. Without this, you will encounter the following error:

ERROR -- : Hook push_to_remote (#<GithubRepo:0x00007f4cff47d918>) failed (#<Rugged::SshError: invalid or unknown remote ssh hostkey>) for event :post_store

While the container environment is running (make start), open a separate shell and run (from pods/official-docker/):

make gitserver-getkey

You don't need to restart the container environment; Oxidized will automatically use the key the next time it pushes to the remote Git repository.

Tests:

About

Integration tests for oxidized

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published