pycontribs / jenkinsapi

A Python API for accessing resources and configuring Hudson & Jenkins continuous-integration servers
http://pypi.python.org/pypi/jenkinsapi
MIT License
858 stars 485 forks source link

Add authentication system tests #686

Closed Ikuze closed 5 years ago

Ikuze commented 5 years ago

Hello,

I added some system tests in order to test that the cookie functionality is working properly.

jenkins_admin_admin fixture will connect to jenkins and will create a user (admin/admin) with admin permissions. Anonymous will have no permissions at all, that way we can check if the authentication is working or not.

jenkins_admin_admin fixture disables the security everytime a test ends, restoring the original state.

We test that:

BR.

codecov[bot] commented 5 years ago

Codecov Report

Merging #686 into master will increase coverage by 0.37%. The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #686      +/-   ##
==========================================
+ Coverage   78.52%   78.89%   +0.37%     
==========================================
  Files          34       34              
  Lines        2682     2682              
==========================================
+ Hits         2106     2116      +10     
+ Misses        576      566      -10