George, I specifically referred to tests under service. Have we ever tried to 
get Jenkins to run then with security enabled?



Thanks.



From: Nash, George<mailto:[email protected]>
Sent: Friday, April 21, 2017 5:57 PM
To: Soemin Tjong<mailto:stjong at exchange.microsoft.com>; Dave 
Thaler<mailto:dthaler at microsoft.com>; Mats Wichmann<mailto:mats at 
wichmann.us>; iotivity-dev at lists.iotivity.org<mailto:iotivity-dev at 
lists.iotivity.org>
Subject: Re: [dev] Building and running tests in services with SECURED=1



I had replied much earlier to Mats original post but I sent to just Mats not 
the dev list.
My response was:

Jenkins is building and running the test with both SECURED=1 and SECURED=0.

If you check the auto_build.py script which is used by Jenkins to build.
First scons -c is called
Then scons TEST=1 RELEASE=false SECURED=0
Finally scons TEST=1 RELEASE=false SECURED=1

In addition all of the windows builds also run the tests with SECURED=1.

See: 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjira.iotivity.org%2Fbrowse%2FIOT-1428&data=02%7C01%7CWayakorn.Vadhanasin%40microsoft.com%7C70ebf8ce6f2a451f485708d4891a876c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636284194419653516&sdata=UM9bY9Q8CWniqTJ2pTTusXNfKFfzGwacAXYazfqodNY%3D&reserved=0
And 
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwiki.iotivity.org%2Ftest&data=02%7C01%7CWayakorn.Vadhanasin%40microsoft.com%7C70ebf8ce6f2a451f485708d4891a876c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636284194419653516&sdata=7mBGrCElNaED6FDuahGy6r01BjNKUSVS%2B4rlWgLzxeA%3D&reserved=0

George

-----Original Message-----
From: iotivity-dev-bounces at lists.iotivity.org 
[mailto:[email protected]] On Behalf Of Soemin Tjong
Sent: Friday, April 21, 2017 5:10 PM
To: Dave Thaler <dthaler at microsoft.com>; Mats Wichmann <mats at 
wichmann.us>; iotivity-dev at lists.iotivity.org
Subject: Re: [dev] Building and running tests in services with SECURED=1

TEST=1 does not require SECURE=0.   Except when the tests use the full IoTivity 
stack, e.g. a client/server tests.
Building with SECURE=0 removes the need for security provisioning (of the 
server and client), which is not straight forward to set up in Jenkins 
environment.

-----Original Message-----
From: iotivity-dev-bounces at lists.iotivity.org 
[mailto:[email protected]] On Behalf Of Dave Thaler via 
iotivity-dev
Sent: Friday, April 21, 2017 2:42 PM
To: Mats Wichmann <mats at wichmann.us>; iotivity-dev at lists.iotivity.org
Subject: Re: [dev] Building and running tests in services with SECURED=1

TEST=1 should not require SECURE=0.  If it does, we should fix that bug.

-----Original Message-----
From: iotivity-dev-bounces at lists.iotivity.org 
[mailto:[email protected]] On Behalf Of Mats Wichmann
Sent: Friday, April 21, 2017 2:11 PM
To: iotivity-dev at lists.iotivity.org
Subject: Re: [dev] Building and running tests in services with SECURED=1

On 04/21/2017 02:26 AM, Way Vadhanasin via iotivity-dev wrote:
> Jenkins appears to be building and running tests in services with SECURED=0. 
> When I tried to build these tests with SECURED=1, a big portion of them 
> failed. Is it time to remove SECURED=0 configuration out of Jenkins gate or 
> am I missing something? At the very least, we need to mandate that the 
> location of code that gets tested with SECURED=0 should also be tested with 
> SECURED=1 (I filed 
> IOT-2096<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjira.iotivity.org%2Fbrowse%2FIOT-2096&data=02%7C01%7Cdthaler%40microsoft.com%7C445e8e3742f3459e405108d488fb08e4%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636284059173288441&sdata=0R7%2BvIZ22zgIfEt1S60Co7KyKC3RAzfrIg6AM0hMnFY%3D&reserved=0>).
>
> Thoughts?
>
> Thanks,
> Way

I asked this question in some form a while back, and came away with the 
impression that TEST=1, needed for the unittests, required SECURED=0.  I may 
have misunderstood that reply.

We do need to make sure that testing happens in a context that is as close as 
possible to what will go into production, so I agree this needs to be examined 
and at least one qualifying test run needs to be with SECURED=1.


_______________________________________________
iotivity-dev mailing list
iotivity-dev at lists.iotivity.org
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.iotivity.org%2Fmailman%2Flistinfo%2Fiotivity-dev&data=02%7C01%7Cdthaler%40microsoft.com%7C445e8e3742f3459e405108d488fb08e4%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636284059173298440&sdata=7YSyZ8PTjilyU9GfT0qU6QaJ8XMQV7x29GjqQlDKaJU%3D&reserved=0
_______________________________________________
iotivity-dev mailing list
iotivity-dev at lists.iotivity.org
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.iotivity.org%2Fmailman%2Flistinfo%2Fiotivity-dev&data=02%7C01%7Cstjong%40exchange.microsoft.com%7C84d810cd6f964bd9117608d488ff38c8%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636284077127904007&sdata=3zydvBVq0YQF6OtFHKUI747sdto8nB7RBDSO4Q2jShQ%3D&reserved=0
_______________________________________________
iotivity-dev mailing list
iotivity-dev at lists.iotivity.org
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.iotivity.org%2Fmailman%2Flistinfo%2Fiotivity-dev&data=02%7C01%7CWayakorn.Vadhanasin%40microsoft.com%7C70ebf8ce6f2a451f485708d4891a876c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636284194419663516&sdata=6PYEq9%2BzXkm141MmySRLZhYzGck%2FqjOwWFI14udcRro%3D&reserved=0
_______________________________________________
iotivity-dev mailing list
iotivity-dev at lists.iotivity.org
https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.iotivity.org%2Fmailman%2Flistinfo%2Fiotivity-dev&data=02%7C01%7CWayakorn.Vadhanasin%40microsoft.com%7C70ebf8ce6f2a451f485708d4891a876c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636284194419663516&sdata=6PYEq9%2BzXkm141MmySRLZhYzGck%2FqjOwWFI14udcRro%3D&reserved=0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20170422/22c6327a/attachment.html>

Reply via email to