Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added necessary test cases descriptions

  • Loading branch information...
commit c808c1048017cc983394964834fa8947a75b92fd 1 parent ee466d7
Felix Richter authored

Showing 1 changed file with 58 additions and 0 deletions. Show diff stats Hide diff stats

  1. +58 0 tests/genericore.tests
58 tests/genericore.tests
... ... @@ -0,0 +1,58 @@
  1 +Test Cases
  2 +==========
  3 +1. Configurable
  4 +1.1. Load via Constructor
  5 + - create new class and derive from Configurable
  6 + - Check if sample config is loaded correctly
  7 +1.2 Load via load_conf
  8 + - create new class, use load_conf
  9 + - check if sample config is loaded correctly
  10 +1.3 Load via load_conf_file
  11 + - create new Configurable Class, use load_conf_file to load sample config
  12 + - check if sample config is loaded correctly
  13 +
  14 +2. Configurator
  15 +2.1 Populate a parser
  16 + - see if a argparse object is extended
  17 +2.2 Eval a parser
  18 + - check if a config file can be loaded via command line
  19 + - check if logging.basicConfig is set
  20 +2.3 Check generate_unique
  21 + - check if generate_unique returns the same value for two distinct
  22 + objects with same configuration
  23 +2.4 Configure two distinct objects
  24 + - see if configuration is the same for both
  25 +
  26 +3. auto_amqp
  27 +3.1 generate a new object
  28 + - see if default config is loaded
  29 + - see if the config is loaded under the correct tree
  30 +3.2 create a connection (using a working amqp server, no exchanges)
  31 + - check if the application does not crash
  32 + - close connection
  33 +3.2 create object with input exchange set and one with output set
  34 + - send a simple message, check if it arrived
  35 +3.3 check if parser is populated correctly
  36 +3.4 check if parser is evaluated correctly
  37 + - check host,port,vhost
  38 +
  39 +4. multi_amqp
  40 +same as auto_amqp but
  41 +4.2 generate both objects at the same time with multi_amqp
  42 + - check if both objects are generated correctly
  43 + - send a message and check output
  44 +
  45 +5 MongoConnect
  46 +5.1 Create a new object
  47 + - see if default config is loaded correctly
  48 + - see if it is loaded under the correct tree
  49 +5.2 Try to connect to mongodb
  50 + - close connection afterwards
  51 +5.3 Connect to db and write something in the database, close it, open it
  52 + - then see if the written object is still there
  53 +5.4 Write in the database, close it, drop the connection next time and open
  54 + - see if it worked
  55 +5.5 check if populate_parser worked
  56 +5.6 check if eval_parser worked
  57 +
  58 +

0 comments on commit c808c10

Please sign in to comment.
Something went wrong with that request. Please try again.