From Fedora Project Wiki

(Created page with "{{QA/Test_Case |description= Security |setup= # Ensure that Jenkins is running. |actions= # go to http://localhost:8080/configureSecurity/ # check "Enable security" # select ...")
 
Line 1: Line 1:
 
{{QA/Test_Case
 
{{QA/Test_Case
|description= Security
+
|description=Securing Jenkins.
  
 
|setup=
 
|setup=
# Ensure that Jenkins is running.
+
# Ensure that Jenkins is up and running
 
|actions=
 
|actions=
 
# go to http://localhost:8080/configureSecurity/
 
# go to http://localhost:8080/configureSecurity/
 
# check "Enable security"
 
# check "Enable security"
 
# select "Jenkins’ own user database" in "Security Realm" section
 
# select "Jenkins’ own user database" in "Security Realm" section
## "Allow users to sign up" should be selected automatically
+
#* "Allow users to sign up" should be selected automatically
 
# select "Logged-in users can do anything" from "Authorization" section
 
# select "Logged-in users can do anything" from "Authorization" section
 
# click "Save"
 
# click "Save"
## you should be prompted to enter you username and password
+
#* you should be prompted to enter you username and password
 
# click on "Create an account"
 
# click on "Create an account"
 
# fill in all fields and click "Sign up"
 
# fill in all fields and click "Sign up"
## you should be now logged in
+
#* you should be now logged in
 
# click "log out" in upper right corner
 
# click "log out" in upper right corner
 
# go to http://localhost:8080/manage
 
# go to http://localhost:8080/manage
## you should be prompted for your username and password, as this page is not accessible to public if security is enabled
+
#* you should be prompted for your username and password, as this page is not accessible to public if security is enabled
 
# enter your credentials
 
# enter your credentials
## you should be successfully logged in
+
#* you should be successfully logged in
 
# go to http://localhost:8080/configureSecurity/ and uncheck "Enable security"
 
# go to http://localhost:8080/configureSecurity/ and uncheck "Enable security"
 
# click save
 
# click save
 
|results=
 
|results=
# user shouldn't encounter any error messages or stacktraces, everything should work as described.
+
# user shouldn't encounter any error messages or stacktraces, everything should work as described
 
}}
 
}}

Revision as of 08:11, 3 September 2014

Description

Securing Jenkins.

Setup

  1. Ensure that Jenkins is up and running

How to test

  1. go to http://localhost:8080/configureSecurity/
  2. check "Enable security"
  3. select "Jenkins’ own user database" in "Security Realm" section
    • "Allow users to sign up" should be selected automatically
  4. select "Logged-in users can do anything" from "Authorization" section
  5. click "Save"
    • you should be prompted to enter you username and password
  6. click on "Create an account"
  7. fill in all fields and click "Sign up"
    • you should be now logged in
  8. click "log out" in upper right corner
  9. go to http://localhost:8080/manage
    • you should be prompted for your username and password, as this page is not accessible to public if security is enabled
  10. enter your credentials
    • you should be successfully logged in
  11. go to http://localhost:8080/configureSecurity/ and uncheck "Enable security"
  12. click save

Expected Results

  1. user shouldn't encounter any error messages or stacktraces, everything should work as described