You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by cs...@apache.org on 2017/06/26 16:00:01 UTC

[incubator-openwhisk-cli] 21/36: wsk api create to enable CORS by default (#2184)

This is an automated email from the ASF dual-hosted git repository.

csantanapr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-cli.git

commit be52bf8f23a63f83c77d2bf9527fd3d345f9b577
Author: Mark Deuser <md...@us.ibm.com>
AuthorDate: Tue Apr 25 18:49:03 2017 -0400

    wsk api create to enable CORS by default (#2184)
    
    * Always enable CORS when API created via CLI
    - Update parsing to display entire swagger contents, including CORS setting
    - Similar update needed when importing complete swagger
    
    * Update test to include confirmation of "cors" field being set.
---
 tests/src/test/scala/whisk/core/cli/test/ApiGwTests.scala | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/src/test/scala/whisk/core/cli/test/ApiGwTests.scala b/tests/src/test/scala/whisk/core/cli/test/ApiGwTests.scala
index fb02b83..50ede51 100644
--- a/tests/src/test/scala/whisk/core/cli/test/ApiGwTests.scala
+++ b/tests/src/test/scala/whisk/core/cli/test/ApiGwTests.scala
@@ -671,6 +671,7 @@ class ApiGwTests
       rr = apiGet(basepathOrApiName = Some(testapiname))
       rr.stdout should include(testbasepath)
       rr.stdout should include(s"${actionName}")
+      rr.stdout should include regex (""""cors":\s*\{\s*\n\s*"enabled":\s*true""")
       rr.stdout should include regex (s""""target-url":\\s+.*${actionName}.json""")
     }
     finally {

-- 
To stop receiving notification emails like this one, please contact
"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>.