1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 14:56:14 +01:00
github.com_openSUSE_osc/tests
Daniel Mach 82216c72b4 Implement reading credentials from environmental variables
Options for apiurls can be set via OSC_HOST_<ALIAS>_<OPTION>=...
This requires a configured alias in the config file.

Setting the default apiurl via OSC_APIURL=... was working already.
Also OSC_CONFIG= / --config= was already implemented to skip loading configuration entirely.

Options for the default apiurl can be now set via:
  OSC_USERNAME=...
  OSC_CREDENTIALS_MGR_CLASS=...
  OSC_PASSWORD=...

This, for example, makes running osc in containers with
credentials stored in environmental variables possible:
OSC_CONFIG= OSC_APIURL=<url> OSC_USERNAME=<user> OSC_PASSWORD=<password> osc ...
2024-01-08 15:21:45 +01:00
..
addfile_fixtures tests: remove comments from oscrc fixtures 2022-08-12 10:06:00 +02:00
commit_fixtures tests: remove comments from oscrc fixtures 2022-08-12 10:06:00 +02:00
conf_fixtures tests: remove comments from oscrc fixtures 2022-08-12 10:06:00 +02:00
deletefile_fixtures tests: remove comments from oscrc fixtures 2022-08-12 10:06:00 +02:00
difffile_fixtures tests: remove comments from oscrc fixtures 2022-08-12 10:06:00 +02:00
fixtures/packages Fix creating a Package object by providing multiple files on the command line 2023-01-20 16:52:11 +01:00
init_package_fixtures tests: remove comments from oscrc fixtures 2022-08-12 10:06:00 +02:00
init_project_fixtures tests: remove comments from oscrc fixtures 2022-08-12 10:06:00 +02:00
prdiff_fixtures Improve 'osc rq show' output 2022-09-16 12:49:08 +02:00
project_package_status_fixtures tests: remove comments from oscrc fixtures 2022-08-12 10:06:00 +02:00
repairwc_fixtures tests: remove comments from oscrc fixtures 2022-08-12 10:06:00 +02:00
request_fixtures tests: remove comments from oscrc fixtures 2022-08-12 10:06:00 +02:00
results_fixtures tests: remove comments from oscrc fixtures 2022-08-12 10:06:00 +02:00
revertfile_fixtures tests: remove comments from oscrc fixtures 2022-08-12 10:06:00 +02:00
setlinkrev_fixtures tests: remove comments from oscrc fixtures 2022-08-12 10:06:00 +02:00
update_fixtures tests: remove comments from oscrc fixtures 2022-08-12 10:06:00 +02:00
__init__.py Run tests via calling 'setup.py test' 2022-03-29 14:01:55 +02:00
common.py tests: Unset OSC_CONFIG env during tearDown() 2023-08-09 13:04:17 +02:00
osc - initial testcases for the new update mechanism 2010-08-31 13:30:35 +02:00
test__private_api.py _private.api: Add xml_escape() function 2023-03-06 10:12:59 +01:00
test__private_package.py Add new osc._private module 2022-10-13 10:52:17 +02:00
test_addfiles.py Run autopep8 to fix whitespace issues 2022-09-12 13:45:19 +02:00
test_build.py Store cached model defaults in self._defaults, avoid sharing references to mutable defaults 2024-01-03 21:22:30 +01:00
test_commandline.py commandline: Fix regression in handling default apiurl from oscrc 2023-04-03 09:12:01 +02:00
test_commit.py Migrate from get_request_list() to get_request_collection() 2022-09-16 12:49:08 +02:00
test_conf.py Implement reading credentials from environmental variables 2024-01-08 15:21:45 +01:00
test_config_parser.py Disable configparser interpolation to allow unescaped '%' in values 2022-10-04 09:37:33 +02:00
test_core_package.py mv: Fix regression 2023-01-26 10:11:54 +01:00
test_core_request.py core.Request - implement ordering compatible with py3 2022-09-16 12:42:09 +02:00
test_core.py Always import at the toplevel 2022-09-12 13:45:19 +02:00
test_deletefiles.py Run autopep8 to fix whitespace issues 2022-09-12 13:45:19 +02:00
test_difffiles.py Run autopep8 to fix whitespace issues 2022-09-12 13:45:19 +02:00
test_doc_plugins.py commandline: New class-based commands 2023-03-31 09:39:04 +02:00
test_git_scm_store.py tests: Replace 'git init -b' with 'git init' and 'git checkout -b' 2023-10-10 08:32:57 +02:00
test_grabber.py Store cached model defaults in self._defaults, avoid sharing references to mutable defaults 2024-01-03 21:22:30 +01:00
test_helpers.py Run autopep8 to fix whitespace issues 2022-09-12 13:45:19 +02:00
test_init_package.py Run autopep8 to fix whitespace issues 2022-09-12 13:45:19 +02:00
test_init_project.py Run autopep8 to fix whitespace issues 2022-09-12 13:45:19 +02:00
test_models.py Drop unused 'exclude_unset' argument from BaseModel.dict() method 2024-01-04 10:20:58 +01:00
test_output.py Store cached model defaults in self._defaults, avoid sharing references to mutable defaults 2024-01-03 21:22:30 +01:00
test_package_status.py Run autopep8 to fix whitespace issues 2022-09-12 13:45:19 +02:00
test_prdiff.py Improve 'osc rq show' output 2022-09-16 12:49:08 +02:00
test_project_status.py Run autopep8 to fix whitespace issues 2022-09-12 13:45:19 +02:00
test_repairwc.py Run autopep8 to fix whitespace issues 2022-09-12 13:45:19 +02:00
test_request.py Improve 'osc rq show' output 2022-09-16 12:49:08 +02:00
test_results.py Run autopep8 to fix whitespace issues 2022-09-12 13:45:19 +02:00
test_revertfiles.py Run autopep8 to fix whitespace issues 2022-09-12 13:45:19 +02:00
test_setlinkrev.py setlinkrev: Write a log message on setting a revision 2022-12-19 14:58:12 +01:00
test_store.py Fix a crash in 'Fix handling empty vm_type in Store.last_buildroot' when last_buildroot is empty 2023-09-25 14:41:17 +02:00
test_update.py Run autopep8 to fix whitespace issues 2022-09-12 13:45:19 +02:00
test_vc.py Store cached model defaults in self._defaults, avoid sharing references to mutable defaults 2024-01-03 21:22:30 +01:00