Versions Compared

Key

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

...

  1. Build and start A&AI simulator
  2. Build and start

    Code Block
    languagebash
    $ cd ~/has/conductor/conductor/tests/functional/simulators
    $ ./build_aaisim.sh
    $ ./run_aaisim.sh

    Note: DNS name resolution issue may arise during building the simulator, because it needs the **web** Python package. TBD: Provide more detailed instructions. How does one there is an issues? what can one do about it?

  3. Verify A&AI Simulator (Hint: in examples, 0.0.0.0 is IPAddress of A&AI container as per $ docker container ls)
    1. $ docker container ls
    2. expected result: image names should include: aaisim
    3. $ curl http://0.0.0.0:8081/healthcheck
    4. expected result: {"status": "success"}
    5. $ curl http://0.0.0.0:8081/aai/v13/cloud-infrastructure/cloud-regions/
    6. expected result: {"cloud-region": [{"group-assignments": ...much more...

...

  1. Build and start MUSIC

      ...

        1. Configure access to MUSIC:

      ...

        1. Edit music/distribution/dockermusic/music.sh to change user/password:

      ...

        1. Code Block
          languagebash
          ```text
          -CASS_USERNAME=cassandra1

      ...

        1. 
          -CASS_PASSWORD=cassandra1

      ...

        1. 
          +CASS_USERNAME=conductor

      ...

        1. 
          +CASS_PASSWORD=c0nduct0r

      ...

        1. 
          ```

      ...

        1. Edit music/distribution/dockermusic/properties/music.properties to change user/password:

      ...

        1. Code Block
          languagebash
          ```text
          -cassandra.user=cassandra1

      ...

        1. 
          -cassandra.password=cassandra1

      ...

        1. 
          +cassandra.user=conductor

      ...

        1. 
          +cassandra.password=c0nduct0r

      ...

        1. 
          ```
      1. 2. Build and start MUSIC containers
      2. = $ cd ~//music/distribution/dockermusic
      3. - $ ./music.sh start
      4. 3. Verify MUSIC components
      5. - $ docker container ls
      6. - expected result: image names should include:
      7. music-tomcat
      8. music-zk
      9. music-war
      10. music-db


      1. Build and Start HAS
      1. Configure HAS
      - Edit has/conductor.conf
      * search for [music_api]
      ```text
      -server_url = http://localhost:8080/MUSIC/rest/v2
      +server_url = http://<<IP address of 'music-tomcat' container>>:8080/MUSIC/rest/v2
      ```
      * [aai]
      ```text
      -server_url = https://aai.api.simpledemo.onap.org:8443/aai
      +server_url = http://<<IP address of 'aaisim' container>>:8081/aai
      ```
      - Hint: find IPAddress of containers via:
      $ docker container ls
      and look at first term in PORTS column

      2. Onboard the HAS "conductor" application into MUSIC, E.g.:
      - $ curl -X POST -H 'Content-Type: application/json' \
      -d '{"appname" : "conductor","userId": "conductor","password": "c0nduct0r","isAAF": false}' \
      0.0.0.0:8080/MUSIC/rest/v2/admin/onboardAppWithMusic
      - expected result: {"Generated AID":"2895db7e-2746-426a-822f-80c367161c65","Success":"Your
      application conductor has been onboarded with MUSIC."}

      ...