Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.56 KB | None | 0 0
  1. job_name: ltd e2e hikey
  2. timeouts:
  3. job:
  4. minutes: 60
  5. action:
  6. minutes: 40
  7. connection:
  8. minutes: 2
  9. priority: medium
  10. visibility: public
  11.  
  12. protocols:
  13. lava-multinode:
  14. timeout:
  15. minutes: 20
  16. roles:
  17. bt-joiner:
  18. connection: ssh
  19. count: 1
  20. expect_role: host
  21. host_role: host
  22. request: lava-start
  23. timeout:
  24. minutes: 30
  25. tinyproxy:
  26. connection: ssh
  27. count: 1
  28. expect_role: host
  29. host_role: host
  30. request: lava-start
  31. timeout:
  32. minutes: 30
  33. mosquitto:
  34. connection: ssh
  35. count: 1
  36. expect_role: host
  37. host_role: host
  38. request: lava-start
  39. timeout:
  40. minutes: 30
  41. hawkbit:
  42. count: 1
  43. device_type: qemu
  44. context:
  45. arch: amd64
  46. timeout:
  47. minutes: 30
  48. host:
  49. count: 1
  50. device_type: hi6220-hikey
  51. timeout:
  52. minutes: 30
  53.  
  54. actions:
  55. - deploy:
  56. role:
  57. - host
  58. authorize: ssh
  59. timeout:
  60. minutes: 15
  61. to: fastboot
  62. namespace: ltd-test
  63. connection: serial
  64. images:
  65. ptable:
  66. url: http://builds.96boards.org/snapshots/linaro-technologies/openembedded/master-upstream-dev/hikey/rpb/latest/bootloader/ptable-linux-8g.img
  67. fastboot:
  68. url: http://builds.96boards.org/snapshots/linaro-technologies/openembedded/master-upstream-dev/hikey/rpb/latest/bootloader/fip.bin
  69. boot:
  70. url: http://builds.96boards.org/snapshots/linaro-technologies/openembedded/master-upstream-dev/hikey/rpb/50/boot-0.0+AUTOINC+06e4def583-4adfdd06f1-r0-hikey-20170521005917-50.uefi.img
  71. system:
  72. url: http://builds.96boards.org/snapshots/linaro-technologies/openembedded/master-upstream-dev/hikey/rpb/50/rpb-ltd-gateway-image-hikey-20170521005917-50.rootfs.img.gz
  73. compression: gz
  74. apply-overlay: true
  75. # ensure that this job raises a network interface with DHCP before relying on internet access
  76. os: oe
  77.  
  78. - boot:
  79. role:
  80. - host
  81. namespace: ltd-test
  82. auto_login:
  83. login_prompt: "hikey login:"
  84. username: "linaro"
  85. password_prompt: "Password:"
  86. password: "linaro"
  87. login_commands:
  88. - echo linaro | sudo -S su
  89. - sudo su
  90. - whoami
  91. prompts:
  92. - "hikey:"
  93. timeout:
  94. minutes: 5
  95. method: uefi-menu
  96. commands: fastboot
  97.  
  98. - deploy:
  99. role:
  100. - hawkbit
  101. namespace: ltd-test
  102. timeout:
  103. minutes: 10
  104. to: tmpfs
  105. images:
  106. rootfs:
  107. url: http://snapshots.linaro.org/ubuntu/images/qa-kvm/latest/ubuntu-kvm-image.img.gz
  108. image_arg: -drive format=raw,file={rootfs}
  109. compression: gz
  110. os: debian
  111.  
  112. - deploy:
  113. role:
  114. - bt-joiner
  115. connection: ssh
  116. namespace: ltd-test
  117. os: oe
  118. protocols:
  119. lava-multinode:
  120. - action: prepare-scp-overlay
  121. request: lava-wait
  122. # messageID matches hostID
  123. messageID: ipv4
  124. message:
  125. # the key of the message matches value of the host_key
  126. # the value of the message gets substituted
  127. ipaddr: $ipaddr
  128. timeout: # delay_start timeout
  129. minutes: 21
  130. timeout:
  131. minutes: 22
  132. to: ssh
  133.  
  134. - deploy:
  135. role:
  136. - tinyproxy
  137. connection: ssh
  138. namespace: ltd-test
  139. os: oe
  140. protocols:
  141. lava-multinode:
  142. - action: prepare-scp-overlay
  143. request: lava-wait
  144. # messageID matches hostID
  145. messageID: ipv4
  146. message:
  147. # the key of the message matches value of the host_key
  148. # the value of the message gets substituted
  149. ipaddr: $ipaddr
  150. timeout: # delay_start timeout
  151. minutes: 21
  152. timeout:
  153. minutes: 22
  154. to: ssh
  155.  
  156. - deploy:
  157. role:
  158. - mosquitto
  159. connection: ssh
  160. namespace: ltd-test
  161. os: oe
  162. protocols:
  163. lava-multinode:
  164. - action: prepare-scp-overlay
  165. request: lava-wait
  166. # messageID matches hostID
  167. messageID: ipv4
  168. message:
  169. # the key of the message matches value of the host_key
  170. # the value of the message gets substituted
  171. ipaddr: $ipaddr
  172. timeout: # delay_start timeout
  173. minutes: 21
  174. timeout:
  175. minutes: 22
  176. to: ssh
  177.  
  178. - boot:
  179. role:
  180. - hawkbit
  181. namespace: ltd-test
  182. method: qemu
  183. media: tmpfs
  184. prompts:
  185. - 'root@linaro'
  186.  
  187. - boot:
  188. role:
  189. - bt-joiner
  190. method: ssh
  191. namespace: ltd-test
  192. prompts:
  193. - 'hikey:'
  194. parameters:
  195. hostID: ipv4 # messageID
  196. host_key: ipaddr # message key
  197. timeout:
  198. minutes: 23
  199.  
  200. - boot:
  201. role:
  202. - tinyproxy
  203. method: ssh
  204. namespace: ltd-test
  205. prompts:
  206. - 'hikey:'
  207. parameters:
  208. hostID: ipv4 # messageID
  209. host_key: ipaddr # message key
  210. timeout:
  211. minutes: 23
  212.  
  213. - boot:
  214. role:
  215. - mosquitto
  216. method: ssh
  217. namespace: ltd-test
  218. prompts:
  219. - 'hikey:'
  220. parameters:
  221. hostID: ipv4 # messageID
  222. host_key: ipaddr # message key
  223. timeout:
  224. minutes: 23
  225.  
  226. - test:
  227. role:
  228. - host
  229. namespace: ltd-test
  230. timeout:
  231. minutes: 5
  232. definitions:
  233. - from: inline
  234. repository:
  235. metadata:
  236. format: Lava-Test Test Definition 1.0
  237. name: ltd-gw-basic-test
  238. description: "LTD Gateway Basic Test"
  239. run:
  240. steps:
  241. - 'echo "PermitRootLogin yes" >> /etc/ssh/sshd_config'
  242. - systemctl restart sshd.socket
  243. - ifconfig -a
  244. - lava-send ipv4 ipaddr=$(lava-echo-ipv4 eth0)
  245. - lava-send lava_start
  246. - sleep 1000
  247. name: ltd-gw-basic-test
  248. path: inline/ltd-gw-tests.yaml
  249.  
  250. - test:
  251. role:
  252. - hawkbit
  253. namespace: ltd-test
  254. timeout:
  255. minutes: 5
  256. definitions:
  257. - from: inline
  258. repository:
  259. metadata:
  260. format: Lava-Test Test Definition 1.0
  261. name: ltd-docker-hawkbit
  262. description: "Spins up Docker Container for Hawkbit"
  263. install:
  264. deps:
  265. - docker.io
  266. run:
  267. steps:
  268. - ifconfig -a
  269. - lava-send hawkbit_ip ipaddr=$(lava-echo-ipv4 ens3)
  270. - lava-test-case docker-runtime --shell docker ps
  271. - lava-test-case start-hawkbit --shell docker run -it -p 8080:8080 hawkbit/hawkbit-update-server
  272. name: ltd-docker-hawkbit
  273. path: inline/ltd-hawkbit-tests.yaml
  274.  
  275. - test:
  276. role:
  277. - bt-joiner
  278. namespace: ltd-test
  279. timeout:
  280. minutes: 5
  281. definitions:
  282. - from: inline
  283. repository:
  284. metadata:
  285. format: Lava-Test Test Definition 1.0
  286. name: ltd-gw-bt-joiner
  287. description: "LTD Gateway Bluetooth Joiner Test"
  288. run:
  289. steps:
  290. - lava-test-case docker-start-bt-joiner --shell docker run -it --privileged --net=host --read-only --tmpfs=/var/run --tmpfs=/var/lock --tmpfs=/var/log --name bt-joiner linarotechnologies/bt-joiner:latest-arm64
  291. name: ltd-gw-bt-joiner-test
  292. path: inline/ltd-gw-tests.yaml
  293.  
  294. - test:
  295. role:
  296. - tinyproxy
  297. namespace: ltd-test
  298. timeout:
  299. minutes: 5
  300. definitions:
  301. - from: inline
  302. repository:
  303. metadata:
  304. format: Lava-Test Test Definition 1.0
  305. name: ltd-gw-tinyproxy
  306. description: "LTD Gateway Tinyproxy Test"
  307. run:
  308. steps:
  309. - lava-wait hawkbit_ip
  310. - IPADDR=`awk -F '=' '{print $2}' /tmp/lava_multi_node_cache.txt`
  311. - lava-test-case docker-start-tinyproxy --shell docker run -it --net=host --read-only --tmpfs=/var/run --tmpfs=/var/log --tmpfs=/tmp --add-host=gitci.com:$IPADDR --name tinyproxy linarotechnologies/tinyproxy:latest-arm64
  312. name: ltd-gw-tinyproxy-test
  313. path: inline/ltd-gw-tests.yaml
  314.  
  315. - test:
  316. role:
  317. - mosquitto
  318. namespace: ltd-test
  319. timeout:
  320. minutes: 5
  321. definitions:
  322. - from: inline
  323. repository:
  324. metadata:
  325. format: Lava-Test Test Definition 1.0
  326. name: ltd-gw-mosquitto
  327. description: "LTD Gateway Mosquitto Test"
  328. run:
  329. steps:
  330. - touch /home/linaro/mosquitto.conf
  331. - lava-test-case docker-start-mosquitto --shell docker run -it --net=host --read-only -v /home/linaro/mosquitto.conf:/etc/mosquitto/conf.d/mosquitto.conf --name mosquitto linarotechnologies/mosquitto:latest-arm64
  332. name: ltd-gw-tinyproxy-test
  333. path: inline/ltd-gw-tests.yaml
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement