Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load_templates: better error handling #2690

Merged
merged 1 commit into from
Feb 6, 2020

Conversation

kalikiana
Copy link
Member

@kalikiana kalikiana commented Jan 23, 2020

  • The unit test also runs a webui with fixtures to verify how templates are loaded and how errors are handled.
  • SeleniumTest::start_app is re-based onto OpenQA::TEST::Utils::create_webapi since both do the same except the latter was missing the schema hook.
  • Fail cleanly in JobTemplate::update if not template was specified.
  • Make Selenium start helpers internal

Related to: poo#60118

@kalikiana kalikiana force-pushed the load_templates_perm branch 2 times, most recently from f1dc7b8 to 2094c21 Compare January 27, 2020 13:10
@kalikiana kalikiana marked this pull request as ready for review January 27, 2020 13:12
script/load_templates Outdated Show resolved Hide resolved
@okurz
Copy link
Member

okurz commented Feb 5, 2020

+1

- The unit test also runs a webui with fixtures to verify how templates
are loaded and how errors are handled.
- SeleniumTest::start_app is re-based onto OpenQA::TEST::Utils::create_webapi
since both do the same except the latter was missing the schema hook.
- Fail cleanly in JobTemplate::update if not template was specified.
- Make Selenium start helpers internal
@codecov
Copy link

codecov bot commented Feb 5, 2020

Codecov Report

Merging #2690 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2690      +/-   ##
==========================================
+ Coverage   91.97%   91.98%   +<.01%     
==========================================
  Files         187      187              
  Lines       11708    11709       +1     
==========================================
+ Hits        10768    10770       +2     
+ Misses        940      939       -1
Impacted Files Coverage Δ
lib/OpenQA/WebAPI/Controller/API/V1/JobTemplate.pm 93.64% <100%> (+0.61%) ⬆️
lib/OpenQA/Scheduler/Model/Jobs.pm 88.66% <0%> (-2.84%) ⬇️
lib/OpenQA/Worker/Settings.pm 98.11% <0%> (+13.2%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ea898b0...ea61649. Read the comment docs.

@kalikiana kalikiana merged commit 4ec9747 into os-autoinst:master Feb 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants