src/xds/xds-server.git
4 years agoFix expired link 21/21921/1 halibut 8.0.0 8.0.1 8.0.2 8.0.3 8.0.4 8.0.5 8.0.6 8.99.1 8.99.2 8.99.3 8.99.4 8.99.5 halibut/8.0.0 halibut/8.0.1 halibut/8.0.2 halibut/8.0.3 halibut/8.0.4 halibut/8.0.5 halibut/8.0.6 halibut_8.0.0 halibut_8.0.1 halibut_8.0.2 halibut_8.0.3 halibut_8.0.4 halibut_8.0.5 halibut_8.0.6 icefish/8.99.1 icefish/8.99.2 icefish/8.99.3 icefish/8.99.4 icefish/8.99.5 icefish_8.99.1 icefish_8.99.2 icefish_8.99.3 icefish_8.99.4 icefish_8.99.5
Li Xiaoming [Mon, 22 Jul 2019 12:16:38 +0000 (20:16 +0800)]
Fix expired link

Bug-AGL: SPEC-2654

Change-Id: I131eb972ce90daef714027bf4450113e47f212d4
Signed-off-by: Li Xiaoming <lixm.fnst@cn.fujitsu.com>
5 years agoUse go module as dependency tool instead of glide 32/20932/5 7.99.1 7.99.2 7.99.3 halibut/7.99.1 halibut/7.99.2 halibut/7.99.3 halibut_7.99.1 halibut_7.99.2 halibut_7.99.3
Sebastien Douheret [Fri, 8 Mar 2019 15:59:14 +0000 (16:59 +0100)]
Use go module as dependency tool instead of glide

Get ride of glide tool (marked as obsolete) and go module instead to
populate dependency packages.

See also: https://github.com/golang/go/wiki/Modules

Bug-AGL: SPEC-2289

Change-Id: I8f459a9f80f501c2b6019566eaa3db3a9b986396
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoFreeze go-socket.io & go-engine.io version to v1.0.1 99/20499/1
Sebastien Douheret [Thu, 7 Mar 2019 17:36:51 +0000 (18:36 +0100)]
Freeze go-socket.io & go-engine.io version to v1.0.1

Latest go-socket.io (v1.4) is not backward compatible, and
consequently breaks xds-server build.
Stick to v1.0.1 while waiting update (migration) of xds-server code.

Bug: SPEC-2250

Change-Id: I4664ea82d2e5f88204636831503e78543d8bf3d8
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoFixed/improved tests startup and exit 23/19823/2 7.90.0 halibut/7.90.0 halibut_7.90.0
Sebastien Douheret [Thu, 31 Jan 2019 22:03:49 +0000 (23:03 +0100)]
Fixed/improved tests startup and exit

- dynamic wait of xds-server startup by retrying connection
   establishement with a timeout
- gracefully stop xds-server on test end and force kill if graceful
   stop doesn't work
- remove hardcoded Http port and only use value set by _test-config.json file

Change-Id: Idb1ba42f6c45851427b4f1c8955d6b14a15aae69
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoBump Copyright to 2019 21/19821/2
Sebastien Douheret [Fri, 4 Jan 2019 16:17:14 +0000 (17:17 +0100)]
Bump Copyright to 2019

Change-Id: I92762e7fa98e6251cd393557ffd28a75694d73e7
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoSwitch to https protocol for IoT.bzh urls 65/19065/2 6.99.3 6.99.4 guppy/6.99.3 guppy/6.99.4 guppy_6.99.3 guppy_6.99.4
Sebastien Douheret [Tue, 18 Dec 2018 23:14:38 +0000 (00:14 +0100)]
Switch to https protocol for IoT.bzh urls

http is still supported but redirected to https and consequently
curl commands used in this script receive a 302 response that
silently skips IoT.bzh sdks processing.

Change-Id: I6854be1f3f8a42d77657fe45658782c3dc5b8b38
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoUpdate to latest FF verison and add GG releases 61/19061/2
Sebastien Douheret [Tue, 18 Dec 2018 21:30:33 +0000 (22:30 +0100)]
Update to latest FF verison and add GG releases

Bug : SPEC-2033

Change-Id: I919c106bc8d108992b2d91b5daa1eb27b2245fcf
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoCheck dependency tools before running tests 79/17779/1 6.99.1 6.99.2 guppy/6.99.1 guppy/6.99.2 guppy_6.99.1 guppy_6.99.2
Sebastien Douheret [Tue, 6 Nov 2018 17:17:32 +0000 (18:17 +0100)]
Check dependency tools before running tests

Add a check of all dependency tools before running tests in order to
report a clear error instead of a cryptic test failure.

