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

Anton/contribute validate json #116

Merged
merged 11 commits into from
Sep 13, 2022

Conversation

antondelchev
Copy link
Contributor

Validating that zowe.config.json matches zowe.schema.json. Related to #74

Signed-off-by: Anton Delchev <dlchv.mail@gmail.com>
Signed-off-by: Anton Delchev <dlchv.mail@gmail.com>
Signed-off-by: Anton Delchev <dlchv.mail@gmail.com>
Signed-off-by: Anton Delchev <dlchv.mail@gmail.com>
@codecov
Copy link

codecov bot commented Aug 26, 2022

Codecov Report

Base: 73.03% // Head: 63.49% // Decreases project coverage by -9.53% ⚠️

Coverage data is based on head (fc7b4c6) compared to base (95557e9).
Patch has no changes to coverable lines.

❗ Current head fc7b4c6 differs from pull request most recent head e694362. Consider uploading reports for the commit e694362 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             next     #116      +/-   ##
==========================================
- Coverage   73.03%   63.49%   -9.54%     
==========================================
  Files          28       28              
  Lines        1168      967     -201     
==========================================
- Hits          853      614     -239     
- Misses        315      353      +38     
Flag Coverage Δ
unittests 63.49% <ø> (-9.54%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/zos_files/zowe/zos_files_for_zowe_sdk/files.py 35.54% <0.00%> (-26.11%) ⬇️
src/zosmf/zowe/zosmf_for_zowe_sdk/zosmf.py 71.42% <0.00%> (-11.91%) ⬇️
src/zos_jobs/zowe/zos_jobs_for_zowe_sdk/jobs.py 15.68% <0.00%> (-7.68%) ⬇️
tests/unit/test_zosmf.py 100.00% <0.00%> (ø)
tests/unit/test_zos_jobs.py 100.00% <0.00%> (ø)
tests/unit/test_zos_files.py 100.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

…thon-sdk into anton/contribute-validate-json

Signed-off-by: Anton Delchev <dlchv.mail@gmail.com>
Signed-off-by: Anton Delchev <dlchv.mail@gmail.com>
…s for it; updated with 'next' branch.

Signed-off-by: Anton Delchev <dlchv.mail@gmail.com>
src/core/zowe/core_for_zowe_sdk/validators.py Outdated Show resolved Hide resolved
tests/unit/test_zowe_core.py Outdated Show resolved Hide resolved
tests/unit/test_zowe_core.py Outdated Show resolved Hide resolved
tests/unit/test_zowe_core.py Outdated Show resolved Hide resolved
tests/unit/test_zowe_core.py Outdated Show resolved Hide resolved
… two test cases (valid and invalid); created invalid json files in 'fixtures' folder and removed respective variables from the test_zowe_core file.

Signed-off-by: Anton Delchev <dlchv.mail@gmail.com>
tests/unit/test_zowe_core.py Outdated Show resolved Hide resolved
tests/unit/test_zowe_core.py Outdated Show resolved Hide resolved
Signed-off-by: Anton Delchev <dlchv.mail@gmail.com>
@boris-bc
Copy link
Contributor

@antondelchev , the build is failing on unit tests. Please review and fix!

Signed-off-by: Anton Delchev <dlchv.mail@gmail.com>
Signed-off-by: Anton Delchev <dlchv.mail@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants