Tsp

!!! ""Test Specification for Kenai"" Author: "Hong Lu"
Version: "0.1"
Last update: "January 7, 2009"
Comments: "Test Spec. for Authentication/Authorization API"


       This test spec. descripts the test scenarios for 
       Authentication/Authorization APIs:
       The authenticate API allows a client to verify a username and password for a Kenai account. 
       The authorize API allows a client to ask whether a person is authorized to perform an activity on a particular project.
   
   
   

# "People authenticate"


## "purpose: Verify authenticate API allows a client to verify a username and password for a Kenai account."


## "setup: URI:/api/login/authenticate

              Parameters: username, password
       "


## "usecase: valid user/password"


## "URI =/api/login/authenticate"


## "Method: Get"


## "Parameters:"username=kenai_tester&password=kenairox""


#* EXPECTED RESULT: "success: 200"


#* EXPECTED RESULT: "JSON Payload: {"status":"200 OK", "message":"Authenticate successful"}"



## "usecase: invalid user/password"


## "URI =/api/login/authenticate"


## "Paramenters:"username=baduser&password=badpassword""


## "Method: Get"


#* EXPECTED RESULT: "403"



## "usecase: valid user/bad password"


## "URI =/api/login/authenticate"


## "Paramenters:"username=kenai_tester&password=badpassword""


## "Method: Get"


#* EXPECTED RESULT: "403"



}}


# "People authorize - wiki activities"


## "purpose: Verify authorize API allows a client to ask whether a person is authorized to perform an activity on a particular project. "


## "setup: URI:/api/login/authorize

              Parameters:     
   1. person_id: username of person to authorize
   2. feature_id: wiki, forum, downloads, commits, svn, mercurial, bz, jira???.
   * activity_id:read, write, update???
   * project_id: project name
       "


## "usecase: positive: wiki/read"


## "URI = /api/login/authorize"


## "Method: Get"


## "Parameters are as follows:

   * person_id=kenai_tester
   * feature_id=wiki
   * activity_id=read
   * project_id=tcpb-1-5-383827
           "


#* EXPECTED RESULT: "success: 200"



## "usecase: positive: wiki/write"


## "URI = /api/login/authorize"


## "Method: Get"


## "Parameters are as follows:

   * person_id=kenai_tester
   * feature_id=wiki
   * activity_id=read
   * project_id=tcpb-1-5-383827
           "


#* EXPECTED RESULT: "success: 200"



## "usecase: positive: wiki/delete"


## "URI = /api/login/authorize"


## "Method: Get"


## "Parameters are as follows:

   * person_id=kenai_tester
   * feature_id=wiki
   * activity_id=read
   * project_id=tcpb-1-5-383827
           "


#* EXPECTED RESULT: "success: 200"



## "usecase: negative: wiki/write"


## "URI = /api/login/authorize"


## "Method: Get"


## "Parameters are as follows:

   * person_id=
   * feature_id=wiki
   * activity_id=read
   * project_id=tcpb-1-5-383827
           "


#* EXPECTED RESULT: "failed: 405"



## "usecase: negative: wiki/delete"


## "URI = /api/login/authorize"


## "Method: Get"


## "Parameters are as follows:

   * person_id=
   * feature_id=wiki
   * activity_id=read
   * project_id=tcpb-1-5-383827
           "


#* EXPECTED RESULT: "failed: 405"



}}


# "People authorize - mailing list activities"


## "purpose: Verify authorize API allows a client to ask whether a person is authorized to perform an activity on a particular project. "


## "setup: URI:/api/login/authorize

              Parameters:     
   * person_id: username of person to authorize
   * feature_id: commits
   * activity_id: read, admin, archive, close, moderate, send, subscribe
   * project_id: project name
       "


## "usecase: positive: mailinglist/read"


## "URI = /api/login/authorize"


## "Method: Get"


## "Parameters are as follows:

   * person_id=kenai_tester
   * feature_id=commits
   * activity_id=read
   * project_id=tcpb-1-5-383827
           "


#* EXPECTED RESULT: "success: 200"



## "usecase: positive: mailinglist/admin"


## "URI = /api/login/authorize"


## "Method: Get"


## "Parameters are as follows:

   * person_id=kenai_tester
   * feature_id=commits
   * activity_id=admin
   * project_id=tcpb-1-5-383827
           "


#* EXPECTED RESULT: "success: 200"



## "usecase: positive: mailinglist/archive"


## "URI = /api/login/authorize"


## "Method: Get"


## "Parameters are as follows:

   * person_id=kenai_tester
   * feature_id=commits
   * activity_id=archive
   * project_id=tcpb-1-5-383827
           "


#* EXPECTED RESULT: "success: 200"



## "usecase: positive: mailinglist/close"