Change-Id: I7b642428fb4ada7eec2de0c4c45f612ae6888b33
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoAdd checking about go-race requested to run tests 45/17745/2
Sebastien Douheret [Tue, 6 Nov 2018 11:13:37 +0000 (12:13 +0100)]
Add checking about go-race requested to run tests

go-race package must be install in order to run tests with --race option
set else you will get such kind of error:
  runtime.RaceErrors: relocation target __tsan_report_count not defined

Change-Id: I037d53e10550c5fa74cbb6913d43614ccaa65d11
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoRemove dependency of killall 49/17749/2
Sebastien Douheret [Tue, 6 Nov 2018 11:18:53 +0000 (12:18 +0100)]
Remove dependency of killall

killall utility is part of psmisc package that is not installed by
default. So use pkill utility instead.

Change-Id: Ib1e46b603560ea8ee6041a52b3c482114ec340ac
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoAllow XDT_SDK overwrite 47/17747/2
Sebastien Douheret [Tue, 6 Nov 2018 11:17:30 +0000 (12:17 +0100)]
Allow XDT_SDK overwrite

Test framework or simply a user may need to set XDT_SDK variable even
if /etc/xdtrc file exists.
Also change default location of webapp to www to allow to run xds-server
without the need to set any config file.

Change-Id: I403778e597cbcfd2c16d5ab6b603073ed3a230f0
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoRemoved incorrect setting for systemd service 71/17471/2
Sebastien Douheret [Fri, 26 Oct 2018 14:31:35 +0000 (16:31 +0200)]
Removed incorrect setting for systemd service

xds-server.service aims to be a user systemd service. So the user
must enable/disable/start/stop xds-server.service user systemd service
manually using for example following commands:
 systemctl --user enable xds-server.service
 systemctl --user start xds-server.service

Change-Id: Ia5cbcb684f07843c4b774bb5666c01f659af6b3d
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agotestify: assert replace by require 95/17395/3
Clément Bénier [Tue, 23 Oct 2018 13:09:06 +0000 (15:09 +0200)]
testify: assert replace by require

require handles tests to be aborted during an assertion
contrary to assert

Change-Id: I3062046515c74509ae7ea1b24b7242a42d0191c1
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agotestExec: error exec with a fakeid 93/17393/3
Clément Bénier [Tue, 23 Oct 2018 13:07:59 +0000 (15:07 +0200)]
testExec: error exec with a fakeid

add an assert when exec with a fakeid

Change-Id: I56b9e3372c31f7941e705a40d40d72a1b31ca679
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agopackaging: add dependency to jq 07/17407/2
Sebastien Douheret [Tue, 23 Oct 2018 18:45:35 +0000 (20:45 +0200)]
packaging: add dependency to jq

Change-Id: Ib306a87e03ad34e6cda921134ce7cc35644c1218
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoAdded support of new image_url field 61/17361/1
Sebastien Douheret [Mon, 22 Oct 2018 15:22:21 +0000 (17:22 +0200)]
Added support of new image_url field

Since commit ecef0475a0a9d51, url to download AGL image matching a
SDK has been introduced in SDK definition file. This commit adds
ImageURL field (json:image_url) in return json object of GET /sdks

Change-Id: If52c39292ac3d5e44c4f61b8b51c48d9661beb2d
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoRework zip package versioning 25/17325/4
Sebastien Douheret [Sun, 21 Oct 2018 19:59:12 +0000 (21:59 +0200)]
Rework zip package versioning

In order to always have a number that's incrementing, use git commits
number for last detected tag.
Also update command used to extract version from tag in order to bypass
problem describe in issue SPEC-1782.

Change-Id: I923ff924ae79593612b39c917e9f52d1a4875276
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoFix tests 23/17323/4
Sebastien Douheret [Fri, 19 Oct 2018 20:16:11 +0000 (22:16 +0200)]
Fix tests

Change-Id: I9b8dbe26bfe6d1d32cbce09a89b7d0f47d7ef4b5
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoPrevent db-dump failure when sdk is not valid 21/17321/2
Sebastien Douheret [Fri, 19 Oct 2018 20:17:04 +0000 (22:17 +0200)]
Prevent db-dump failure when sdk is not valid

Change-Id: I4cbc0b38333938836dac738f2240a05be1d6a09f
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoAdds 'image_url' JSON parameter to an SDK entry 05/17305/3
Johann CAHIER [Fri, 19 Oct 2018 08:41:14 +0000 (10:41 +0200)]
Adds 'image_url' JSON parameter to an SDK entry

Adds a link to installable target image corresponding to the current
SDK. The easest way to implement this was to manage a pair of suffix
for earch source of SDKs (AGL or IoT.bzh), The input data are
refactored as following: each source has an URL prefix, a list of
directories (possibly including wildcard) to be browsed, relative to
prefix URL, and a pair of suffixes : one for SDK, one for ilage
(relative to prefix + directory).

When an SDK installation file is found, the corresponding image is
searched by replacing the SDK suffix by the image one, requesting this
URL, and grepping for a filename matching agl-demo-plaform-crosssdk-*
With different possible extensions:
- .vmdk(.xz) in case of qEMU image, or
- .rootfs.wic(.xz), when avaible, or
- .rrotfs.tar(.xz)

If no matching image file is found, the image_url is set to the
directory URL containing the image file candidates.

If requesting the image directory URL content leads to server error
(mainly error 404 Not Found, but also any other error), the image_url
value will be set to null in the JSON output.

Makes the trace system more flexible, using an verbose -v|vv option.

KNOWN ISSUES:
    - '-nogfx' images are not named agl-demo-plaform-crosssdk-* on the
      AGL server. image_url is set to the image directory URL for such
      SDKs/images
    - on IoT.bzh, older images directories are named 'image' while
      newer ones are named 'images'. Advantage given to newer images,
      this lead to have older SDKs' image_url set to null.

Change-Id: I8c029d3ebbdef1a096c5cb225fd40405e91b312d
Signed-off-by: Johann CAHIER <johann.cahier@iot.bzh>
5 years agoUnset LD_LIBRARY_PATH before executing commands (exec api) 53/17253/2
Sebastien Douheret [Wed, 17 Oct 2018 13:32:16 +0000 (15:32 +0200)]
Unset LD_LIBRARY_PATH before executing commands  (exec api)

New environment-setup-*-agl-linux file, used to set environment
variables to use an SDK, now checks if LD_LIBRARY_PATH is set or not.
And not empty LD_LIBRARY_PATH is considered as misconfigured and
prevent to use SDK.
So unset by default LD_LIBRARY_PATH env variable and allow to disable
this unset by setting ldLibPathNoReset field of ExecArgs command.

For info, reported error message when call environement-setup-* script:

Your environment is misconfigured, you probably need to
'unset LD_LIBRARY_PATH' but please check why this was set in the
first place and that it's safe to unset.
The SDK will not operate correctly in most cases when LD_LIBRARY_PATH
is set.
For more references see:
 http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN80
 http://xahlee.info/UnixResource_dir/_/ldpath.html

Change-Id: I386b92b04ebd33db39ac617acffa4e15b21213ad
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoFix qemu sdk detection 41/17241/4
Sebastien Douheret [Fri, 12 Oct 2018 14:38:41 +0000 (16:38 +0200)]
Fix qemu sdk detection

arch for qemu sdk is qemux86-64 in sdk-latest.json but
extracted value for environement file is corei7-64.

Change-Id: Id2656de1648b6c9289d42c9f55fa8e1e4e056760
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoupdate xds-server package in docker 29/16929/8
Clément Bénier [Mon, 1 Oct 2018 09:51:47 +0000 (11:51 +0200)]
update xds-server package in docker

scripts/package-update: bash scripts to update xds-server package in docker
monitor updates: default time is 24h, a update is tried at startup
api/v1: 2 new requests:
    - get(updates): return various information about xds-server packages
    - post(updates): update xds-server packages

Change-Id: I1673f7860e57cfe1d4abe5a24609ee46a90b67d8
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agofileconfig: env variables after default values 29/17229/1
Clément Bénier [Mon, 15 Oct 2018 12:31:33 +0000 (14:31 +0200)]
fileconfig: env variables after default values

resolv env variables after setting default values if needed
obviously, it will also resolv default values
so it will fix EXEPATH bug

Change-Id: If334d44374d021f9439288a46ed5827ea3b9fbe2
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agoFixed incorrect detection of installed SDKs 57/17157/2
Sebastien Douheret [Wed, 10 Oct 2018 23:02:51 +0000 (01:02 +0200)]
Fixed incorrect detection of installed SDKs

Add an additional verification about uuid that is based on url
field to identify SDK.

Change-Id: Iefe43ff37d928c7592c0c9c8c14b9f537080b0b6
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoUpdate naming of SDKs provided by IoT.bzh 11/17111/1
Sebastien Douheret [Tue, 9 Oct 2018 16:11:27 +0000 (18:11 +0200)]
Update naming of SDKs provided by IoT.bzh

Change-Id: I83df3abdb19c5075353510cba9dc296de8c04548
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoCleanup useless SDKs from SDKs db/list 09/17109/1
Sebastien Douheret [Tue, 9 Oct 2018 13:25:33 +0000 (15:25 +0200)]
Cleanup useless SDKs from SDKs db/list

Also ignored some known file when parsing SDK directory

Change-Id: I8f9f127325b7743ebe3866d1145f928ded49322b
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoImproved again instructions readability of static page 01/17001/1
Sebastien Douheret [Mon, 8 Oct 2018 17:14:32 +0000 (19:14 +0200)]
Improved again instructions readability of static page

