Coder Social home page Coder Social logo

refarch-cloudnative-wfd-ui's Introduction

refarch-cloudnative-wfd-ui

Microservices Reference Application - What's For Dinner User-Interface Service

This project is part of the 'IBM Cloud Architecture - Microservices Reference Application for Netflix OSS' suite, available at https://github.com/ibm-cloud-architecture/refarch-cloudnative-wfd. There are three versions of the application, each available in their own branch, as documented below.

  • Microprofile - leverages the Microprofile framework for the Java microservices framework of choice.
  • Spring - leverages Spring Boot as the Java programming model of choice, with reliance on Kubernetes-based routing for microservices communication.
  • Spring Cloud - leverages the Spring Cloud programming model (including Netflix OSS componentes) as the Java microservices framework of choice.

refarch-cloudnative-wfd-ui's People

Contributors

osowski avatar edwinvandegrift avatar jesusmah avatar dbellagio avatar g-sampath avatar

Watchers

James Cloos avatar Fabio Gomez Diaz avatar  avatar Jeffrey Kwong avatar ssibm avatar  avatar

refarch-cloudnative-wfd-ui's Issues

build fails because tests fail

Tests fail because of the testing assertion not being correct. The code looks for an index.html which generates the following tag:

<h1>Welcome to your Liberty Application</h1>

However, as you can see in the following output, index.html does not contain such tag.

 T E S T S
-------------------------------------------------------
Running it.HealthEndpointIT
Testing endpoint http://localhost:9089/WfdFrontEnd/rest/health
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.996 sec - in it.HealthEndpointIT
Running it.TestApplication
Testing http://localhost:9089/WfdFrontEnd/index.html
Testing http://localhost:9089/WfdFrontEnd/index.html
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.022 sec <<< FAILURE! - in it.TestApplication
testDeployment(it.TestApplication)  Time elapsed: 0.022 sec  <<< FAILURE!
java.lang.AssertionError: Incorrect response, response is <!doctype html><html lang="en"><head><meta charset="utf-8"><title>TryUI</title><base href="/WfdFrontEnd/"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" type="image/x-icon" href="favicon.ico"><link href="styles.d41d8cd98f00b204e980.bundle.css" rel="stylesheet"/></head><body><app-root></app-root><script type="text/javascript" src="inline.3b80a577c81cd4c09ef9.bundle.js"></script><script type="text/javascript" src="polyfills.d8d3d78a4deb2ab66856.bundle.js"></script><script type="text/javascript" src="vendor.116261f15011a98a5ba2.bundle.js"></script><script type="text/javascript" src="main.f4e4a359fabf914cefc7.bundle.js"></script></body></html>
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at it.EndpointTest.testEndpoint(EndpointTest.java:25)
	at it.TestApplication.testDeployment(TestApplication.java:9)


Results :

Failed tests: 
  TestApplication.testDeployment:9->EndpointTest.testEndpoint:25 Incorrect response, response is <!doctype html><html lang="en"><head><meta charset="utf-8"><title>TryUI</title><base href="/WfdFrontEnd/"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" type="image/x-icon" href="favicon.ico"><link href="styles.d41d8cd98f00b204e980.bundle.css" rel="stylesheet"/></head><body><app-root></app-root><script type="text/javascript" src="inline.3b80a577c81cd4c09ef9.bundle.js"></script><script type="text/javascript" src="polyfills.d8d3d78a4deb2ab66856.bundle.js"></script><script type="text/javascript" src="vendor.116261f15011a98a5ba2.bundle.js"></script><script type="text/javascript" src="main.f4e4a359fabf914cefc7.bundle.js"></script></body></html>

Tests run: 2, Failures: 1, Errors: 0, Skipped: 0

I would recommend updating the tests to look for a different tag(s). For example:

<title>TryUI</title>

parametrise base_url

base_url needs to be parametrised so that it can dynamically change depending on the environment the application is deployed to.

base_url can be found in /src/app/menu/menu.service.ts

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.