-
Notifications
You must be signed in to change notification settings - Fork 17
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
Integration tests independent from OC, with auto-install #329
Comments
Well I see some problems with this approach. After a test including update, the remaining tests would run against newer version. How would the server be updated? git? tarball? Tests including update increases execution time perhaps too much for each PR.
This would be nice yes. Since it is not configured that way at the moment, it would require changes in the way run.sh works. perhaps making some kind of switch between running on current code or against another server. I'll expect problems with the federated tests part. 🔮 |
@DeepDiver1975 What do you think about having tests independent able to run against any server? That would require changes in jenkins. Also tests in <=8.2 branches are a bit different to >=9.0. In case of going this way I recommend to support only >=9.0, where almost all tests from master would pass and it would require less tags and modifications. |
Some thoughts about this:
|
Hmmm .... generally speaking: it is quite complex to setup tests like this. I'm not sure on how sure tests are helpful through out the regular development and testing. I mean: it will be hard to detect such issues upfront - tests are not helping. In addition it is unlikly to break this test the same way in the future. |
I think we discussed that we wanted this last time in Nbg. Goal is to be able to combine different docker setups with the docker containing the tests. Docker 1 contains integration tests. The tests are run in Docker 1 and connect to Docker 2 through APIs to perform the tests. |
Hm would be great to have a testsuite we can give to customers so they can run it in their testing environment after upgrading |
some are already available as docker container There needs to be a lot of changes in the test suite / their assumptions:
It might be possible to tag test suites, that are "harmless" and be able to provide them via a docker container to customers. (cc @individual-it @phil-davis ) - but I doubt the usefulness. |
as long as the customer really has a testing environment that they do not care so much about, then they can run tests that add/delete users and change system-wide settings We can easily tell customers the user and group names that the tests use, and the test suite can also check for those and if any already exist, it just refuses to start. The capabilities setup (global sharing options etc) tries hard to put things back the way they were on exit. So that "should" be OK. (but of course will make trouble during the test run if used on a live production system!) We can abstract the The tests could first download (clone from GutHub) the testing app (if it is not already there), then enable it... then (optionally) remove it at the end. In the end, this sort of thing really needs to be done on a testing system (which can be a backup of a production system, restored to some test server) |
Wouldn't it be nice if the current integration tests that are stored in core's "build/integration" could be separated and made to run on any OC instance ?
Or at least we could add support for sentences like "OC 8.2.8 is installed".
This would make it possible to cover known bugs that only appear after upgrading.
For example (dummy):
(there was a case where this would fail)
@owncloud/qa @DeepDiver1975
The text was updated successfully, but these errors were encountered: