Test the Review Moderation and Sentiment Analysis

1. Test the solution

  1. You have now completed the setup of all the components needed. Navigate to {openshift_cluster_console}/topology/ns/globex-serverless-{user_name}?view=graph[Topology View, window="console"] to view the final topology.

serverless namespace final toplogy
  1. To open the Globex web application, click on the openshift console open url symbol next to the globex-web deployment in the topology view. Or click here to launch the web application: Globex Web Application.

    serverless launch webapp toplogy
  2. Click on the Login link on the top-right corner of the home page

    webapp login
  3. You will be navigated to the Keycloak login page

    If Keycloak login page doesn’t show up, you might be already logged as a different user. Please click on Logout, and login to this page again.

  4. Login using any of the following usernames. The password is openshift for all these users.

    1. asilva (or) mmiller (or) asanders (or) cjones (or) pwong

      webapp login keycloak
  5. Click on the Cool Stuff Store link on the top-menu to view the list of products available

    webapp products
  6. Click on any product to view the details page.

  7. Type a review comment and click on Submit.

    webapp products details
  8. If the review comment is appropriate it will then appear in the same page after a few seconds.

    webapp products view review
  9. In the OpenShift Developer> Topology view, you will also notice that the Knative services have all turned fully blue because they have been triggered by the reviews submission and so have scaled up.
    In a few seconds two of them (except persist-reviews) will go back to a white ring denoting that they have been scaled down to zero since they are not in use anymore.

    reviews knative services
  10. Now, go ahead and leave review comments of as many products as you like. If you are feeling adventurous you can try a few inappropriate comments too to see how they are being moderated ;)

    1. Any inappropriate commment is replaced with a note from Globex and displayed on the websiite as shown below

      inapprop review