## "URI = /api/login/authorize"


## "Method: Get"


## "Parameters are as follows:

   * person_id=kenai_tester
   * feature_id=commits
   * activity_id=close
   * project_id=tcpb-1-5-383827
           "


#* EXPECTED RESULT: "success: 200"



## "usecase: positive: mailinglist/moderate"


## "URI = /api/login/authorize"


## "Method: Get"


## "Parameters are as follows:

   * person_id=kenai_tester
   * feature_id=commits
   * activity_id=moderate
   * project_id=tcpb-1-5-383827
           "


#* EXPECTED RESULT: "success: 200"



## "usecase: positive: mailinglist/send"


## "URI = /api/login/authorize"


## "Method: Get"


## "Parameters are as follows:

   * person_id=kenai_tester
   * feature_id=commits
   * activity_id=send
   * project_id=tcpb-1-5-383827
           "


#* EXPECTED RESULT: "success: 200"



## "usecase: positive: mailinglist/subscribe"


## "URI = /api/login/authorize"


## "Method: Get"


## "Parameters are as follows:

   * person_id=kenai_tester
   * feature_id=commits
   * activity_id=subscribe
   * project_id=tcpb-1-5-383827
           "


#* EXPECTED RESULT: "success: 200"



## "usecase: negative: mailinglist/admin"


## "URI = /api/login/authorize"


## "Method: Get"


## "Parameters are as follows:

   * person_id=
   * feature_id=mailinglist
   * activity_id=admin
   * project_id=tcpb-1-5-383827
           "


#* EXPECTED RESULT: "failed:405"



}}


# "People authorize - forum activities"


## "purpose: Verify authorize API allows a client to ask whether a person is authorized to perform an activity on a particular project. "


## "setup: URI:/api/login/authorize

              Parameters:     
   * person_id={username}: username of person to authorize
   * feature_id: forum
   * activity_id:read??
   * project_id={project-name}: project name
       "


## "usecase: positive: forum/read"


## "URI = /api/login/authorize"


## "Method: Get"


## "Parameters are as follows:

   * person_id=kenai_tester
   * feature_id=forum
   * activity_id=read
   * project_id=tcpb-1-5-383827
           "


#* EXPECTED RESULT: "success: 200"



}}


# "People authorize - svn activities"


## "purpose: Verify authorize API allows a client to ask whether a person is authorized to perform an activity on a particular project. "


## "setup: URI:/api/login/authorize

              Parameters:     
   * person_id={username}: username of person to authorize
   * feature_id: profile
   * activity_id:read??
   * project_id={project-name}: project name
       "


## "usecase: positive: svn/read"


## "URI = /api/login/authorize"


## "Method: Get"


## "Parameters are as follows:

   * person_id=kenai_tester
   * feature_id=svn
   * activity_id=read
   * project_id=tcpb-1-5-383827
           "


#* EXPECTED RESULT: "success: 200"



}}


# "People authorize - downloads activities"


## "purpose: Verify authorize API allows a client to ask whether a person is authorized to perform an activity on a particular project. "


## "setup: URI:/api/login/authorize

              Parameters:     
   * person_id={username}: username of person to authorize
   * feature_id: downloads
   * activity_id:read??
   * project_id={project-name}: project name
       "


}}


# "People authorize - mercurial activities"


## "purpose: Verify authorize API allows a client to ask whether a person is authorized to perform an activity on a particular project. "


## "setup: URI:/api/login/authorize

              Parameters:     
   * person_id={username}: username of person to authorize
   * feature_id: mercurial
   * activity_id:read??
   * project_id={project-name}: project name
       "


}}


# "People authorize - bugzilla activities"


## "purpose: Verify authorize API allows a client to ask whether a person is authorized to perform an activity on a particular project. "


## "setup: URI:/api/login/authorize

              Parameters:     
   * person_id={username}: username of person to authorize
   * feature_id: bz?
   * activity_id:read??
   * project_id={project-name}: project name
       "


}}


# "People authorize - jira activities"


## "purpose: Verify authorize API allows a client to ask whether a person is authorized to perform an activity on a particular project. "


## "setup: URI:/api/login/authorize

              Parameters:     
   * person_id={username}: username of person to authorize
   * feature_id: jira?
   * activity_id:read??
   * project_id={project-name}: project name
       "


}}


# "People authorize - profile activities?"


## "purpose: Verify authorize API allows a client to ask whether a person is authorized to perform an activity on a particular project. "


## "setup: URI:/api/login/authorize

              Parameters:     
   * person_id={username}: username of person to authorize
   * feature_id: profile?
   * activity_id:read??
   * project_id={project-name}: project name
       "


}}


http://kenai.com/projects/alligator/pages/KenaiAPI#Authentication/Authorization_API

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo