`Whisk actions should not be able to use 'ping' in an action` test currently 
checks for specific error message and thus fails for our setup where message is 
different. Ours `ping: permission denied (are you root?)` vs expected `ping: 
icmp open socket: Operation not permitted`

Test failure message

```
org.scalatest.exceptions.TestFailedException: Some({"stdout":"PING google.com 
(172.217.5.238): 56 data bytes\n","stderr":"ping: permission denied (are you 
root?)\n"}) was not equal to Some({"stderr":"ping: icmp open socket: Operation 
not permitted\n","stdout":""})
        at 
org.scalatest.MatchersHelper$.indicateFailure(MatchersHelper.scala:340)
        at org.scalatest.Matchers$AnyShouldWrapper.shouldBe(Matchers.scala:6864)
        at 
system.basic.WskActionTests$$anonfun$7$$anonfun$apply$mcV$sp$7$$anonfun$apply$34.apply(WskActionTests.scala:269)
        at 
system.basic.WskActionTests$$anonfun$7$$anonfun$apply$mcV$sp$7$$anonfun$apply$34.apply(WskActionTests.scala:268)
        at 
common.WskTestHelpers$$anonfun$withActivation$1.apply$mcV$sp(WskTestHelpers.scala:272)
```

Activation response

```json
{
  "duration": 276,
  "name": "ping",
  "subject": "guest",
  "activationId": "6fc4f220c3c842c484f220c3c852c4b0",
  "publish": false,
  "annotations": [
    {
      "key": "path",
      "value": "guest/ping"
    },
    {
      "key": "waitTime",
      "value": -15999
    },
    {
      "key": "kind",
      "value": "nodejs:6"
    },
    {
      "key": "limits",
      "value": {
        "timeout": 60000,
        "memory": 256,
        "logs": 10
      }
    },
    {
      "key": "initTime",
      "value": 236
    }
  ],
  "version": "0.0.1",
  "response": {
    "result": {
      "stdout": "PING google.com (172.217.5.238): 56 data bytes\n",
      "stderr": "ping: permission denied (are you root?)\n"
    },
    "success": true,
    "status": "success"
  },
  "end": 1536587099497,
  "logs": [
    "2018-09-10T13:44:59.463416166Z stdout: Pinging to google.com",
    "2018-09-10T13:44:59.495845721Z stdout: stdout PING google.com 
(172.217.5.238): 56 data bytes",
    "2018-09-10T13:44:59.495859034Z stdout: ",
    "2018-09-10T13:44:59.495862754Z stdout: stderr ping: permission denied (are 
you root?)",
    "2018-09-10T13:44:59.495866021Z stdout: "
  ],
  "start": 1536587099221,
  "namespace": "guest"
}
```

[ Full content available at: 
https://github.com/apache/incubator-openwhisk/issues/4013 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to