XMLWordPrintableJSON

Details

    Description

        1. k8s test

      k8s test: When the user submits the code to his/her repository or the `apache/submarine` git repository, the travis test task will automatically start.

      test-k8s runs test cases in travis. It will first create a k8s cluster by using the kind tool in travis,

      and then compile and package the submarine project in `submarine-dist` directory to build a docker image.

      Then use this latest code build docker image in k8s Deploy a submarine system. Then run test case in the `test-k8s/..` directory.

          1. Run k8s test in locally

      Executing the following command will perform the following actions:

      ```
      mvn -Phadoop-2.9 clean package install -DskipTests verify -DskipRat -am -pl submarine-test/test-k8s
      ```

      1. The submarine project will be compiled and packaged to generate `submarine-dist/target/submarine-<version>.tar.gz`
      2. Call the `submarine-cloud/hack/integration-test.sh` script

      + Call the `build.sh` script under `submarine/dev-support/docker-images/` to generate the latest `submarine`, `database` and `operator` docker images.
      + Call `submarine-cloud/hack/kind-cluster-build.sh` to create a k8s cluster
      + Call `submarine-cloud/hack/deploy-submarine.sh` to deploy the submarine system in the k8s cluster using the latest `submarine`, `database` and `operator` docker images.
      + Call the test cases in `submarine-test/test-k8s/` for testing.

          1. Run k8s test in travis

      Each time a code is submitted, travis is automatically triggered for testing.

      Attachments

        Issue Links

          Activity

            People

              liuxun Liu Xun
              liuxun Liu Xun
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m