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

Begin validation steps #4

Open
qjhart opened this issue Jan 21, 2015 · 4 comments
Open

Begin validation steps #4

qjhart opened this issue Jan 21, 2015 · 4 comments

Comments

@qjhart
Copy link
Collaborator

qjhart commented Jan 21, 2015

I guess this will be something like grunt validate. And we can have sub-tasks like grunt validate-links ? First one should test that the filesystem links and nodes corresponds to the origins and destinations in the node definitions. Should have a reporting and a change the node to match function. Also can specify the node(s) and or link(s) on cmd line. If a link is missing a corresponding node, I guess we just report it, and don't delete?

# -n = dry-run just report(s) changes
grunt validate-links -n
C117 {'origins':['N2','N3'],'terminals:['R4']} => {'origins':['N2','S5'],'terminals':['R4]'}
C117_N3 {origin:'C117', terminal:null} 
# Just node C117 
# -l means validate all links too.
grunt validate-links -l C117
C117_N3 {origin:'C117', terminal:null} 
@qjhart
Copy link
Collaborator Author

qjhart commented Jan 23, 2015

I'm thinking mostly fur us to come up with a good framework to plug code into. As per our discussion, maybe this should be moved the the calvin-network-editor, and leave the data clean.

@jrmerz
Copy link
Collaborator

jrmerz commented Feb 13, 2015

@qjhart we closing this?

@qjhart
Copy link
Collaborator Author

qjhart commented Feb 13, 2015

No, this is part of the ts4 validation as well, which I started but didn't finish. On top of the json-schema validation needs a layer of consistancy checking as described above.

@qjhart
Copy link
Collaborator Author

qjhart commented Jun 9, 2015

Another tool to consider with validation is the Terraformer toolkit, http://terraformer.io/core/

@jrmerz jrmerz assigned qjhart and unassigned jrmerz Jan 7, 2016
@qjhart qjhart closed this as completed Mar 30, 2016
@qjhart qjhart reopened this Mar 30, 2016
@qjhart qjhart removed their assignment Sep 28, 2016
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

No branches or pull requests

2 participants