Commit Graph

105 Commits

Author SHA1 Message Date
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
Matt Prahl
91af4a1840 Change cancel build API to be a PATCH instead 2016-11-30 15:00:32 -05:00
Jan Kaluza
1e4e1be91e Fix #105 - Add new cancel API call which can be used to cancel the module build. 2016-11-30 12:20:50 +01:00
Ralph Bean
20cf4a9ea8 Merge #218 Try to build testmodule.yaml as unit-test with fake builder backend. 2016-11-28 16:35:10 +00:00
Jan Kaluza
77366b94ce Try to build testmodule.yaml as unit-test with fake builder backend. 2016-11-24 14:01:28 +01:00
Jan Kaluza
4f6d683645 Fix #173 - Handle includedmodules by building their components recursively. 2016-11-23 06:38:16 +01:00
Filip Valder
febb8de4f6 tests and test.test_models module initialization updated 2016-11-21 22:53:32 +01:00
Ralph Bean
83db7d07bf Whitespace. 2016-11-21 15:36:34 -05:00
Ralph Bean
2357691c03 Add a test for resolve_profiles. 2016-11-21 13:50:55 -05:00
Jan Kaluza
9aca8057a3 Handle the exception in builder.build(...) code and do not mark whole module as failed - mark just the particular component. 2016-11-18 19:09:03 +01:00
Ralph Bean
d83f210297 Get tests of the retry decorator working in the test suite. 2016-11-18 10:19:41 -05:00
Ralph Bean
c65cf0ab7f Merge #207 Fix tests and move duplicate code to separate class. 2016-11-18 14:26:03 +00:00
Jan Kaluza
936c22f33e Fix tests and move duplicate code to separate class. 2016-11-18 15:12:04 +01:00
Filip Valder
9b808d4354 test buildroot_read() incl. FakeKojiModuleBuilder and FakeKojiSession 2016-11-18 14:39:27 +01:00
Filip Valder
35781690a7 wip: new test for KojiModuleBuilder.buildroot_ready() 2016-11-18 10:24:34 +01:00
Filip Valder
37cde8cf2f Load testing values from config 2016-11-18 10:24:34 +01:00
Filip Valder
eee1283a14 PEP8 2016-11-18 10:24:34 +01:00
Filip Valder
62b4a34ffd Load config 2016-11-18 10:24:34 +01:00
Filip Valder
2a53b74bcf Lint 2016-11-18 10:24:34 +01:00
Matt Prahl
244b77f54c Add component build throttling 2016-11-16 15:24:17 -05:00