Change-Id: I5932964d9cde7dc9c2d864905629c1f563bd149d
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoUpdate doc link and clarify instructions 45/16945/1
Sebastien Douheret [Thu, 4 Oct 2018 19:48:26 +0000 (21:48 +0200)]
Update doc link  and clarify instructions

Change-Id: If8ca1ce6d0fb33e7e9a684391ec4b856073dc48e
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoUpdate sdks list definition 05/16905/2
Sebastien Douheret [Wed, 3 Oct 2018 15:01:59 +0000 (17:01 +0200)]
Update sdks list definition

Change-Id: I1a9efa4818f1d12409b6a04b0f4ce08363d2258f
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agofix sdks list bug: move rgx into db-dump 73/16873/6
Clément Bénier [Mon, 1 Oct 2018 15:18:39 +0000 (17:18 +0200)]
fix sdks list bug: move rgx into db-dump

SPEC-1777
only match what defines a variable
remove set because it adds simple quote with special characters

Change-Id: Ib7c13869c9d965c0c0dae1ae69eeeaf446b1ce58
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agoCleanup sdks*.json files while executing distclean 59/16759/1 6.90.0 guppy/6.90.0 guppy_6.90.0
Sebastien Douheret [Mon, 24 Sep 2018 14:21:15 +0000 (16:21 +0200)]
Cleanup sdks*.json files while executing distclean

Change-Id: Id6dad6a45f5f83dbd483397a151494202c247a13
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoUpdate SDK definition - add flounder 11/16711/1
Sebastien Douheret [Thu, 20 Sep 2018 15:11:01 +0000 (17:11 +0200)]
Update SDK definition - add flounder

Change-Id: I2ccadbd30705c4726152a9e86108cdb25608e872
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoFilter output of environment 89/16689/1
José Bollo [Tue, 18 Sep 2018 16:22:10 +0000 (18:22 +0200)]
Filter output of environment

Remove functions (using set -o posix) and values contaning
new lines.

Without that change on some environment, the script
scripts/sdks/agl/db-dump may fail line 51

Change-Id: I5118c0054d50ab3c7ac2757aff820adec2584cb3
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agotest target: launch user sshd for opening term 31/16231/6 5.99.5 5.99.6 flounder/5.99.5 flounder/5.99.6 flounder_5.99.5 flounder_5.99.6
Clément Bénier [Wed, 22 Aug 2018 12:06:34 +0000 (14:06 +0200)]
test target: launch user sshd for opening term

- fixtures for user ssh server (authorized_keys, ssh, sshd_config,
ssh_host_rsa_key, ssh.pub)
- exec following cmd
$ /usr/bin/sshd
    - D
    -f sshd_config
    -h ssh_host_rsa_key
    -o AuthorizedKeysFile=authorized_keys
    -p port
- uncomment former terminal tests for open/close

Change-Id: If1765c4860ef3a95f7a92f1f9652427828b98083
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agoDisable Go cache when running tests 13/16213/1
Sebastien Douheret [Tue, 21 Aug 2018 17:17:06 +0000 (19:17 +0200)]
Disable Go cache when running tests

By default, if the test executable and command line match a previous run
and the files and environment variables consulted by that run have not
changed either, go test will not really run tests but just print the
previous test output.

For more info, see https://golang.org/doc/go1.10#test

Change-Id: Id37e1a8f7bdcb10584cc9c0f09f0558b319b793a
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoMerge remote-tracking branch 'origin/sandbox/benierc/test' 11/16211/1
Clément Bénier [Tue, 21 Aug 2018 16:58:26 +0000 (18:58 +0200)]
Merge remote-tracking branch 'origin/sandbox/benierc/test'

Change-Id: Idc200f10e217119df9edfebbaf839c5fd45b19a4
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agotest exec: waiting exit event after exec cmd sandbox/benierc/test
Clément Bénier [Tue, 21 Aug 2018 16:54:10 +0000 (18:54 +0200)]
test exec: waiting exit event after exec cmd

Change-Id: I355f9a55e9641ce60c787b8b02f84f35bccc8e67
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agomain_test.go: explicit main test entry
Clément Bénier [Tue, 21 Aug 2018 16:56:23 +0000 (18:56 +0200)]
main_test.go: explicit main test entry

Change-Id: I26e3e03f914b390cc84ba29160ec6e8cee07162f
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agotest xds-server: explicitly kill process
Clément Bénier [Tue, 21 Aug 2018 16:06:09 +0000 (18:06 +0200)]
test xds-server: explicitly kill process

Change-Id: If28b332c51318ff264f247c7f52a5dc253c20a0f
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agotest target: disable terminals tests for now
Clément Bénier [Tue, 21 Aug 2018 15:59:34 +0000 (17:59 +0200)]
test target: disable terminals tests for now

