Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove streetlight example for testing #364

Merged
merged 4 commits into from
May 28, 2020
Merged

refactor: remove streetlight example for testing #364

merged 4 commits into from
May 28, 2020

Conversation

derberg
Copy link
Member

@derberg derberg commented May 27, 2020

Description

  • remove streetlights yaml file
  • add new dummy file
  • update docs

Long term when we go more and more functional in templates, I believe there will be a need to separate dummy file into: dummy-ws, dummy-amqp, dummy-n files becase there might be a case in future we add support for more extensions and bindings and simply having all in one will probably not be possible (that is just an assumption)

Related issue(s)
Resolves #238

@derberg derberg requested review from fmvilas and jonaslagoni May 27, 2020 11:45
fmvilas
fmvilas previously approved these changes May 27, 2020
@@ -1,7 +1,7 @@
const { validateTemplateConfig } = require('../lib/templateConfigValidator');
const fs = require('fs');
const path = require('path');
const streetlightYAML = fs.readFileSync(path.resolve(__dirname, './docs/streetlights.yml'), 'utf8');
const streetlightYAML = fs.readFileSync(path.resolve(__dirname, './docs/dummy.yml'), 'utf8');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe rename to dummyYAML since streetlight is no longer a thing in the generator 🤔?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

of course, you are right, great catch, on it

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@derberg
Copy link
Member Author

derberg commented May 27, 2020

@fmvilas I need your another approval, I removed streetlight named variables from tests as per @jonaslagoni suggestion

Copy link
Member

@jonaslagoni jonaslagoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@derberg derberg merged commit 891c680 into asyncapi:master May 28, 2020
@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 0.52.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a dummy-like asyncapi document for testing templates functionality
4 participants