EMIR Test Plan

eu.emi.dsr.core

TestServiceColManager

  • testGetServiceByRefernces
    Get list of the services by references.
    • Pass/Fail criteria
      • Pass: Created the list of the references.
      • Fail: When raised expetion.

TestServiceAdminManager

  • addServiceDescription
    Add entry to the local database.
    • Pass/Fail criteria
      • Pass: The entry containing the service information gets registered into the registry and acknowledges with the same entry including the TTL
      • Fail: N/A
  • updateService
    Update one exist entry in the local database.
    • Pass/Fail criteria
      • Pass: Entry will be updated.
      • Fail: Entry will be not updated.
  • findService
    Find exist service by URL.
    • Pass/Fail criteria
      • Pass: The response contains the exist value.
      • Fail: The response contains one other exist value or empty.

eu.emi.dsr.event

TestEventManager

  • test
    Give back the sent event entry.
    • Pass/Fail criteria
      • Pass: Message data equivalent with the sent value.
      • Fail: Event's data is different.

eu.emi.dsr.validator

TestRegistrationValidator

  • testValidateExpiryInfo
    Check the entry validity of expiry time.
    • Pass/Fail criteria
      • Pass: Entry is valid.
      • Fail: Entry expired.
  • testInvalidExpiryInfo
    Check the entry validity of expiry time.
    • Pass/Fail criteria
      • Pass: Entry expired.
      • Fail: Entry is valid.
  • testInvalidDateType
    Checks whether the date is UTC formatted
    • Pass/Fail criteria
      • Pass: fully qualified UTC formatted date is provided
      • Fail: N/A

eu.emi.dsr.aip

TestFileAttributeSource

  • testStrict
    ?
    • Pass/Fail criteria
      • Pass: N/A
      • Fail: N/A
  • testRegExp
    ?
    • Pass/Fail criteria
      • Pass: N/A
      • Fail: N/A

eu.emi.dsr.lease

TestServiceReaper

  • testReaping
    Test TTL of a service record
    • Pass/Fail criteria
      • Pass: N/A
      • Fail: N/A
  • testAddingDefaultExpiry
    Testing whether service entry contains the default entry
    • Pass/Fail criteria
      • Pass: appends the service description with the default TTL
      • Fail: N/A

eu.emi.dsr.db.mongodb

TestMongoDBServiceDatabase

  • testInsertServiceEntry
    Put one entry to the local mongodb.
    • Pass/Fail criteria
      • Pass: Stored the entry.
      • Fail: Exception raise or don't stored the entry.
  • testDeleteNonExistingServiceByURL
    Try to delete one non exist entry from the database
    • Pass/Fail criteria
      • Pass: N/A
      • Fail: Exception raised.
  • testRedundantServiceEntries
    Try to insert twice entries to the database with similar ID.
    • Pass/Fail criteria
      • Pass: N/A
      • Fail: Exception raised.
  • testDeleteServiceByUrl
    Remove one entry from the local mongo database.
    • Pass/Fail criteria
      • Pass: Entry removed from the database.
      • Fail: Entry exist after the delete method in the database or exception raise.

TestQueryCollection

  • testQueryWithLimitAndSkip
    Query from the database different numbers of entries and this can be set with a limit parameter.
    • Pass/Fail criteria
      • Pass: Get always the correct size of entries.
      • Fail: When the response contains wrong numbers of entries.
  • testQueryWithSkip
    Query from the database different numbers of entries.
    • Pass/Fail criteria
      • Pass: Get always the correct size of entries.
      • Fail: When the response contains wrong numbers of entries.
  • testQueryJSONWithSkip
    Query from the database (in JSON format) different numbers of entries.
    • Pass/Fail criteria
      • Pass: Get always the correct size of entries.
      • Fail: When the response contains wrong numbers of entries.
  • testQueryJSONWithLimit
    Query from the database (in JSON format) different numbers of entries and this can be set with a limit parameter.
    • Pass/Fail criteria
      • Pass: Get always the correct size of entries.
      • Fail: When the response contains wrong numbers of entries.

TestMongoDBEmbedded

  • testDb
    MongoDB usage test from the higher layer. connection, insert, query, delete, etc
    • Pass/Fail criteria
      • Pass: The stored value always the actual value.
      • Fail: Stored any other value.

eu.emi.dsr.resource

TestModelResource

  • testModel
    Get information from the model resource.
    • Pass/Fail criteria
      • Pass: The response contains model information.
      • Fail: The response is empty.

TestServiceAdminResourceWithSecurity

  • testRegisterService
    Insert new entry through the serviceadmin resource in secure mode.
    • Pass/Fail criteria
      • Pass: Insert the entry to the database.
      • Fail: Can not stored the entry.
  • testUnAuthzRegisterService
    Tests whether a service registration request is being sent by authorized service provider (having authorized DN)
    • Pass/Fail criteria
      • Pass: DN of the requestor matches the registered DNs on the server
      • Fail: N/A

TestMaxRegistrations

  • test
    Try to insert more entries per message then the configured maximum.
    • Pass/Fail criteria
      • Pass: Can not insert the messages.
      • Fail: Insert acceptable.

TestServiceCollectionResource

  • testFindByType
    Find entries by Type attribute in the database through the servicescollection resource.
    • Pass/Fail criteria
      • Pass: Get every matched entries from the database.
      • Fail: Dont get every matched entries or exception raised.
  • testFindNone
    Find entries by Type attribute in the database through the servicescollection resource but the given type non exist in the database.
    • Pass/Fail criteria
      • Pass: Response is empty.
      • Fail: Return more the zero value(s).
  • testLimit20
    Find only the first 20 number of entries by Type attribute in the database through the servicescollection resource.
    • Pass/Fail criteria
      • Pass: Get number of entries count is 20.
      • Fail: Get number of entries count is not 20.
  • testFindLast30
    Find only the last 30 number of entries by Type attribute in the database through the servicescollection resource.
    • Pass/Fail criteria
      • Pass: Get number of entries count is 30.
      • Fail: Get number of entries count is not 30.
  • testFindLastHalfOf40
    ?
    • Pass/Fail criteria
      • Pass: N/A
      • Fail: N/A
  • testGetSupportedTypes
    Get every supported service type attribute/value.
    • Pass/Fail criteria
      • Pass: Get every stored type value.
      • Fail: N/A
  • testQueryJSON
    Test querying the service records in JSON format
    • Pass/Fail criteria
      • Pass: The response contains every matched entries.
      • Fail: The response does not contains every matched entries.
  • testGlue2QueryCollection
    Test querying the service records in GLUE 2.0 format.
    • Pass/Fail criteria
      • Pass: The response contains every matched value in XML format.
      • Fail: The response does not contains every matched value in XML format.
  • testGlue2QueryCollectionWithParamMIMEType
    Test querying the service records in GLUE 2.0 format from the services resource.
    • Pass/Fail criteria
      • Pass: The response contains every matched value in XML format.
      • Fail: The response does not contains every matched value in XML format.

TestChildrenResource

  • emptyTest
    Get children from the DSR when it does not have.
    • Pass/Fail criteria
      • Pass: The response empty list of children.
      • Fail: The response is null or contains more then zero entries.
  • childCheckinTest
    Children check in test and query the list of children.
    • Pass/Fail criteria
      • Pass: The children list contains only one entry.
      • Fail: The response is null or contains more then one entries.
  • moreChildCheckinTest
    Check in more then one child DSR and query the list of children.
    • Pass/Fail criteria
      • Pass: The children list contains every child entries.
      • Fail: One or more entries are missing from the children list.
  • firstCheckinTest
    The response entity contains a special value by the first time of check in.
    • Pass/Fail criteria
      • Pass: Response contains the good entity.
      • Fail: Response does not contains the good entity.
  • emptyURLCheckinTest
    Try to check in empty URL to the children list.
    • Pass/Fail criteria
      • Pass: Get warning message in the response.
      • Fail: Does not get warning message in the response.

TestPingResource

  • test
    Call the ping resource.
    • Pass/Fail criteria
      • Pass: Response is not null.
      • Fail: Response is null.

TestServiceAdminResource

  • testRegisterService
    Try to register one entry through the serviceadmin resource.
    • Pass/Fail criteria
      • Pass: The entry able to register to the database.
      • Fail: When the entry exist in the database.
  • testUpdateService
    Try to update one entry through the serviceadmin resource.
    • Pass/Fail criteria
      • Pass: Able to updated the entry.
      • Fail: When the entry does not exist in the database.
  • testDeleteResource
    Try to delete one entry through the serviceadmin resource.
    • Pass/Fail criteria
      • Pass: Removed the service entry from the database.
      • Fail: The service entry exist in the database after the delete method.

eu.emi.dsr.glue2

TestGlue2Mapper

  • testToQueryResultMultipleXML
  • testToQueryResultSingleXML
    Tests whether the glue document is properly generated from JSON
    • Pass/Fail criteria
      • Pass: Valid glue document
      • Fail: N/A

-- GaborSzigeti - 04-May-2012

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r7 - 2012-05-06 - AhmedShirazMemonExCern
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    EMI All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback