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

Add test unit tests. #3

Open
brucellino opened this issue May 6, 2018 · 2 comments
Open

Add test unit tests. #3

brucellino opened this issue May 6, 2018 · 2 comments
Assignees

Comments

@brucellino
Copy link
Member

There are no unit tests. We have no idea if this package is working, nor whether it does the same thing it should if we eventually refactor.

@brucellino brucellino self-assigned this May 6, 2018
@brucellino
Copy link
Member Author

Now that we have closed #14 I think we can consider a few tests in the pipeline. We probably need to do this off of the correct state of machine... Ie, an image with the rest of the software necessary already installed.

@gwarf
Copy link
Member

gwarf commented Nov 26, 2018

Following tests could quite easily be implemented for centos 6 and 7:

  • When the CA are not installed and cafile and capath not set it should work (ie. cert validation is disabled)
  • When cafile or capath are set the IGTF CA (see EGI_IGTF_Release) should be installed to validate the cert (on CentOS 7 it will fail without the CA and success with them, and CentOS 6 doesn't care about the CA)

The following seems to be sufficient to test:

mkdir -p /var/cache/glite/glite-info-update-endpoints
# Potentially edit conf in etc/glite-info-update-endpoints.conf
./bin/glite-info-update-endpoints  -c etc/glite-info-update-endpoints.conf

On success /var/cache/glite/top-urls.conf will be populated with some URLs.

@gwarf gwarf added this to To do in BDII support via automation Sep 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants