dellcloudedge/barclamp-network — pull request #71 by cdearborn (2012-09-20 19:51:05+00:00)
Title: Final set of network models and unit tests [1/1]

Added final set of network models and unit tests
Added headers to new db migration files
Refactored unit tests so common creation methods are in a helper class

crowbar_framework/app/models/conduit.rb | 8 +-
crowbar_framework/app/models/conduit_action.rb | 2 +
crowbar_framework/app/models/conduit_filter.rb | 2 +
crowbar_framework/app/models/conduit_rule.rb | 22 ++++
crowbar_framework/app/models/interface_selector.rb | 2 +
crowbar_framework/app/models/network.rb | 3 +-
crowbar_framework/app/models/network_service.rb | 14 ++-
.../db/migrate/20120822201408_create_routers.rb | 14 +++
.../db/migrate/20120914175602_create_buses.rb | 14 +++
.../db/migrate/20120914175721_create_bus_maps.rb | 14 +++
.../20120914175733_create_interface_maps.rb | 14 +++
.../20120918205152_create_interface_selectors.rb | 15 +++
.../20120918205303_create_conduit_filters.rb | 15 +++
.../20120919110841_create_conduit_actions.rb | 15 +++
.../migrate/20120919190544_create_conduit_rules.rb | 23 +++++
crowbar_framework/test/network_test_helper.rb | 105 ++++++++++++++++++++
crowbar_framework/test/unit/bus_map_model_test.rb | 25 +----
crowbar_framework/test/unit/bus_model_test.rb | 11 +--
crowbar_framework/test/unit/conduit_filter_test.rb | 4 +-
crowbar_framework/test/unit/conduit_rule_test.rb | 73 ++++++++++++++
crowbar_framework/test/unit/conduit_test.rb | 65 ++++++++++++
.../test/unit/interface_map_model_test.rb | 31 +-----
.../test/unit/ip_address_model_test.rb | 6 +-
crowbar_framework/test/unit/ip_range_model_test.rb | 25 +----
crowbar_framework/test/unit/network_model_test.rb | 67 ++++---------
.../test/unit/network_service_test.rb | 3 +-
crowbar_framework/test/unit/router_model_test.rb | 19 +---
27 files changed, 459 insertions(+), 152 deletions(-)