Resources
SDK Testing Script
4min
in situations where there are multiple litmus edge instances, you can use our prepared vscode executable http script to automate the initialization of the litmus edge instances for sdk testing before you begin before completing the steps below, ensure you do the following install visual studio code on your local computer verify your installed visual studio code has the rest client plugin run at least one virtual machine with litmus edge already installed run a second virtual machine with litmus edge manager already installed the http script http ############################################################# \# le initialization script prepare new litmus edge (le) instance to work with litmus edge manager (lem) \# initialization steps \# 1 change default litmus edge password and confirm eula \# 2 set litmus edge manager address and confirm ssl certificate \# 3 send activation request \############################################################# \##### variables ###### // le ip address @ip=your le ip address here // default le admin password @defaultpassword=default password // new le password @newpassword=new password // lem url @lemurl=your lem ip address here // activation code from lem (project > activation > configuration) @activationcode=acti vati onco nfig \###################### \##### init steps ###### \### first login to le \# @name login post https //{{ip}}/auth/v2/login {"username" "admin","password" "{{defaultpassword}}","providerid" "00000000 0000 0000 0000 000000000000"} \### confirm eula put https //{{ip}}/auth/v2/eula cookie jwtaccess={{login response body jwtaccess}} {"agree"\ true,"version" "1 0"} \### change le default password \# @name change put https //{{ip}}/auth/v2/password?locale=en us cookie jwtaccess={{login response body jwtaccess}} {"newpassword" "{{newpassword}}","currentpassword" "{{defaultpassword}}"} \### change activation url \# @name changeurl post https //{{ip}}/dm/cloud/url?locale=en us cookie jwtaccess={{change response body jwtaccess}} {"url" "{{lemurl}}"} \### confirm lem certificate put https //{{ip}}/dm/cloud/url/{{changeurl response body tx}}/confirm?locale=en us cookie jwtaccess={{change response body jwtaccess}} \### send activation code to lem post https //{{ip}}/dm/cloud?locale=en us cookie jwtaccess={{change response body jwtaccess}} {"code" "{{activationcode}}"} using the script visual studio code with rest client plugin is needed to execute the script as indicated in the script, under ##### variables ###### , modify the following values for variables as needed for your litmus edge and litmus edge manager instances @ip @defaultpassword @newpassword @lemurl @activationcode this script automates put / post requests to a litmus edge instance to communicate with the litmus edge manger instance as of right now, the script above is meant for manual litmus edge testing of common use cases such as the following password changes confirming eula changing cloud activation end points sending activation request the script is also meant to be added with additional request as necessary to test for additional features