disable open/close and using terminals for now
there is issues with ssh connections

Change-Id: I90828896af60c5ffc0541cd0e5b34b5225c50ea7
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agotest logs: hide log
Clément Bénier [Tue, 21 Aug 2018 15:56:10 +0000 (17:56 +0200)]
test logs: hide log

logs are printable with VERBOSE != ""

Change-Id: I170aed2e73db673ba6276410b1dddd3389239457
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agotest target: open 1 terminal for connection errors
Clément Bénier [Tue, 21 Aug 2018 09:06:36 +0000 (11:06 +0200)]
test target: open 1 terminal for connection errors

before opening all terminals, open just one to check there is
no ssh connection problems

Change-Id: I700a00264a96480ac4656be6338e2d728f509627
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agotests: add comments and logs
Clément Bénier [Mon, 20 Aug 2018 15:39:39 +0000 (17:39 +0200)]
tests: add comments and logs

Change-Id: I31ef0fa20a74f76b696ac9cb768fac18e2197ea5
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agotest exec/sdk: use sdk for building exec project
Clément Bénier [Mon, 20 Aug 2018 13:43:22 +0000 (15:43 +0200)]
test exec/sdk: use sdk for building exec project

source sdk before building helloworld project
fix sdks misconfiguration and multiple sdk installs

Change-Id: I019e6b6e2704737774e93f08fb79d2f4a84a12b9
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agotest exec: remove git2go and cloning afb-helloworld
Clément Bénier [Fri, 17 Aug 2018 14:45:30 +0000 (16:45 +0200)]
test exec: remove git2go and cloning afb-helloworld

replace it by fixtures in test/helloworld and copying repo to
XDS_SERVER_ROOT_CFG_DIR and cloning app-templates repo into it

Change-Id: I4f3d9cfae0f1b81bd7994e172235b1fbc25fd383
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agotest target: factorise tests
Clément Bénier [Fri, 17 Aug 2018 07:59:12 +0000 (09:59 +0200)]
test target: factorise tests

Change-Id: Ie03d2ae8be30180c1471ea4dfe7bc4cea4d01492

5 years agotest target: listenning events for terms
Clément Bénier [Thu, 16 Aug 2018 13:19:17 +0000 (15:19 +0200)]
test target: listenning events for terms

Change-Id: Idbd8509b946b96b39d76bc0aede921c14a3481eb
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agotest target: update -> listen to events
Clément Bénier [Thu, 16 Aug 2018 12:18:28 +0000 (14:18 +0200)]
test target: update -> listen to events

Change-Id: I21026ea34566239a23c3d8bac39b888618169a4b
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agotest sdks: close channels
Clément Bénier [Tue, 14 Aug 2018 14:46:06 +0000 (16:46 +0200)]
test sdks: close channels

Change-Id: Ibab87254b1ef39ff8bb6166a5ff160233b6533e0
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agotest exec: waiting for events and timeout while building
Clément Bénier [Tue, 14 Aug 2018 14:44:47 +0000 (16:44 +0200)]
test exec: waiting for events and timeout while building

Change-Id: I4caf0dd3e59f920f602131638c58e11beb9f3e08
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agotests: better handle websocket client
Clément Bénier [Tue, 14 Aug 2018 14:29:07 +0000 (16:29 +0200)]
tests: better handle websocket client

Change-Id: Iffc7370c52457e6d90e88e30c95b37ae3c60bce3
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agotest target: add test for target and terminals
Clément Bénier [Tue, 14 Aug 2018 14:07:02 +0000 (16:07 +0200)]
test target: add test for target and terminals

Change-Id: I3761debe4ffe8971a7e94a55136b5dc34a8c65c2
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agotest exec: add test for exec
Clément Bénier [Thu, 9 Aug 2018 14:28:31 +0000 (16:28 +0200)]
test exec: add test for exec

Change-Id: I505496ca3a8641c401b802faea7a467986a819c9
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years ago[test exec]: in progress
Clément Bénier [Tue, 31 Jul 2018 14:03:08 +0000 (16:03 +0200)]
[test exec]: in progress

Change-Id: Ie8eb5b66ecffa7cdb87a79a1543d7b303332f190
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agofunctionnal test: install test install fake sdk
Clément Bénier [Fri, 27 Jul 2018 09:37:51 +0000 (11:37 +0200)]
functionnal test: install test install fake sdk

install a fake sdk and waiting for event to end the test

Change-Id: I5c2125f32a1fb4a80f9b251174d15117eef26f9a
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agosdk_test: draft in progress
Clément Bénier [Wed, 25 Jul 2018 14:02:30 +0000 (16:02 +0200)]
sdk_test: draft in progress

add tests for testing sdk - draft

Change-Id: I81f2f4ff75d6256fd092afd5213ea4f3370fcc68
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agofunctionnal test: separate tests into files
Clément Bénier [Thu, 19 Jul 2018 17:33:43 +0000 (19:33 +0200)]
functionnal test: separate tests into files

separate tests into files
each file represent a entry in the XDS-SERVER API
the created files are:
- version
- config
- folders

Change-Id: I32d24f5b277ab853f6c190a96433aca5b4fda1d5
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agofunctionnal test: update and add tests
Clément Bénier [Thu, 19 Jul 2018 13:25:26 +0000 (15:25 +0200)]
functionnal test: update and add tests

- TestFolders: update
- TestFoldersEmptyValues
- TestFoldersPathMapConfig

Change-Id: I04dcbcbe6d8fc80ed3ef2cabbcf5dfd2952d1635
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agofunctionnal test: initial commit for tests
Clément Bénier [Thu, 19 Jul 2018 08:57:02 +0000 (10:57 +0200)]
functionnal test: initial commit for tests

Launch xds-server process and run test based on xds REST APIs.
list of tests
- version
- config
- folders(in progress)

Change-Id: I4312c9ab067b2d6e157f8828c2fbe467ef187733
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agoFixed xds-server service startup in VM. 71/16171/1
Sebastien Douheret [Mon, 20 Aug 2018 15:38:53 +0000 (17:38 +0200)]
Fixed xds-server service startup in VM.

When xds-server service in startup in a VM (like Virtualbox Debian9 VM),
the first start may fails with "Cannot determined local IP" error  even if
"After=network-online.target" statement is set in service file.
So do both, set After and Restart on-failure statements.

Change-Id: I27705dc8fbb0ac5547a1100e126392d372078e12
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agosdk force install: already installed 69/16169/2
Clément Bénier [Mon, 20 Aug 2018 13:31:30 +0000 (15:31 +0200)]
sdk force install: already installed

fix sdk Install when force boolean is true
Install function was returning when sdk was already installed

Change-Id: Ie8530ebe697bb66b17ac051804b42e367531134b
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agoterminal: when closing term, pass status to closing 11/16111/4
Clément Bénier [Tue, 14 Aug 2018 09:37:32 +0000 (11:37 +0200)]
terminal: when closing term, pass status to closing

status in return TerminalConfig is still opened when a term is closed

Change-Id: Idacb67607ca32bfe35738d86e784512cb7758b02
Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
5 years agoFixed GPG keyserver intermittenly failure 55/16155/1
Sebastien Douheret [Mon, 20 Aug 2018 07:47:44 +0000 (09:47 +0200)]
Fixed GPG keyserver intermittenly failure

Workaround about issue with the particular GPG keyserver:
trying several explicit keyservers until the command succeeds

Change-Id: I7410c07e25d25006c9252b97036c3b33ca183ae6
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoIgnored webapp/install error when DESTDIR doesn't exist 57/15757/1 5.99.3 flounder/5.99.3 flounder_5.99.3
Sebastien Douheret [Wed, 25 Jul 2018 16:26:38 +0000 (18:26 +0200)]
Ignored webapp/install error when DESTDIR doesn't exist

Change-Id: I80e79fc350a1905cb3c4a98ef0a7cf0659a18c88
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoAdd missing event when starting SDK install 45/15745/1
Sebastien Douheret [Wed, 25 Jul 2018 13:52:17 +0000 (15:52 +0200)]
Add missing event when starting SDK install

Change-Id: I32892a8ad64ed05a93aedf413a81b6e8c50c26f7
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoAdd XDS_SERVER_WORKSPACE_DIR env var support 49/15549/1 5.99.2 flounder/5.99.2 flounder_5.99.2
Sebastien Douheret [Fri, 20 Jul 2018 13:17:21 +0000 (15:17 +0200)]
Add XDS_SERVER_WORKSPACE_DIR env var support

By default xds-server uses $HOME/xds-workspace directory to access to
user shared workspace directory. This root directory may be
changed by defining XDS_SERVER_WORKSPACE_DIR environment variable.

Change-Id: Ib786ba9a954b0b093216295d37236a80f78f2f2c
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoFixed error about unwanted usr directory 37/15437/2 sandbox/SebD
Sebastien Douheret [Wed, 18 Jul 2018 09:30:16 +0000 (11:30 +0200)]
Fixed error about unwanted usr directory

Change-Id: I8404ee2dd1eff5c20924e841c0a37ea16c85cc17
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoAdd XDS_SERVER_ROOT_CFG_DIR env var support 47/15447/2
Sebastien Douheret [Wed, 18 Jul 2018 13:41:51 +0000 (15:41 +0200)]
Add XDS_SERVER_ROOT_CFG_DIR env var support

By default xds-server uses $HOME/.xds/server directory to save all
config. This changes allows user to change this root directory by
defining XDS_SERVER_ROOT_CFG_DIR environment variable.

Change-Id: Iebde8dcf2d27b77671c7332bac04295d31659e24
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoPackaging: ignore expected rpmlint warnings 35/15435/1
Sebastien Douheret [Fri, 13 Jul 2018 15:31:44 +0000 (17:31 +0200)]
Packaging: ignore expected rpmlint warnings

Change-Id: I90d9cf407aafe4c4700613276e4975ef51bc315a
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoFixed GOPATH setting for VSCode 33/15433/1
Sebastien Douheret [Fri, 13 Jul 2018 15:18:26 +0000 (17:18 +0200)]
Fixed GOPATH setting for VSCode

Change-Id: I3f75faef18305dca2c848af64dd6feb4ea68c23d
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoRemoved unwanted usr directory from package 69/15069/1
Sebastien Douheret [Fri, 6 Jul 2018 11:22:26 +0000 (13:22 +0200)]
Removed unwanted usr directory from package

Don't know exactly which tool create this directory (I suspect
npm install process) but 'usr' directory should not be part of XDS
zip package.

Change-Id: Id6f4659f16b707ca5eb9a621947dce8cf2a5b674
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoFix REVISION tag and rename obs service template 63/15063/1
Sebastien Douheret [Fri, 6 Jul 2018 09:02:14 +0000 (11:02 +0200)]
Fix REVISION tag and rename obs service template

_service.in is a template so file extention must be .in

Change-Id: Ia93058b5c505a118fd00208c1ce7654f4b2d3daf
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoMinor fixes in Makefile 61/15061/1
Sebastien Douheret [Fri, 6 Jul 2018 09:20:51 +0000 (11:20 +0200)]
Minor fixes in Makefile

Change-Id: I24d971fb254afccb1ed65d412729b32ca53d251e
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoAdd retry (3 times) when glide download fails 59/15059/1
Sebastien Douheret [Fri, 6 Jul 2018 07:39:37 +0000 (09:39 +0200)]
Add retry (3 times) when glide download fails

Change-Id: I97d70664ed6e62831a70d46f721ed2024ee9b574
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoUpdate/fix rpm and deb packaging 23/15023/1
Sebastien Douheret [Thu, 5 Jul 2018 08:24:49 +0000 (10:24 +0200)]
Update/fix rpm and deb packaging

- fix packaging to be compliant with latest subprojects hierarchy
  (Master, Master-Next, ElectricEel, ...)
- fix rpmlint warnings/error

Change-Id: Ib8c2014624542d3dfb81818ed605dc7a2dedf2c5
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoUsed latest version of xds-common package 23/14723/1 5.99.1 flounder/5.99.1 flounder_5.99.1
Sebastien Douheret [Wed, 27 Jun 2018 14:39:59 +0000 (16:39 +0200)]
Used latest version of xds-common package

Change-Id: I9d66707880f15e8966f4bcbe93d6edc126c483f5
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoFixed sdk from local file installation 21/14721/1
Sebastien Douheret [Wed, 27 Jun 2018 13:52:14 +0000 (15:52 +0200)]
Fixed sdk from local file installation

Rework sdk uuid management because previous code prevented to install
local sdk using following command:
 xds-cli sdks install --file $HOME/xds-workspace/my_local_sdk.sh

Change-Id: I20bac8a76d32b005a6775e936756c96048651766
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoUpdated AGL sdks list definition 19/14719/1
Sebastien Douheret [Fri, 8 Jun 2018 15:01:41 +0000 (17:01 +0200)]
Updated AGL sdks list definition

Change-Id: I239b052f2d2bf4caf6fe4e756ee372e4ae6060ec
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
5 years agoAdd packaging files 99/13999/1
Ronan Le Martret [Tue, 15 May 2018 16:10:19 +0000 (18:10 +0200)]
Add packaging files

 * it's easier to manage native build package.

Change-Id: I358a07f2569ac52c792443345244d3294a1c3b8b
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
6 years agoConvert db-dump to python3
Sebastien Douheret [Thu, 5 Apr 2018 15:40:22 +0000 (17:40 +0200)]
Convert db-dump to python3

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoFixed meta tags in path to avoid conflict with spec syntax v1.1.1
Sebastien Douheret [Thu, 5 Apr 2018 09:15:41 +0000 (11:15 +0200)]
Fixed meta tags in path to avoid conflict with spec syntax

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoRework SDK default directory.
Sebastien Douheret [Wed, 4 Apr 2018 19:59:45 +0000 (21:59 +0200)]
Rework SDK default directory.

