Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

    • Add a private key to the inventory/sample folder if a private key is used for ssh access.
    • Build docker image: sudo docker build -t kubespray .
    • Run once it’s built successfully: sudo docker run -v ~/.kube:/kubespray/config kubespray // this will copy over the Kubernetes config file to the home directory 
  1. Build a 2nd alpine/k8s container to complete the remaining steps for RIC platform deployment:
  2. Run a health check test case against the SUT that's supposed to have the RIC platform successfully deployed. Below a simple robot script for health check:
    ---
    - name: Shell module example
    hosts: 127.0.0.1
    tasks:

    - name: Check system information
    shell:
    "curl -v http://155.98.36.98:32080/appmgr/ric/v1/health/ready 2>&1"
    register: curl_info

    - debug:
    msg: "{{curl_info.stdout_lines}}”

To make things easier I also put together a Shell script that combines the above steps so you can just run it in one shot:

git clone https://github.com/pekwatch746/XTesting-demo.git

sudo ./demo.sh target-ip private-key-file-path working-directory

Happy XTesting and hope your test automation can be as easy as above 1-2-3.

...