summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2019-03-07Freeze go-socket.io & go-engine.io version to v1.0.1Sebastien Douheret3-5/+164
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>
2019-02-05Fixed/improved tests startup and exithalibut_7.90.0halibut/7.90.07.90.0Sebastien Douheret2-12/+57
- 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>
2019-02-05Bump Copyright to 2019Sebastien Douheret1-2/+2
Change-Id: I92762e7fa98e6251cd393557ffd28a75694d73e7 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-12-19Switch to https protocol for IoT.bzh urlsguppy_6.99.4guppy_6.99.3guppy/6.99.4guppy/6.99.36.99.46.99.3Sebastien Douheret1-8/+10
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>
2018-12-18Update to latest FF verison and add GG releasesSebastien Douheret1-1/+4
Bug : SPEC-2033 Change-Id: I919c106bc8d108992b2d91b5daa1eb27b2245fcf Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-11-06Check dependency tools before running testsguppy_6.99.2guppy_6.99.1guppy/6.99.2guppy/6.99.16.99.26.99.1Sebastien Douheret2-0/+43
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>
2018-11-06Add checking about go-race requested to run testsSebastien Douheret1-3/+6
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>
2018-11-06Remove dependency of killallSebastien Douheret1-1/+1
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>
2018-11-06Allow XDT_SDK overwriteSebastien Douheret2-6/+8
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>
2018-10-26Removed incorrect setting for systemd serviceSebastien Douheret2-8/+0
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>
2018-10-24testify: assert replace by requireClément Bénier6-168/+168
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>
2018-10-24testExec: error exec with a fakeidClément Bénier1-2/+12
add an assert when exec with a fakeid Change-Id: I56b9e3372c31f7941e705a40d40d72a1b31ca679 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-10-23packaging: add dependency to jqSebastien Douheret3-1/+4
Change-Id: Ib306a87e03ad34e6cda921134ce7cc35644c1218 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-10-22Added support of new image_url fieldSebastien Douheret4-1/+27
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>
2018-10-22Rework zip package versioningSebastien Douheret1-8/+7
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>
2018-10-22Fix testsSebastien Douheret6-28/+44
Change-Id: I9b8dbe26bfe6d1d32cbce09a89b7d0f47d7ef4b5 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-10-22Prevent db-dump failure when sdk is not validSebastien Douheret1-1/+3
Change-Id: I4cbc0b38333938836dac738f2240a05be1d6a09f Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-10-22Adds 'image_url' JSON parameter to an SDK entryJohann CAHIER1-66/+169
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>
2018-10-18Unset LD_LIBRARY_PATH before executing commands (exec api)Sebastien Douheret2-11/+21
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>
2018-10-18Fix qemu sdk detectionSebastien Douheret1-16/+36
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>
2018-10-16update xds-server package in dockerClément Bénier16-44/+479
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>
2018-10-15fileconfig: env variables after default valuesClément Bénier1-7/+7
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>
2018-10-11Fixed incorrect detection of installed SDKsSebastien Douheret1-0/+13
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>
2018-10-09Update naming of SDKs provided by IoT.bzhSebastien Douheret1-2/+5
Change-Id: I83df3abdb19c5075353510cba9dc296de8c04548 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-10-09Cleanup useless SDKs from SDKs db/listSebastien Douheret1-7/+4
Also ignored some known file when parsing SDK directory Change-Id: I8f9f127325b7743ebe3866d1145f928ded49322b Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-10-08Improved again instructions readability of static pageSebastien Douheret1-3/+3
Change-Id: I5932964d9cde7dc9c2d864905629c1f563bd149d Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-10-04Update doc link and clarify instructionsSebastien Douheret2-4/+5
Change-Id: If8ca1ce6d0fb33e7e9a684391ec4b856073dc48e Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-10-03Update sdks list definitionSebastien Douheret1-2/+5
Change-Id: I1a9efa4818f1d12409b6a04b0f4ce08363d2258f Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-10-02fix sdks list bug: move rgx into db-dumpClément Bénier2-6/+11
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>
2018-09-24Cleanup sdks*.json files while executing distcleanguppy_6.90.0guppy/6.90.06.90.0Sebastien Douheret1-1/+1
Change-Id: Id6dad6a45f5f83dbd483397a151494202c247a13 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-09-20Update SDK definition - add flounderSebastien Douheret1-0/+4
Change-Id: I2ccadbd30705c4726152a9e86108cdb25608e872 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
2018-09-18Filter output of environmentJosé Bollo1-1/+1
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>
2018-08-24test target: launch user sshd for opening termflounder_5.99.6flounder_5.99.5flounder/5.99.6flounder/5.99.55.99.65.99.5Clément Bénier8-84/+357
- 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>
2018-08-21Disable Go cache when running testsSebastien Douheret1-2/+3
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>
2018-08-21Merge remote-tracking branch 'origin/sandbox/benierc/test'Clément Bénier18-2/+1453
Change-Id: Idc200f10e217119df9edfebbaf839c5fd45b19a4 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-08-21test exec: waiting exit event after exec cmdsandbox/benierc/testClément Bénier1-16/+6
Change-Id: I355f9a55e9641ce60c787b8b02f84f35bccc8e67 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-08-21main_test.go: explicit main test entryClément Bénier1-0/+0
Change-Id: I26e3e03f914b390cc84ba29160ec6e8cee07162f Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-08-21test xds-server: explicitly kill processClément Bénier1-1/+1
Change-Id: If28b332c51318ff264f247c7f52a5dc253c20a0f Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-08-21test target: disable terminals tests for nowClément Bénier1-72/+70
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>
2018-08-21test logs: hide logClément Bénier7-52/+64
logs are printable with VERBOSE != "" Change-Id: I170aed2e73db673ba6276410b1dddd3389239457 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-08-21test target: open 1 terminal for connection errorsClément Bénier1-4/+19
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>
2018-08-21tests: add comments and logsClément Bénier6-17/+91
Change-Id: I31ef0fa20a74f76b696ac9cb768fac18e2197ea5 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-08-21test exec/sdk: use sdk for building exec projectClément Bénier4-29/+102
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>
2018-08-21test exec: remove git2go and cloning afb-helloworldClément Bénier7-38/+233
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>
2018-08-21test target: factorise testsClément Bénier1-75/+114
Change-Id: Ie03d2ae8be30180c1471ea4dfe7bc4cea4d01492
2018-08-21test target: listenning events for termsClément Bénier1-1/+60
Change-Id: Idbd8509b946b96b39d76bc0aede921c14a3481eb Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-08-21test target: update -> listen to eventsClément Bénier1-0/+35
Change-Id: I21026ea34566239a23c3d8bac39b888618169a4b Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-08-21test sdks: close channelsClément Bénier1-0/+2
Change-Id: Ibab87254b1ef39ff8bb6166a5ff160233b6533e0 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-08-21test exec: waiting for events and timeout while buildingClément Bénier1-2/+19
Change-Id: I4caf0dd3e59f920f602131638c58e11beb9f3e08 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>
2018-08-21tests: better handle websocket clientClément Bénier4-79/+66
Change-Id: Iffc7370c52457e6d90e88e30c95b37ae3c60bce3 Signed-off-by: Clément Bénier <clement.benier@iot.bzh>