summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-01-31use re for finding vendor macroScott Bahling1-6/+6
2020-01-31Enhance lock and unlock commandsScott Bahling1-17/+9
Use api 'cmd=lock' post parameter for locking.
2020-01-28Use requests_mock for unit testsScott Bahling2-53/+148
2020-01-28Enable calling /source/ root api (project argument optional)Scott Bahling1-2/+4
Also enable the binary_get flag when retrieving file objects
2020-01-27Update tests to use requests_mock pytest pluginScott Bahling1-135/+125
2020-01-27Use unittest mocks for test casesScott Bahling2-39/+178
We simply test that the url and params are correct for the HTTP requests and that the result is returned to use properly
2020-01-26Pass extra optional arguments to get_logScott Bahling1-2/+2
2020-01-26Add RepoFlags class and api.get_repo_flags methodScott Bahling4-0/+239
2020-01-25Enhance binaries_ls method to return project level binary listsScott Bahling2-1/+15
2020-01-25Better get_meta testsScott Bahling1-5/+9
2020-01-25Fix get_repository call for retrieving binary objectsScott Bahling2-5/+14
Enhance test case
2020-01-21PEP8Scott Bahling2-32/+32
2020-01-21Fix some python3 incompatibilitiesScott Bahling3-8/+5
2020-01-21Add get_spec_files methodScott Bahling2-0/+19
2020-01-21Change import pathsScott Bahling2-3/+3
2019-01-31Validate the apiurl when setting it.Scott Bahling1-1/+20
2019-01-31Fix logger methodsScott Bahling1-4/+4
2018-08-24Initial user and group methods for ObsApi classScott Bahling2-0/+78
2018-08-24Enhance api.ls and api.project_lsScott Bahling1-4/+6
Allow listing projects by passing no 'prj' option to api.ls()
2018-08-24remove bare except:Scott Bahling1-1/+1
2018-08-24Add initial person apiScott Bahling2-0/+42
2018-08-24Generic API get now returns None on failure. Handle appropriatelyScott Bahling1-5/+11
2018-08-03Add streaming option for HTTP get methodScott Bahling2-3/+9
2018-08-03Add put and post methods to build apiScott Bahling1-0/+10
2018-07-18Fix module nameScott Bahling1-1/+1
2018-07-18Handle retrieving binary files properlyScott Bahling2-2/+10
2018-07-18Remove output noiseScott Bahling1-2/+0
2018-07-18Make flake8 happyScott Bahling3-2/+35
Add dummy logger for now
2017-11-01Only call osc.conf.get_config() when neededobsapi-0.0.7Scott Bahling2-13/+13
osc.conf.get_config() can cause calls to password managers like kwallet. Move this action from module init to the functions that actually need to access the OBS api and require authentication. We also cache the results in a local variable now.
2017-11-01Add test for sourceapi.put_metaScott Bahling2-0/+20
2017-10-04Move test project/package to build.opensuse.orgScott Bahling3-29/+29
2017-02-21Implement locking api; refactor ObsSourceApi get/put/post callsScott Bahling5-29/+132
2016-05-20remove printScott Bahling1-1/+0
2016-05-19Replace get_binaries with binaries_lsScott Bahling1-1/+1
2016-04-19Update api core to use buildapi and sourceapiobsapi-0.0.5Scott Bahling3-125/+32
2016-03-03Add formatter class and extend FileInfo classScott Bahling5-24/+118
2016-03-03Add ObsBuildApi classScott Bahling2-0/+177
2016-03-03Add ObsSourceApi classScott Bahling2-0/+115
2016-03-03Add ObsHttpApi classScott Bahling1-0/+104
2016-02-21Refactor FileInfo objectScott Bahling1-54/+49
2016-02-21Add test for get_binary_fileinfoScott Bahling1-0/+14
2016-02-21rename source_info method to get_source_infoScott Bahling2-1/+10
Consistency with other get_* methods
2016-02-21rename get_binaries to binaries_lsScott Bahling2-4/+16
Consistency with the other "ls" methods
2016-02-20Implement get_build_info and get_nothing_providesScott Bahling1-0/+20
2016-02-20Implement lock methodScott Bahling1-0/+37
2016-02-20Implement __api_put and get/put meta methodsScott Bahling1-2/+39
2016-02-20Implement source_infoScott Bahling1-1/+16
2016-02-20Modify __api_get to function with self.retries set to 0Scott Bahling1-1/+10
2015-08-06Add some robustness to http connectionsobsapi-0.0.4Scott Bahling1-3/+15
- Add a retry loop. Shouldn't be required, but sometimes api.suse.com fails with authentication and a second retry works. - Add verify_ssl option to turn off SSL verification. Needed when facing temporary SSL certificate issues on the api server.
2015-06-30Requires python-requestsScott Bahling1-0/+1