Changes between Version 39 and Version 40 of OpenFlow/FOAM/Testing
- Timestamp:
- 05/06/13 15:41:11 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OpenFlow/FOAM/Testing
v39 v40 1068 1068 = GENI AM API = 1069 1069 1070 This section tests whether a given FOAM server is compliant with the GENI AM API, using Omni's built-in acceptance test suite. Stanford/ONLab and the GPO generally runthese tests when new versions of FOAM are released, but you can run them yourself too, if you want.1070 This section tests whether a given FOAM server is compliant with the GENI AM API, using Omni's built-in acceptance test suite. The GPO generally runs these tests when new versions of FOAM are released, but you can run them yourself too, if you want. 1071 1071 1072 1072 Pre-requisites/assumptions: … … 1074 1074 * You're set up to use Omni in general, and have it in your path as 'omni', i.e. you've successfully used Omni to reserve GENI resources (and have the latest version of the software, a user credential signed by a CA that's trusted by the FOAM server you intend to test, a working omni_config file, etc). 1075 1075 * You have four rspec files needed to test with (three valid request rspecs, and one valid manifest rspec). We plan to make some sample rspecs available. 1076 * You have rspeclint in your path. 1076 1077 1077 1078 You can run these tests wherever you usually use Omni; they don't need to run on the FOAM/FV server. 1078 1079 1079 As of this writing, the current version of GCF is 1.6.2; some of these steps may need to be different if you have a more recent version than that.1080 1081 Note that this is a streamlined summary of the full docs for running the GCF GENI AM API Acceptance Test Suite. The full docs for that suite are in .../gcf- 1.6.2/acceptance_tests/AM_API/README-accept-AMAPI.txt; there's also muchmore information at http://trac.gpolab.bbn.com/gcf/wiki/AmApiAcceptanceTests.1080 As of this writing, the current version of GCF is 2.2.1; some of these steps may need to be different if you have a more recent version than that. 1081 1082 Note that this is a streamlined summary of the full docs for running the GCF GENI AM API Acceptance Test Suite. The full docs for that suite are in .../gcf-2.2.1/acceptance_tests/AM_API/README-accept-AMAPI.txt; there's also more information at http://trac.gpolab.bbn.com/gcf/wiki/AmApiAcceptanceTests. 1082 1083 1083 1084 == Setup == … … 1087 1088 {{{ 1088 1089 foamserver=foam.example.edu 1089 }}}1090 1091 Set the AM API URL:1092 1093 {{{1094 am=https://${foamserver}:3626/foam/gapi/11095 1090 }}} 1096 1091 … … 1108 1103 If you don't already have the latest version of Omni, you can get it from http://www.gpolab.bbn.com/local-sw/. 1109 1104 1110 The rest of these docs assume that you have GCF 1.6.2 in ~/src/gcf-1.6.2. 1111 1112 Change into that directory, and copy in your rspec files: 1113 1114 {{{ 1115 cd ~/src/gcf-1.6.2/acceptance_tests/AM_API 1105 The rest of these docs assume that you have GCF 2.2.1 in ~/src/gcf-2.2.1. 1106 1107 Change into that directory, set your Python path, and copy in your rspec files: 1108 1109 {{{ 1110 cd ~/src/gcf-2.2.1/acceptance_tests/AM_API 1111 export PYTHONPATH=~/src/gcf-2.2.1/src 1116 1112 cp $rspec_request1 request1.xml 1117 1113 cp $rspec_request3 request2.xml … … 1121 1117 }}} 1122 1118 1123 Set your Python path, and run the tests: 1124 1125 {{{ 1126 export PYTHONPATH=~/src/gcf-1.6.2/src 1127 ./am_api_accept.py -a $am 1119 Set the V1 AM API URL, and run the V1 tests: 1120 1121 {{{ 1122 am=https://${foamserver}:3626/foam/gapi/1 1123 rm acceptance.log 1124 ./am_api_accept.py -V1 -a $am 1125 }}} 1126 1127 Set the V2 AM API URL, and run the V2 tests: 1128 1129 {{{ 1130 am=https://${foamserver}:3626/foam/gapi/2 1131 rm acceptance.log 1132 ./am_api_accept.py -V2 -a $am 1128 1133 }}} 1129 1134 1130 1135 If you'd like more verbose details about what tests it's running, you can add '--v'. 1131 1136 1132 When not in verbose mode, thiswill run for a few minutes, and should produce output like1137 When not in verbose mode, each of those will run for a few minutes, and should produce output like 1133 1138 1134 1139 {{{ 1135 1140 ............. 1136 1141 ---------------------------------------------------------------------- 1137 Ran 13 tests in 202.744s1142 Ran 13 tests in 718.018s 1138 1143 1139 1144 OK