question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Microservices Projects tests don't work

See original GitHub issue

https://github.com/freeCodeCamp/freeCodeCamp/blob/master/curriculum/challenges/english/05-apis-and-microservices/apis-and-microservices-projects/timestamp-microservice.english.md

The tests for projects are not working anymore. Campers can submit any random URL to pass their challenges. This bug turns off people from Freecodecamp, cause you never know if you accomplished a challenge or not.

Here is a discussion of this problem on FreeCodeCamp forum https://www.freecodecamp.org/forum/t/timestamp-microservice-how-to-test-that-api/290578/10

As I can see there were tests

tests:
  - text: 'It should handle a valid date, and return the correct unix timestamp'
    testString: 'getUserInput => $.get(getUserInput(''url'') + ''/api/timestamp/2016-12-25'').then(data => { assert.equal(data.unix, 1482624000000, ''Should be a valid unix timestamp''); }, xhr => { throw new Error(xhr.responseText); })'
- text: 'It should handle a valid date, and return the correct UTC string'
    testString: 'getUserInput => $.get(getUserInput(''url'')+ ''/api/timestamp/2016-12-25'').then(data => { assert.equal(data.utc, ''Sun, 25 Dec 2016 00:00:00 GMT'', ''Should be a valid UTC date string''); }, xhr => { throw new Error(xhr.responseText); })'
  

But they are not working.

This is the same for all Microservices Projects.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:6
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gguptaabhishekcommented, Jul 19, 2019

kkkk

0reactions
moT01commented, Oct 10, 2019

Closing in favor of the above issue (#37185).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Seven Ways to Fail at Microservices - InfoQ
Microservices are a means, not a goal; Being distributed does not guarantee being decoupled; Contract tests are an important part of any ...
Read more >
Microservices Architecture and its Testing Challenges
With these testing challenges, everything cannot be tested in a Microservices setup. We have to take a pragmatic risk-based approach to test the ......
Read more >
Microservices test architecture. Can you sleep well without ...
Some projects have no modern development environment set up, so there are only unit tests for things that are easy to test.
Read more >
Testing Microservices: Principles, Challenges, Case Studies
How to test microservices properly? QA engineers explain why traditional testing not always works properly, and tell about known challenges ...
Read more >
When Microservices Are a Bad Idea - Semaphore CI
You shouldn't start a new project with microservices, even if you're ... in tests that were difficult to write, and very slow to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found