-
Notifications
You must be signed in to change notification settings - Fork 21
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
Refactoring of DBS3 Unit-tests #100
Comments
Author: valya Then it would be part of DBS deployment procedure to release new DBS instance with a set of meta-data provided by DBSUnitTestSuite. So for DBS team will provide simple python code which will insert meta-data into new DBS instance (the code will be used inside of DBS deploy script as part of post-install step), e.g.:
While DAS and others will only ask for these data in their integration/unit tests, e.g.:
How does this sound? |
Author: giffels
We already agreed on that during the O&C week at CERN. It would be good to have a separate package for that. We can distribute it as an additional rpm using the sub-package mechanism. Concerning the API, I think it should have the same interface like the dbs3 client.
I wouldn't include that step into the deployment procedure inside the DBS deploy script. We are running deployment tests against each instance after a new cmsweb installation is available. That ensures that the data is available. We would like to avoid injection of duplicated data even that should not harm the installation.
Sounds good, |
Author: valya |
Original TRAC ticket 2876 reported by giffels
In the current design of unit-test, we have code separation between client and server tests. The web-layer server tests and the client test do nearly the same and do not share any code, which causes a code duplication.
In addition, we have separated unit-tests and validation tests on the client side. The unit-tests do not validate the output of DBS.
Furthermore, Valentin ask for a set of data, which is present in each DBS instance and can be used for integration tests with DAS. We have defined such a set of data in our deployment test. Valentin would like to have a package, which provides some sort of API to access this pre-defined data to compare it with the output of DAS. Such an API can also be used in other projects to do integration tests. Maybe we have to increase the amount of pre-defined data.
The text was updated successfully, but these errors were encountered: