[obs-commits] [openSUSE/open-build-service] d3e1f6: Add test for json response of staging project show...
Branch: refs/heads/master Home: https://github.com/openSUSE/open-build-service Commit: d3e1f66ab7cfbc91c7bc1cf3d8505552d19881af https://github.com/openSUSE/open-build-service/commit/d3e1f66ab7cfbc91c7bc1c... Author: Björn Geuken <bgeuken@suse.de> Date: 2018-07-30 (Mon, 30 Jul 2018) Changed paths: R src/api/spec/cassettes/Webui_ObsFactory_StagingProjectsController/GET_show/with_a_existent_factory_staging_project/1_2_1_1.yml R src/api/spec/cassettes/Webui_ObsFactory_StagingProjectsController/GET_show/with_a_existent_factory_staging_project/1_2_1_2.yml A src/api/spec/cassettes/Webui_ObsFactory_StagingProjectsController/GET_show/with_a_existent_factory_staging_project/requesting_html/1_2_1_1_1.yml A src/api/spec/cassettes/Webui_ObsFactory_StagingProjectsController/GET_show/with_a_existent_factory_staging_project/requesting_html/1_2_1_1_2.yml A src/api/spec/cassettes/Webui_ObsFactory_StagingProjectsController/GET_show/with_a_existent_factory_staging_project/requesting_json/1_2_1_2_1.yml A src/api/spec/cassettes/Webui_ObsFactory_StagingProjectsController/GET_show/with_a_existent_factory_staging_project/requesting_json/responds_with_a_json_representation_of_the_staging_project.yml M src/api/spec/cassettes/Webui_ObsFactory_StagingProjectsController/GET_show/with_a_non-existent_factory_staging_project/1_2_2_1.yml M src/api/spec/cassettes/Webui_ObsFactory_StagingProjectsController/GET_show/with_a_non-existent_factory_staging_project/1_2_2_2.yml M src/api/spec/controllers/webui/obs_factory/staging_projects_controller_spec.rb Log Message: ----------- Add test for json response of staging project show action Commit: 2c097f540c2e4abd0d1ba9223d744a221ac5639e https://github.com/openSUSE/open-build-service/commit/2c097f540c2e4abd0d1ba9... Author: Björn Geuken <bgeuken@suse.de> Date: 2018-07-30 (Mon, 30 Jul 2018) Changed paths: A src/api/spec/cassettes/Webui_ObsFactory_StagingProjectsController/GET_index/requesting_json/1_1_3_1.yml A src/api/spec/cassettes/Webui_ObsFactory_StagingProjectsController/GET_index/requesting_json/responds_with_a_json_representation_of_the_staging_project.yml M src/api/spec/controllers/webui/obs_factory/staging_projects_controller_spec.rb Log Message: ----------- Add test for json response of staging project index action Commit: 429c1b279e7c61ae5bbbf3481875ab9beb03a75a https://github.com/openSUSE/open-build-service/commit/429c1b279e7c61ae5bbbf3... Author: Björn Geuken <bgeuken@suse.de> Date: 2018-07-30 (Mon, 30 Jul 2018) Changed paths: M src/api/app/models/bs_request.rb M src/api/spec/models/bs_request_spec.rb Log Message: ----------- Overwrite BsRequest#as_json method The OBS staging dashboard provides a json representation of staging projects. This endpoint is used by some scripts of the openSUSE release managers (https://github.com/openSUSE/openSUSE-release-tools). When merging the obs factory request model in the bs request model some of the key / value pairs got lost from the 'to_json' representation. This commit overwrites the 'as_json' method to add the missing key / value pairs. The 'superseded_by_id' (duplicate of superseded_by) key is added to stay compatible with the openSUSE-release-tools scripts and will be dropped once the scripts got addopted. Fixes #5465 Commit: fe64de3d80f5f50db9cddcafa0e145a2f98dad2e https://github.com/openSUSE/open-build-service/commit/fe64de3d80f5f50db9cddc... Author: Björn Geuken <bgeuken@suse.de> Date: 2018-07-30 (Mon, 30 Jul 2018) Changed paths: M src/api/spec/controllers/webui/obs_factory/staging_projects_controller_spec.rb Log Message: ----------- Use rspec one-liner-syntax instead of 'expect(subject).to' Commit: f20666d2e6f8f665e90c906808ec65a43faff06b https://github.com/openSUSE/open-build-service/commit/f20666d2e6f8f665e90c90... Author: Björn Geuken <bgeuken@suse.de> Date: 2018-07-30 (Mon, 30 Jul 2018) Changed paths: M src/api/app/models/bs_request.rb A src/api/spec/cassettes/Webui_ObsFactory_StagingProjectsController/GET_index/requesting_json/1_1_3_1.yml A src/api/spec/cassettes/Webui_ObsFactory_StagingProjectsController/GET_index/requesting_json/responds_with_a_json_representation_of_the_staging_project.yml R src/api/spec/cassettes/Webui_ObsFactory_StagingProjectsController/GET_show/with_a_existent_factory_staging_project/1_2_1_1.yml R src/api/spec/cassettes/Webui_ObsFactory_StagingProjectsController/GET_show/with_a_existent_factory_staging_project/1_2_1_2.yml A src/api/spec/cassettes/Webui_ObsFactory_StagingProjectsController/GET_show/with_a_existent_factory_staging_project/requesting_html/1_2_1_1_1.yml A src/api/spec/cassettes/Webui_ObsFactory_StagingProjectsController/GET_show/with_a_existent_factory_staging_project/requesting_html/1_2_1_1_2.yml A src/api/spec/cassettes/Webui_ObsFactory_StagingProjectsController/GET_show/with_a_existent_factory_staging_project/requesting_json/1_2_1_2_1.yml A src/api/spec/cassettes/Webui_ObsFactory_StagingProjectsController/GET_show/with_a_existent_factory_staging_project/requesting_json/responds_with_a_json_representation_of_the_staging_project.yml M src/api/spec/cassettes/Webui_ObsFactory_StagingProjectsController/GET_show/with_a_non-existent_factory_staging_project/1_2_2_1.yml M src/api/spec/cassettes/Webui_ObsFactory_StagingProjectsController/GET_show/with_a_non-existent_factory_staging_project/1_2_2_2.yml M src/api/spec/controllers/webui/obs_factory/staging_projects_controller_spec.rb M src/api/spec/models/bs_request_spec.rb Log Message: ----------- Merge pull request #5507 from bgeuken/cover_json_format_for_staging_controller Cover json format for staging controller Compare: https://github.com/openSUSE/open-build-service/compare/217c4423fb51...f20666... **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.
participants (1)
-
Björn Geuken