Default SDK directory is $HOME/xds-workspace/.sdks expect if /xdt/sdk
exists (backward compatibility).
Default SDK directory can be set by defining XDT_SDK variable in
/etc/xdtrc file

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoFixed sdk uuid setting during install [SPEC-1377]
Sebastien Douheret [Wed, 4 Apr 2018 19:11:07 +0000 (21:11 +0200)]
Fixed sdk uuid setting during install [SPEC-1377]

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoAdd package lock file
Sebastien Douheret [Wed, 4 Apr 2018 19:03:53 +0000 (21:03 +0200)]
Add package lock file

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoAdded Target and Terminal events through WS.
Sebastien Douheret [Thu, 15 Mar 2018 13:50:27 +0000 (14:50 +0100)]
Added Target and Terminal events through WS.

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoFixed terminal output (support escape and control characters)
Sebastien Douheret [Fri, 9 Mar 2018 16:19:50 +0000 (17:19 +0100)]
Fixed terminal output (support escape and control characters)

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoAdded target and terminal support. v1.1.0
Sebastien Douheret [Fri, 23 Feb 2018 17:45:15 +0000 (18:45 +0100)]
Added target and terminal support.

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoAvoid duplicate SDK install dir - SPEC-1252
Sebastien Douheret [Thu, 8 Feb 2018 15:49:02 +0000 (16:49 +0100)]
Avoid duplicate SDK install dir - SPEC-1252

- install sdk in a directory that includes a unique id (built from install url
or path). SDKs are now install under:
 <SDK_ROOT_DIR>/<PROFILE>/<VERSION>/<ARCH>/<UID>

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoAuto update SDK DB on startup.
Sebastien Douheret [Tue, 6 Feb 2018 16:07:30 +0000 (17:07 +0100)]
Auto update SDK DB on startup.

Auto update db is enable by default (setting sdkDbUpdate = "startup")
but it can be disable by setting sdkDbUpdate to "disable" in server config
file.

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoDon't send command output too fast. 5.0.1 eel/5.0.1 eel_5.0.1
Sebastien Douheret [Fri, 26 Jan 2018 16:19:13 +0000 (17:19 +0100)]
Don't send command output too fast.

Changes done in eows package of xds-common now allow to accumulate command output during a period
of time (eg. 500ms) or up to the end of a line.
Usage of this feature is mandatory to avoid to post to
much buffers in websocket and consequently flood client (eg. web-browser)

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoReworked SDKs events (introduced sdk-state-change)
Sebastien Douheret [Tue, 23 Jan 2018 14:31:00 +0000 (15:31 +0100)]
Reworked SDKs events (introduced sdk-state-change)

Split add/remove/state-change from installing output
(AKA SDKManagement event) in order to clearly separate events
used to send installation output and sdk config changes.

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoMigrate db-dump script in python avoid nodejs dep 31/13231/3
Sebastien Douheret [Mon, 22 Jan 2018 13:17:39 +0000 (14:17 +0100)]
Migrate db-dump script in python avoid nodejs dep

- Also, workaround SPEC-1252 matching first detected SDK and break.
- Fixed SDK date extraction.

Bug-AGL: SPEC-1249

Change-Id: Ia1cb3e9466d0f8f958f6e8759287f801a5b81d04
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoFix not existing /etc/xdtrc file 29/13229/2
Romain Forlot [Tue, 16 Jan 2018 17:06:32 +0000 (18:06 +0100)]
Fix not existing /etc/xdtrc file

Change-Id: I1bfcb754fe7fd510f88d16153c00cb1f966aabed
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoMake sure using space as indentation style 27/13227/2
Romain Forlot [Tue, 16 Jan 2018 17:03:23 +0000 (18:03 +0100)]
Make sure using space as indentation style

Also use the same indent rules

Change-Id: I50ca200d7186ba133ea3a6f0137120d4090ed16e
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
6 years agoFixed GOPATH setup while debugging in VSC
Sebastien Douheret [Thu, 18 Jan 2018 17:00:11 +0000 (18:00 +0100)]
Fixed GOPATH setup while debugging in VSC

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years ago[webapp] Add minimum size for button 03/13203/2
Ronan Le Martret [Mon, 15 Jan 2018 10:57:40 +0000 (11:57 +0100)]
[webapp] Add minimum size for button

Change-Id: I2f8e6057408227b5cf48455918ac4850eaa49d84
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
6 years agoUpdate sdks list with EEL/5.0.0 release. v1.0.1
Sebastien Douheret [Wed, 10 Jan 2018 08:25:36 +0000 (09:25 +0100)]
Update sdks list with EEL/5.0.0 release.

Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
6 years agoFixed go linter warnings.
Sebastien Douheret [Wed, 10 Jan 2018 08:06:52 +0000 (09:06 +0100)]
Fixed go linter warnings.

6 years agoFixed source env sdk file when file is not set.
Sebastien Douheret [Tue, 9 Jan 2018 15:01:19 +0000 (16:01 +0100)]
Fixed source env sdk file when file is not set.