[asterisk-commits] dlee: branch dlee/stasis-http r379265 - /team/dlee/stasis-http/tests/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jan 16 12:35:29 CST 2013


Author: dlee
Date: Wed Jan 16 12:35:26 2013
New Revision: 379265

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=379265
Log:
Fixed test summaries

Modified:
    team/dlee/stasis-http/tests/test_stasis_http.c

Modified: team/dlee/stasis-http/tests/test_stasis_http.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/stasis-http/tests/test_stasis_http.c?view=diff&rev=379265&r1=379264&r2=379265
==============================================================================
--- team/dlee/stasis-http/tests/test_stasis_http.c (original)
+++ team/dlee/stasis-http/tests/test_stasis_http.c Wed Jan 16 12:35:26 2013
@@ -352,7 +352,7 @@
 	case TEST_INIT:
 		info->name = __func__;
 		info->category = "/stasis/http/";
-		info->summary = "Test simple GET of an HTTP resource.";
+		info->summary = "Test GET of a wildcard resource.";
 		info->description = "Test Stasis HTTP binding logic.";
 		return AST_TEST_NOT_RUN;
 	case TEST_EXECUTE:
@@ -387,7 +387,7 @@
 	case TEST_INIT:
 		info->name = __func__;
 		info->category = "/stasis/http/";
-		info->summary = "Test simple GET of an HTTP resource.";
+		info->summary = "Test DELETE of an HTTP resource.";
 		info->description = "Test Stasis HTTP binding logic.";
 		return AST_TEST_NOT_RUN;
 	case TEST_EXECUTE:
@@ -422,7 +422,7 @@
 	case TEST_INIT:
 		info->name = __func__;
 		info->category = "/stasis/http/";
-		info->summary = "Test simple GET of an HTTP resource.";
+		info->summary = "Test POST of an HTTP resource.";
 		info->description = "Test Stasis HTTP binding logic.";
 		return AST_TEST_NOT_RUN;
 	case TEST_EXECUTE:
@@ -469,7 +469,7 @@
 	case TEST_INIT:
 		info->name = __func__;
 		info->category = "/stasis/http/";
-		info->summary = "Test simple GET of an HTTP resource.";
+		info->summary = "Test POST on a resource that doesn't support it.";
 		info->description = "Test Stasis HTTP binding logic.";
 		return AST_TEST_NOT_RUN;
 	case TEST_EXECUTE:
@@ -495,14 +495,14 @@
 	case TEST_INIT:
 		info->name = __func__;
 		info->category = "/stasis/http/";
-		info->summary = "Test simple GET of an HTTP resource.";
-		info->description = "Test Stasis HTTP binding logic.";
-		return AST_TEST_NOT_RUN;
-	case TEST_EXECUTE:
-		break;
-	}
-
-	stasis_http_invoke("foo/fizzle/i-am-not-a-resource", AST_HTTP_POST, get_params, headers, response);
+		info->summary = "Test GET on a resource that does not exist.";
+		info->description = "Test Stasis HTTP binding logic.";
+		return AST_TEST_NOT_RUN;
+	case TEST_EXECUTE:
+		break;
+	}
+
+	stasis_http_invoke("foo/fizzle/i-am-not-a-resource", AST_HTTP_GET, get_params, headers, response);
 
 	ast_test_validate(test, 0 == invocation_count);
 	ast_test_validate(test, 404 == response->response_code);




More information about the asterisk-commits mailing list