Matt Prahl
56d6d90ece
Enforce that the mmd can't define a different module name, stream, or version
2017-02-24 10:37:40 -05:00
Matt Prahl
8ca616ec57
Add new tests for reusing components
2017-02-21 14:22:31 -05:00
Matt Prahl
8577d5f307
Fix and cleanup tests
2017-02-21 14:22:30 -05:00
Jan Kaluza
2c066dc222
Update the vcrpy cassette
2017-02-21 15:24:00 +01:00
Jan Kaluza
92e39162b0
Fix test_submit_build_auth_error test
2017-02-21 15:22:21 +01:00
Jan Kaluža
18f9089643
Merge #323 Possibility to submit yaml file
2017-02-21 14:21:45 +00:00
Jakub Kadlčík
09391e759e
Add vcr-request-data from test_submit_build_from_yaml
2017-02-21 14:33:32 +01:00
Jakub Kadlčík
2b55cfc81d
Use locally stored testmodule.yaml file
2017-02-21 08:02:33 +01:00
Ralph Bean
43ebe6d943
Merge #343 Use an authorization header instead of cookie for OIDC authn.
2017-02-21 02:13:30 +00:00
Ralph Bean
1bd421e9c2
Merge #340 allow to explicitly disable client authentication
2017-02-21 02:09:48 +00:00
Ralph Bean
357b4a089d
Add an internal repo for tests.
2017-02-20 21:07:20 -05:00
Matt Jia
143effcd15
Error out if OIDC_CLIENT_SECRETS is not set in server config
2017-02-21 11:08:42 +10:00
Matt Jia
be65a0ff81
allow to explicitly disable client authentication
2017-02-21 11:08:37 +10:00
Jakub Kadlčík
defabcfc28
Add test for submitting yaml file
2017-02-20 20:54:43 +01:00
Ralph Bean
b5e31d73a1
Adjust test string.
2017-02-20 14:37:17 -05:00
Ralph Bean
0ffb1f7e42
Test that we can clone repos with a trailing slash.
2017-02-20 12:44:49 -05:00
Ralph Bean
2e6e153660
Add a few tests for the SCM module.
...
In particular, test to see if we can pass a branch name with shell
characters, and get MBS to inadvertently execute malicious code.
The test shows that doing this in a straightforward way is not possible
and should guard against any future regressions.
Fixes #329 .
2017-02-20 09:25:00 -05:00
Ralph Bean
52ace7f671
Merge #327 test koji proxyuser feature
2017-02-17 15:09:27 +00:00
Matt Jia
e3ea21c0fd
test koji proxyuser feature
2017-02-17 18:24:44 +10:00
Ralph Bean
32c743725d
Remove xmd from test data for modulemd change.
2017-02-16 10:17:24 -05:00
Ralph Bean
c862cc3def
Trying to debug jenkins failures.
...
Tests pass locally, but fail in jenkins for some reason.
Trying to add more debug info here to figure out why....
2017-02-15 14:47:04 -05:00
Matt Prahl
01e94cb902
Merge #307 Replace query to FAS with OIDC groups scope check.
2017-02-10 21:28:15 +00:00
Ralph Bean
2887e71b29
Mark these functions as "private".
2017-02-10 15:53:36 -05:00
Ralph Bean
88aca055ce
Replace query to FAS with OIDC groups scope check.
...
This removes our query to FAS and fixes #304 .
It is more flexible too, where we can now configure production to only
allow in members of the `modularity-wg` group, and then later open it up
to all packagers after F26 is out (as was agreed with FESCo).
In the process of working on this, I discovered that #305 is not
necessary. We don't need our own scope; we can just use the `groups`
scope as done here.
2017-02-10 15:50:41 -05:00
Filip Valder
818a3feb6f
check Koji active tasks for component relicts (same NVR) from previous (terminated) builds
2017-02-08 15:56:41 +01:00
Jan Kaluža
59d070df35
Merge #278 Fix #276 - Use PDC to resolve buildroot components instead of MBS database
2017-01-12 14:34:13 +00:00
Jan Kaluza
4acc1d69aa
Use vcrpy for tests to simulate PDC responses.
2017-01-12 11:52:49 +01:00
Jan Kaluza
008f2c9d29
Make SCM check faster by consolidating two SCM checks to single check executed in ThreadPool. Use 'git checkout' instead of HTTP HEAD request, because it is much faster in Fedora cgit case.
2017-01-11 15:09:49 +01:00
Jan Kaluza
0f797c2917
Remove fake base-runtime module from DB and old resolve_profiles method because they are not used anymore. Fix the tests to work with remove fake base-runtime.
2017-01-10 15:58:26 +01:00
Jan Kaluza
dda47acab7
Fix #276 - Use PDC to resolve buildroot components instead of MBS database
2017-01-10 14:29:54 +01:00
Jan Kaluza
23802418af
Fix tag_artifacts with concurrent build threshold, do not send repo-done in Mock backend after each build, but just after the tag_artifacts call.
2017-01-06 11:04:54 +01:00
Jan Kaluza
ab567803e8
Fix #41 - Tag builds only in the end of the badge to not regen repository all the time.
2017-01-05 15:24:46 +01:00
Ralph Bean
546e2f5529
Remove test_messaging_functions as per review feedback.
2016-12-15 16:37:55 -05:00
Ralph Bean
775819e87c
Bugfix to shutdown and restart for the test suite.
2016-12-15 16:27:17 -05:00
Ralph Bean
a94cd53afd
Make this more easily discoverable by nosetests.
2016-12-15 16:27:16 -05:00
Ralph Bean
29747a7ea7
Allow restarting the reactor for multiple tests.
2016-12-15 16:27:16 -05:00
Ralph Bean
40afb55ccf
Revert "Disable these testmodule integration tests for now."
...
This reverts commit c2853026cc0e89e1cb34ed884af4e64a2da39052.
2016-12-15 16:27:16 -05:00
Ralph Bean
63beecbb0e
Remove tests of deleted code.
2016-12-15 16:27:16 -05:00
Ralph Bean
c3f73e76de
Disable these testmodule integration tests for now.
2016-12-15 16:27:16 -05:00
Ralph Bean
7e3ee9b0b3
Begin porting the tests to use the new main function, but this doesn't work yet.
2016-12-15 16:27:16 -05:00
Jan Kaluza
3788bd2d8d
Inherit the SCM repository from the parent module to included modules.
2016-12-13 13:24:25 +01:00
Jan Kaluza
d06c13d973
Fix the bug when module build freezes when all the components in batch have been already built by builder.
2016-12-12 21:03:44 +01:00
Matt Prahl
61a724d0d9
Use the database in test_repo_done.py tests
2016-12-12 09:00:44 -05:00
Matt Prahl
cbf1f6acdc
Insert baseruntime in test database
2016-12-12 09:00:44 -05:00
Matt Prahl
e9d0ec898b
Use test database instead of in-memory database for all tests for consistency
2016-12-12 09:00:44 -05:00
Filip Valder
907ae2caf6
test for unsupported SCM scheme handling incl. OIDC auth
2016-12-12 13:05:01 +01:00
Jan Kaluza
1c66edc53e
Include modulemd in the module.state.change messages so it can be handled by pdc-updater.
2016-12-07 13:18:39 +01:00
Jan Kaluza
9eff11fdb0
Use timeout for build tests to prevent hanging, import queue from six.moves, fix init_logging import for jenkins
2016-12-06 11:33:15 +01:00
Jan Kaluza
8b3244405f
Make the OIDC error messages more verbose and include non-secret client-secrets.json
2016-12-05 11:40:00 +01:00
Jan Kaluza
8cb4e0de5d
Use OIDC to auth the users, replace submit-build.sh by submit-build.py which does hackish way of OIDC just to test things.
2016-12-02 14:52:04 +01:00