Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smoke Tests #3

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Smoke Tests #3

wants to merge 3 commits into from

Conversation

rtaylorzfin
Copy link
Owner

@rtaylorzfin rtaylorzfin commented Nov 2, 2022

Made some changes to be able to run smoke tests on docker. This is not really the correct way to run these tests, but it gives an example of some of the issues that you run into when testing:

  1. The domain is normally set to zfin.org for the docker container. That can cause problems in tests and other places. Not sure of the best solution. Here, I manually set it to cell-mac.zfin.org and then configure /etc/hosts file to resolve that correctly.

  2. There are references to NON_SECUREPORT and SECUREPORT. I'm not sure if those are necessary anymore or just historical artifacts. I don't think the current docker config exposes a non-secure port for the tomcat container.

  3. The ant logic for setting "isproduction" is based on the DBNAME, which is zfindb by default for docker--so "isproduction" gets set to true. I changed some logic so I could run 'ant -Disproduction=false runSmokeTests'. Though, there might be a better way of doing this.

Made some changes to be able to run smoke tests on docker.  This is not really the correct way to run these tests, but it gives an example of some of the issues that you run into when testing:

1. The domain is normally set to zfin.org for the docker container.  That can cause problems in tests and other places.  Not sure of the best solution.  Here, I manually set it to cell-mac.zfin.org and then configure /etc/hosts file to resolve that correctly.

2. There are references to NON_SECUREPORT and SECUREPORT. I'm not sure if those are necessary anymore.  I don't think the current docker config exposes a non-secure port for the tomcat container.
Allow passing a java property -DsingleTest=<testname> to run just that test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant