Next revision | Previous revision |
qa:testing_a_tarball [2024/09/26 15:56] – created sandbergja | qa:testing_a_tarball [2024/12/19 09:48] (current) – [Using docker or podman] sandbergja |
---|
- Copy the tarball you wish to test into this generic-tarball directory. | - Copy the tarball you wish to test into this generic-tarball directory. |
- Edit the vars.yml file. There is a line that says ''evergreen_version''. Change this version to match the Evergreen version of your tarball. | - Edit the vars.yml file. There is a line that says ''evergreen_version''. Change this version to match the Evergreen version of your tarball. |
- ''docker build --add-host public.localhost:127.0.1.2 --add-host public:127.0.1.2 --add-host private.localhost:127.0.1.3 --add-host private:127.0.1.3 . -t eg | - ''%%docker build --add-host public.localhost:127.0.1.2 --add-host public:127.0.1.2 --add-host private.localhost:127.0.1.3 --add-host private:127.0.1.3 . -t eg:tarball-testing --no-cache%%'' (this will take several minutes) |
:tarball-testing'' (this will take several minutes) | - ''%%docker run -it -p 80:80 -p 443:443 -p 210:210 -p 6001:6001 -p 32:22 -p 5433:5432 -h app.evergreen.com --name my-testing-eg-tarball eg:tarball-testing%%'' (this will also take several minutes) |
- ''docker run -it -p 80:80 -p 443:443 -p 210:210 -p 6001:6001 -p 32:22 -p 5433:5432 -h app.evergreen.com --name my-testing-eg-tarball eg:tarball-testing'' (this will also take several minutes) | |
- In your browser, go to http://localhost and confirm that the public catalog and staff catalog are working | - In your browser, go to http://localhost and confirm that the public catalog and staff catalog are working |
- In a new terminal window, run the automated tests with ''docker exec -it my-testing-eg-tarball ansible-playbook -e hosts=127.0.0.1 /egconfigs/run_tests.yml''. It will give a short report at the end. ok, changed, skipped, and ignored items are expected, but failed means that one or more of our automated tests failed on the copy of the code within your tarball, which likely merits further investigation. Try running that test by itself to try to isolate the issue. | - In a new terminal window, run the automated tests with ''docker exec -it my-testing-eg-tarball ansible-playbook -e hosts=127.0.0.1 /egconfigs/run_tests.yml''. It will give a short report at the end. ok, changed, skipped, and ignored items are expected, but failed means that one or more of our automated tests failed on the copy of the code within your tarball, which likely merits further investigation. Try running that test by itself to try to isolate the issue. |