Jan Kaluza
7cf77d0fee
Make testing with different configuration values easier and less error-prone by using mock.patch to change the configuration.
2017-03-13 07:48:29 +01:00
Jan Kaluža
d87010dba0
Merge #411 Fix #405 - Fix num_consecutive_builds.
2017-03-11 05:52:09 +00:00
Jan Kaluža
b715f18e16
Merge #403 Copr builder improvements
2017-03-10 11:28:15 +00:00
Jakub Kadlčík
b051ea2b4d
Set copr as build system for this test
2017-03-09 09:34:59 +01:00
Jan Kaluza
b569fa6c21
Fix #405 - Fix num_consecutive_builds.
2017-03-09 08:59:09 +01:00
Jan Kaluža
91193cf676
Merge #404 Expect 'branch' while handling submission of module and use it to set the stream of module. Also verify that the commit hash belongs to that branch.
2017-03-09 05:04:19 +00:00
Jan Kaluza
4b3e295e48
Expect 'branch' while handling submission of module and use it to set the stream of module. Also verify that the commit hash belongs to that branch.
2017-03-07 11:25:06 +01:00
Jan Kaluža
ab59a1eac6
Merge #402 Add OIDC_REQUIRED_SCOPE and fix the test_auth.py to use Authorization header.
2017-03-07 09:31:05 +00:00
Jakub Kadlčík
233042c340
Process copr fedmsg messages
2017-03-07 00:44:47 +01:00
Jakub Kadlčík
e849c5da16
Test parsing buildsys.state.change message
2017-03-07 00:43:22 +01:00
Jan Kaluza
b11ea14358
Add OIDC_REQUIRED_SCOPE and fix the test_auth.py to use Authorization header.
2017-03-06 14:56:09 +01:00
Ralph Bean
4509367d3e
Use JSON for component API instead of strings.
...
This is more flexible and is nicer to other programs that try to parse
or consume this data.
2017-03-03 15:59:17 -05:00
Jan Kaluza
8aa3ce3c27
Add MODULES_ALLOW_REPOSITORY and MODULES_DEFAULT_REPOSITORY with the same meaning as RPMS_* equivalents.
2017-03-03 15:36:10 +01:00
Jan Kaluza
6d74f32462
Remove 'module_' prefix from the disttag in module-build-macros.
2017-03-03 11:22:58 +01:00
Matt Prahl
4cd652e5f7
Merge #377 Fix the depsolving wrapper.
2017-03-02 17:04:45 +00:00
Ralph Bean
ae8d453da3
Use mmd.xmd for exact pinning of dep tags.
2017-03-02 11:59:46 -05:00
Ralph Bean
8d2b7729bd
Restore the original functionality, even if it is weird.
2017-03-02 11:23:04 -05:00
Ralph Bean
724599fb77
Fix the depsolving wrapper.
...
It was try to convert koji tags back to modules locally, which caused
errors with the new bootstrap tag.
2017-03-02 11:16:43 -05:00
Filip Valder
6b189c4b4a
Koji tag validation: Catch situation when tag arg has no value + refactoring + add comments.
2017-03-02 15:01:52 +01:00
Matt Prahl
5af8bc99f0
Change format_mmd test to be more consistent.
2017-03-01 15:00:54 -05:00
Ralph Bean
ca61d6bb29
Allow passing in multiple tag names to the validation decorator.
...
We have problems when we try to wrap one decorator around another.
There are ways to do that with the
[decorator](https://pypi.python.org/pypi/decorator ) module nicely,
however.. they are ugly.
Take a look at this:
https://github.com/micheles/decorator/blob/master/src/decorator.py#L217-L218
And this:
https://github.com/micheles/decorator/blob/master/src/decorator.py#L185-L188
The approach in this PR is.. simpler.
2017-02-28 17:15:55 -05:00
Filip Valder
6dd223fd12
support for dicts + tests
2017-02-28 20:54:03 +01:00
Filip Valder
6b343896dd
s/rida/mbs/
2017-02-28 17:59:02 +01:00
Filip Valder
13b7bcd03e
Support for state tracing of modules and components
...
- DB migration scripts.
- Models: ComponentBuildTrace, ModuleBuildTrace.
- ModuleBuild.state_trace method for querying for a particular module's
state history.
- SQLAlchemy before commit session event handler for recording
module/component state changes.
- REST API verbose mode for getting state trace of a particular module.
- Tests use make_session, so that event handlers are in effect.
- Short info in README about verbose mode.
- Tests verifying whether state trace information about a module appears
in verbose mode.
- Other minor fixes (RidaBase -> MBSBase, PEP8...)
2017-02-28 16:15:43 +01:00
Matt Prahl
7dfb647e08
Merge #347 Possibility to specify optional parameters when submitting build
2017-02-28 14:26:20 +00:00
Filip Valder
be3b05e673
Additional tests for validate_koji_tag:
...
- Verify that ProgrammingError exception does what it is intended to do.
- Two (str/list) negative tests for validate_koji_tag decorator itself.
- Two (str/list) positive tests for validate_koji_tag decorator itself.
- Support validation in a test for Koji builder.
2017-02-28 09:08:32 +01:00
Filip Valder
a4366d9be7
Koji tag validation
...
- Decorator supporting str/list args
- ProgrammingError exception which may uncover typos in the names of args to validate
- Configurable whitelist of koji tag prefixes
- Add basic validation to test_build.TestModuleBuilder
2017-02-28 09:08:32 +01:00
Jakub Kadlčík
70103c41e2
Test submitting optional parameters
2017-02-27 17:23:05 +01:00
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