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

added more tests for YAML DSL (using a schema) #364

Closed
wants to merge 7 commits into from

Conversation

lhein
Copy link
Collaborator

@lhein lhein commented Jul 8, 2020

Pull Request informations

Rebase & Merge default requirements

  1. Green build for master branch
  2. Wait 24 hours after PR creation
  3. Green job for PR
  4. Approved PR

PR labels default process

  • READY_FOR_REVIEW → REVIEW_DONE → READY_FOR_MERGE

Tests

  • Are there Unit tests?
  • Are there Integration tests?
  • Do we need a new UI test?

PR workflow progress

  1. Tagged with relevant PR labels
  2. Green job for PR
  3. PR was created more than 24 hours ago or All committers approved it
  4. Green master branch build

lhein and others added 4 commits July 8, 2020 15:06
Signed-off-by: Lars Heinemann <lhein.smx@gmail.com>
completion called at the right place

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
Signed-off-by: Lars Heinemann <lhein.smx@gmail.com>
Signed-off-by: Lars Heinemann <lhein.smx@gmail.com>
Signed-off-by: Lars Heinemann <lhein.smx@gmail.com>
@@ -5,9 +5,9 @@
uri: "timer:tick"
parameters:
period: "5s"
steps:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this change was required because the yaml structure changed

…yaml file

Signed-off-by: Lars Heinemann <lhein.smx@gmail.com>
@lhein lhein requested a review from apupier July 8, 2020 13:38
src/test/yaml.completion.test.ts Outdated Show resolved Hide resolved
src/test/yaml.completion.test.ts Outdated Show resolved Hide resolved
test Fixture with speci@l chars/helloworld.camelk.yaml Outdated Show resolved Hide resolved
src/test/yaml.completion.test.ts Outdated Show resolved Hide resolved
src/test/yaml.completion.test.ts Outdated Show resolved Hide resolved
Signed-off-by: Lars Heinemann <lhein.smx@gmail.com>
Copy link
Member

@apupier apupier left a comment

Choose a reason for hiding this comment

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

  • needs rebase.


export const updateSettings = (setting: any, value: any) => {
const yamlConfiguration = vscode.workspace.getConfiguration('yaml');
return yamlConfiguration.update(setting, value, false);
Copy link
Member

Choose a reason for hiding this comment

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

wrong indentation


export const resetSettings = (setting: any, value: any) => {
const yamlConfiguration = vscode.workspace.getConfiguration('yaml');
return yamlConfiguration.update(setting, value, false);
Copy link
Member

Choose a reason for hiding this comment

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

wrong indentation

const expect = chai.expect;

describe('YAML DSL and endpoint uri completion tests backed by schema', () => {
const yamlSchemaUri: vscode.Uri = vscode.Uri.parse('https://raw.githubusercontent.com/lburgazzoli/apache-camel-k-runtime/github-358/camel-k-loader-yaml/camel-k-loader-yaml/src/generated/resources/yaml-schema.json');
Copy link
Member

Choose a reason for hiding this comment

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

it wasn't available when the PR was written but now that it is on master, maybe better to point to https://github.com/apache/camel-k-runtime/blob/master/camel-k-loader-yaml/camel-k-loader-yaml/src/generated/resources/camel-yaml-dsl.json

that said, it migth be worthy to wait for the schemastore to be available and rely on it SchemaStore/schemastore#1138 (or can be done in another iteration)

Copy link
Member

Choose a reason for hiding this comment

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

it is now available on schemastore so it can be completely removed

@apupier
Copy link
Member

apupier commented Sep 18, 2020

closing as it has not been touched for a while.
Few tests available in VS Code Camel K extension

@apupier apupier closed this Sep 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants