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

Validate input references (CDs, sections, channels) #107

Merged
merged 24 commits into from
Oct 9, 2019

Conversation

mdcerna
Copy link
Contributor

@mdcerna mdcerna commented Oct 7, 2019

What does this Pull Request accomplish?

Fixes #45
All section IDs are now being validated. If not the correct section name, we return a useful error message with the expected section name.

The expected SLSC Switch and Routing and Faulting custom device ID is also validated. The RaF custom device Name is validated and the expected name is returned in the error message. For SLSC Switch, the Name can change so instead we check using the expected GUID.

Fixes #29
Simple cleanup to remove unnecessary .NET object instantiation (and Close).

Why should this Pull Request be merged?

This will reduce the headache of misusing section and custom device IDs, easily done with LV mis-wiring.

What testing has been done?

Added an automated test. Re-ran all existing tests.

@niveristand-diff-bot
Copy link
Collaborator

Bleep bloop!

LabVIEW Diff Robot here with some diffs served up hot for your pull request.

Notice something funny? Help fix me on my GitHub repo.

Routing and Faulting Scripting Unit Tests.lvclass--test Check for Invalid Section IDs.vi.png

capture

Routing and Faulting Scripting.lvlib--Add Alias.vi.png

capture

Routing and Faulting Scripting.lvlib--Add Routing Channel.vi.png

capture

Routing and Faulting Scripting.lvlib--Find Endpoint Aliases and Routing Channels Sections.vi.png

capture

Routing and Faulting Scripting.lvlib--Find Routing and Faulting Custom Device.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Alias Mappings.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Alias.vi.png

capture

Routing and Faulting Scripting.lvlib--Get All Routing Channel Ref IDs.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Routing Channel by Name.vi.png

capture

Routing and Faulting Scripting.lvlib--Initialize Routing and Faulting Custom Device.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Alias.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove All Aliases.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Routing and Faulting Custom Device.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Routing Channel.vi.png

capture

Routing and Faulting Scripting.lvlib--Set Alias Endpoint.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Routing Channel Parameters.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Section ID.vi.png

capture

SLSC Switch Scripting.lvlib--Find Endpoint Configuration Section.vi.png

capture

SLSC Switch Scripting.lvlib--Get All Endpoint Configurations.vi.png

capture

SLSC Switch Scripting.lvlib--Get Endpoint Configuration.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Capabilities.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Description.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Model.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Resource.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Topology.vi.png

capture

SLSC Switch Scripting.lvlib--Set Endpoint Configuration.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Capabilities.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Description.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Model.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Resource.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Topology.vi.png

capture

SLSC Switch Scripting.lvlib--Validate ID by GUID.vi.png

capture

SLSC Switch Scripting.lvlib--Validate Section ID.vi.png

capture

@niveristand-diff-bot
Copy link
Collaborator

Bleep bloop!

LabVIEW Diff Robot here with some diffs served up hot for your pull request.

Notice something funny? Help fix me on my GitHub repo.

Routing and Faulting Scripting Unit Tests.lvclass--test Check for Invalid Section IDs.vi.png

capture

Routing and Faulting Scripting.lvlib--Add Alias.vi.png

capture

Routing and Faulting Scripting.lvlib--Add Routing Channel.vi.png

capture

Routing and Faulting Scripting.lvlib--Find Endpoint Aliases and Routing Channels Sections.vi.png

capture

Routing and Faulting Scripting.lvlib--Find Routing and Faulting Custom Device.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Alias Mappings.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Alias.vi.png

capture

Routing and Faulting Scripting.lvlib--Get All Routing Channel Ref IDs.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Routing Channel by Name.vi.png

capture

Routing and Faulting Scripting.lvlib--Initialize Routing and Faulting Custom Device.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Alias.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove All Aliases.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Routing and Faulting Custom Device.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Routing Channel.vi.png

capture

Routing and Faulting Scripting.lvlib--Set Alias Endpoint.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Routing Channel Parameters.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Section ID.vi.png

capture

SLSC Switch Scripting.lvlib--Find Endpoint Configuration Section.vi.png

capture

SLSC Switch Scripting.lvlib--Get All Endpoint Configurations.vi.png

capture

SLSC Switch Scripting.lvlib--Get Endpoint Configuration.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Capabilities.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Description.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Model.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Resource.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Topology.vi.png

capture

SLSC Switch Scripting.lvlib--Set Endpoint Configuration.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Capabilities.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Description.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Model.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Resource.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Topology.vi.png

capture

SLSC Switch Scripting.lvlib--Validate ID by GUID.vi.png

capture

SLSC Switch Scripting.lvlib--Validate Section ID.vi.png

capture

@csjall
Copy link
Contributor

csjall commented Oct 8, 2019

Validate Section ID.vi

  • Rename to Validate Custom Device Section Name. This VI is validating the section name for a custom device, not the section ID. Ensure that your VI names reflect what they are actually doing.
  • Consider putting a case around the VI to skip all code in the case of incoming error. This is important as currently you are eating any incoming errors.
    image
  • Create a subVI to validate Routing and Faulting Custom Device reference.
    image

Add N Aliases.vi

  • Be consistent with section name validation. You are not validating the section name, instead relying on Add Alias.vi to validate the section name. However in Remove All Aliases.vi you are validating the section name in both the top level VI and the lower level Remove Alias.vi.

Endpoint Aliases

  • Create a subVI to validate the Endpoint Aliases reference.
    image

Get Routing Channel Configuration.vi

  • Validate section Ref. Currently you are relying on VeriStand to validate the channel references. Consider creating a subVI that validates channel ref by checking the GUID.
    image

Routing Channels

  • Create a subVI to validate Routing Channel reference.
    image

@niveristand-diff-bot
Copy link
Collaborator

Bleep bloop!

LabVIEW Diff Robot here with some diffs served up hot for your pull request.

Notice something funny? Help fix me on my GitHub repo.

Routing and Faulting Scripting Unit Tests.lvclass--test Check for Invalid Section IDs.vi.png

capture

Routing and Faulting Scripting.lvlib--Add Alias.vi.png

capture

Routing and Faulting Scripting.lvlib--Add Routing Channel.vi.png

capture

Routing and Faulting Scripting.lvlib--Find Endpoint Aliases and Routing Channels Sections.vi.png

capture

Routing and Faulting Scripting.lvlib--Find Routing and Faulting Custom Device.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Alias Mappings.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Alias.vi.png

capture

Routing and Faulting Scripting.lvlib--Get All Routing Channel Ref IDs.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Routing Channel by Name.vi.png

capture

Routing and Faulting Scripting.lvlib--Initialize Routing and Faulting Custom Device.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Alias.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove All Aliases.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Routing and Faulting Custom Device.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Routing Channel.vi.png

capture

Routing and Faulting Scripting.lvlib--Set Alias Endpoint.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Routing Channel Parameters.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Section ID.vi.png

capture

SLSC Switch Scripting.lvlib--Find Endpoint Configuration Section.vi.png

capture

SLSC Switch Scripting.lvlib--Get All Endpoint Configurations.vi.png

capture

SLSC Switch Scripting.lvlib--Get Endpoint Configuration.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Capabilities.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Description.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Model.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Resource.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Topology.vi.png

capture

SLSC Switch Scripting.lvlib--Set Endpoint Configuration.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Capabilities.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Description.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Model.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Resource.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Topology.vi.png

capture

SLSC Switch Scripting.lvlib--Validate ID by GUID.vi.png

capture

SLSC Switch Scripting.lvlib--Validate Section ID.vi.png

capture

@mdcerna mdcerna changed the title Validate input section and CD ref IDs Validate input references (CDs, sections, channels) Oct 8, 2019
Mike Cerna added 5 commits October 8, 2019 13:22
Added 2-in 2-out Validate functions to simplify call sites
Changed all reference ID checks to use generic BaseNode .Net calls (Name and GUID properties)
Added case structure for validate functions
validate CD reference, Endpoint Conifiguation reference
updated tests
@niveristand-diff-bot
Copy link
Collaborator

Bleep bloop!

LabVIEW Diff Robot here with some diffs served up hot for your pull request.

Notice something funny? Help fix me on my GitHub repo.

Routing and Faulting Scripting.lvlib--Add Alias.vi.png

capture

Routing and Faulting Scripting.lvlib--Add Routing Channel.vi.png

capture

Routing and Faulting Scripting.lvlib--Find Endpoint Aliases and Routing Channels Sections.vi.png

capture

Routing and Faulting Scripting.lvlib--Find Routing and Faulting Custom Device.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Alias Mappings.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Alias.vi.png

capture

Routing and Faulting Scripting.lvlib--Get All Routing Channel Ref IDs.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Routing Channel by Name.vi.png

capture

Routing and Faulting Scripting.lvlib--Initialize Routing and Faulting Custom Device.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Alias.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove All Aliases.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Routing and Faulting Custom Device.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Routing Channel.vi.png

capture

Routing and Faulting Scripting.lvlib--Set Alias Endpoint.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Routing Channel Parameters.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Section ID.vi.png

capture

SLSC Switch Scripting.lvlib--Find Endpoint Configuration Section.vi.png

capture

SLSC Switch Scripting.lvlib--Get All Endpoint Configurations.vi.png

capture

SLSC Switch Scripting.lvlib--Get Endpoint Configuration.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Capabilities.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Description.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Model.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Resource.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Topology.vi.png

capture

SLSC Switch Scripting.lvlib--Set Endpoint Configuration.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Capabilities.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Description.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Model.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Resource.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Topology.vi.png

capture

SLSC Switch Scripting.lvlib--Validate ID by GUID.vi.png

capture

SLSC Switch Scripting.lvlib--Validate Section ID.vi.png

capture

The following VIs could not be diffed:

  • C:\jenkins\workspace\nd-faulting-custom-device_PR-107\Source\Routing and Faulting\Scripting\Tests\Unit\test Check for Invalid Section IDs.vi

@niveristand-diff-bot
Copy link
Collaborator

Bleep bloop!

LabVIEW Diff Robot here with some diffs served up hot for your pull request.

Notice something funny? Help fix me on my GitHub repo.

Routing and Faulting Scripting.lvlib--Add Alias.vi.png

capture

Routing and Faulting Scripting.lvlib--Add N Aliases.vi.png

capture

Routing and Faulting Scripting.lvlib--Add Routing Channel.vi.png

capture

Routing and Faulting Scripting.lvlib--Find Endpoint Aliases and Routing Channels Sections.vi.png

capture

Routing and Faulting Scripting.lvlib--Find Routing and Faulting Custom Device.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Alias Mappings.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Alias.vi.png

capture

Routing and Faulting Scripting.lvlib--Get All Routing Channel Ref IDs.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Routing Channel by Name.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Routing Channel Configuration.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Routing Channel Initial State.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Routing Channel State Configurations.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Routing Channel State-Value Table.vi.png

capture

Routing and Faulting Scripting.lvlib--Initialize Routing and Faulting Custom Device.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Alias.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove All Aliases.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Routing and Faulting Custom Device.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Routing Channel.vi.png

capture

Routing and Faulting Scripting.lvlib--Set Alias Endpoint.vi.png

capture

Routing and Faulting Scripting.lvlib--Set Routing Channel Description.vi.png

capture

Routing and Faulting Scripting.lvlib--Set Routing Channel Initial State.vi.png

capture

Routing and Faulting Scripting.lvlib--Set Routing Channel Name.vi.png

capture

Routing and Faulting Scripting.lvlib--Set Routing Channel State Configurations.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Endpoint Aliases Reference.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Reference by GUID.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Reference by Name.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Routing Channel Parameters.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Routing Channel Reference.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Routing Channels Reference.vi.png

capture

SLSC Switch Scripting.lvlib--Find Endpoint Configuration Section.vi.png

capture

SLSC Switch Scripting.lvlib--Get All Endpoint Configurations.vi.png

capture

SLSC Switch Scripting.lvlib--Get Endpoint Configuration.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Capabilities.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Description.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Model.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Resource.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Topology.vi.png

capture

SLSC Switch Scripting.lvlib--Initialize SLSC Switch Custom Device.vi.png

capture

SLSC Switch Scripting.lvlib--Remove SLSC Switch Custom Device.vi.png

capture

SLSC Switch Scripting.lvlib--Set All Endpoint Configurations.vi.png

capture

SLSC Switch Scripting.lvlib--Set Endpoint Configuration.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Capabilities.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Description.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Model.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Resource.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Topology.vi.png

capture

SLSC Switch Scripting.lvlib--Validate Endpoint Configuration Reference.vi.png

capture

SLSC Switch Scripting.lvlib--Validate Reference by GUID.vi.png

capture

SLSC Switch Scripting.lvlib--Validate Reference by Name.vi.png

capture

SLSC Switch Scripting.lvlib--Validate SLSC CD Reference.vi.png

capture

The following VIs could not be diffed:

  • C:\jenkins\workspace\nd-faulting-custom-device_PR-107\Source\Routing and Faulting\Scripting\Tests\Unit\test Check for Invalid Section IDs.vi
  • C:\jenkins\workspace\nd-faulting-custom-device_PR-107\Source\SLSC Switch\Scripting\Tests\Unit\test Endpoint Configurations.vi
  • C:\jenkins\workspace\nd-faulting-custom-device_PR-107\Source\SLSC Switch\Scripting\Tests\Unit\test Find and Initialize SLSC Switch CD.vi

@niveristand-diff-bot
Copy link
Collaborator

Bleep bloop!

LabVIEW Diff Robot here with some diffs served up hot for your pull request.

Notice something funny? Help fix me on my GitHub repo.

Routing and Faulting Scripting Unit Tests.lvclass--test Check for Invalid Section IDs.vi.png

capture

Routing and Faulting Scripting.lvlib--Add Alias.vi.png

capture

Routing and Faulting Scripting.lvlib--Add Connection to State.vi.png

capture

Routing and Faulting Scripting.lvlib--Add N Aliases.vi.png

capture

Routing and Faulting Scripting.lvlib--Add Routing Channel.vi.png

capture

Routing and Faulting Scripting.lvlib--Add State to Routing Channel.vi.png

capture

Routing and Faulting Scripting.lvlib--Add Status Channels.vi.png

capture

Routing and Faulting Scripting.lvlib--Find Endpoint Aliases and Routing Channels Sections.vi.png

capture

Routing and Faulting Scripting.lvlib--Find Routing and Faulting Custom Device.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Alias Mappings.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Alias.vi.png

capture

Routing and Faulting Scripting.lvlib--Get All Routing Channel Ref IDs.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Routing Channel by Name.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Routing Channel Configuration.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Routing Channel Initial State.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Routing Channel State Configurations.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Routing Channel State-Value Table.vi.png

capture

Routing and Faulting Scripting.lvlib--Get State from Routing Channel.vi.png

capture

Routing and Faulting Scripting.lvlib--Initialize Routing and Faulting Custom Device.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Alias.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove All Aliases.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Routing and Faulting Custom Device.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Routing Channel State.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Routing Channel.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove State Connection.vi.png

capture

Routing and Faulting Scripting.lvlib--Rename State.vi.png

capture

Routing and Faulting Scripting.lvlib--Set Alias Endpoint.vi.png

capture

Routing and Faulting Scripting.lvlib--Set Routing Channel Description.vi.png

capture

Routing and Faulting Scripting.lvlib--Set Routing Channel Initial State.vi.png

capture

Routing and Faulting Scripting.lvlib--Set Routing Channel Name.vi.png

capture

Routing and Faulting Scripting.lvlib--Set Routing Channel State Configurations.vi.png

capture

Routing and Faulting Scripting.lvlib--Set State Connections.vi.png

capture

Routing and Faulting Scripting.lvlib--Set State Description.vi.png

capture

Routing and Faulting Scripting.lvlib--Set State Value.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Endpoint Aliases Reference.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate RaF Custom Device Reference.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Reference by GUID.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Reference by Name.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Routing Channel Parameters.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Routing Channel Reference.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Routing Channels Reference.vi.png

capture

SLSC Switch Scripting Unit Tests.lvclass--test Endpoint Configurations.vi.png

capture

SLSC Switch Scripting Unit Tests.lvclass--test Find and Initialize SLSC Switch CD.vi.png

capture

SLSC Switch Scripting.lvlib--Find Endpoint Configuration Section.vi.png

capture

SLSC Switch Scripting.lvlib--Get All Endpoint Configurations.vi.png

capture

SLSC Switch Scripting.lvlib--Get Endpoint Configuration.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Capabilities.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Description.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Model.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Resource.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Topology.vi.png

capture

SLSC Switch Scripting.lvlib--Initialize SLSC Switch Custom Device.vi.png

capture

SLSC Switch Scripting.lvlib--Remove SLSC Switch Custom Device.vi.png

capture

SLSC Switch Scripting.lvlib--Set All Endpoint Configurations.vi.png

capture

SLSC Switch Scripting.lvlib--Set Endpoint Configuration.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Capabilities.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Description.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Model.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Resource.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Topology.vi.png

capture

SLSC Switch Scripting.lvlib--Validate Endpoint Configuration Reference.vi.png

capture

SLSC Switch Scripting.lvlib--Validate Reference by GUID.vi.png

capture

SLSC Switch Scripting.lvlib--Validate Reference by Name.vi.png

capture

SLSC Switch Scripting.lvlib--Validate SLSC CD Reference.vi.png

capture

@csjall
Copy link
Contributor

csjall commented Oct 9, 2019

  • Get All Endpoint Configurations.vi: Replace Validate Reference by Name.vi with Validate Endpoint Configuration Reference.vi.
    image
  • Validate Reference By Name/Guid.vi: Change terminal pattern to use the left edge. By convention we want to fill up the left edge before wiring top or bottom edges.
    image
    image
  • D.R.Y. We have identical VIs (Validate Reference by GUID.vi and Validate Reference by Name.vi) checked into both SLSC Switch, and Routing and Faulting scripting. Create a tech debt issue to single source this code (and other common code) for the scripting libraries.

Use Validate Endpoint Configuration Reference in Get All Endpoint Configurations.vi
@mdcerna
Copy link
Contributor Author

mdcerna commented Oct 9, 2019

  • D.R.Y. We have identical VIs (Validate Reference by GUID.vi and Validate Reference by Name.vi) checked into both SLSC Switch, and Routing and Faulting scripting. Create a tech debt issue to single source this code (and other common code) for the scripting libraries.

Scrub scripting libraries for duplicated code #109

@niveristand-diff-bot
Copy link
Collaborator

Bleep bloop!

LabVIEW Diff Robot here with some diffs served up hot for your pull request.

Notice something funny? Help fix me on my GitHub repo.

Routing and Faulting Scripting Unit Tests.lvclass--test Check for Invalid Section IDs.vi.png

capture

Routing and Faulting Scripting.lvlib--Add Alias.vi.png

capture

Routing and Faulting Scripting.lvlib--Add Connection to State.vi.png

capture

Routing and Faulting Scripting.lvlib--Add N Aliases.vi.png

capture

Routing and Faulting Scripting.lvlib--Add Routing Channel.vi.png

capture

Routing and Faulting Scripting.lvlib--Add State to Routing Channel.vi.png

capture

Routing and Faulting Scripting.lvlib--Add Status Channels.vi.png

capture

Routing and Faulting Scripting.lvlib--Find Endpoint Aliases and Routing Channels Sections.vi.png

capture

Routing and Faulting Scripting.lvlib--Find Routing and Faulting Custom Device.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Alias Mappings.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Alias.vi.png

capture

Routing and Faulting Scripting.lvlib--Get All Routing Channel Ref IDs.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Routing Channel by Name.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Routing Channel Configuration.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Routing Channel Initial State.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Routing Channel State Configurations.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Routing Channel State-Value Table.vi.png

capture

Routing and Faulting Scripting.lvlib--Get State from Routing Channel.vi.png

capture

Routing and Faulting Scripting.lvlib--Initialize Routing and Faulting Custom Device.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Alias.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove All Aliases.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Routing and Faulting Custom Device.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Routing Channel State.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Routing Channel.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove State Connection.vi.png

capture

Routing and Faulting Scripting.lvlib--Rename State.vi.png

capture

Routing and Faulting Scripting.lvlib--Set Alias Endpoint.vi.png

capture

Routing and Faulting Scripting.lvlib--Set Routing Channel Description.vi.png

capture

Routing and Faulting Scripting.lvlib--Set Routing Channel Initial State.vi.png

capture

Routing and Faulting Scripting.lvlib--Set Routing Channel Name.vi.png

capture

Routing and Faulting Scripting.lvlib--Set Routing Channel State Configurations.vi.png

capture

Routing and Faulting Scripting.lvlib--Set State Connections.vi.png

capture

Routing and Faulting Scripting.lvlib--Set State Description.vi.png

capture

Routing and Faulting Scripting.lvlib--Set State Value.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Endpoint Aliases Reference.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate RaF Custom Device Reference.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Reference by GUID.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Reference by Name.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Routing Channel Parameters.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Routing Channel Reference.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Routing Channels Reference.vi.png

capture

SLSC Switch Scripting Unit Tests.lvclass--test Endpoint Configurations.vi.png

capture

SLSC Switch Scripting Unit Tests.lvclass--test Find and Initialize SLSC Switch CD.vi.png

capture

SLSC Switch Scripting.lvlib--Find Endpoint Configuration Section.vi.png

capture

SLSC Switch Scripting.lvlib--Get All Endpoint Configurations.vi.png

capture

SLSC Switch Scripting.lvlib--Get Endpoint Configuration.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Capabilities.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Description.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Model.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Resource.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Topology.vi.png

capture

SLSC Switch Scripting.lvlib--Initialize SLSC Switch Custom Device.vi.png

capture

SLSC Switch Scripting.lvlib--Remove SLSC Switch Custom Device.vi.png

capture

SLSC Switch Scripting.lvlib--Set All Endpoint Configurations.vi.png

capture

SLSC Switch Scripting.lvlib--Set Endpoint Configuration.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Capabilities.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Description.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Model.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Resource.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Topology.vi.png

capture

SLSC Switch Scripting.lvlib--Validate Endpoint Configuration Reference.vi.png

capture

SLSC Switch Scripting.lvlib--Validate Reference by GUID.vi.png

capture

SLSC Switch Scripting.lvlib--Validate Reference by Name.vi.png

capture

SLSC Switch Scripting.lvlib--Validate SLSC CD Reference.vi.png

capture

@mdcerna mdcerna merged commit 4456971 into master Oct 9, 2019
@mdcerna mdcerna deleted the dev/validate_input_params branch October 9, 2019 16:09
@niveristand-diff-bot
Copy link
Collaborator

Bleep bloop!

LabVIEW Diff Robot here with some diffs served up hot for your pull request.

Notice something funny? Help fix me on my GitHub repo.

Routing and Faulting Scripting Unit Tests.lvclass--test Check for Invalid Section IDs.vi.png

capture

Routing and Faulting Scripting.lvlib--Add Alias.vi.png

capture

Routing and Faulting Scripting.lvlib--Add Connection to State.vi.png

capture

Routing and Faulting Scripting.lvlib--Add N Aliases.vi.png

capture

Routing and Faulting Scripting.lvlib--Add Routing Channel.vi.png

capture

Routing and Faulting Scripting.lvlib--Add State to Routing Channel.vi.png

capture

Routing and Faulting Scripting.lvlib--Add Status Channels.vi.png

capture

Routing and Faulting Scripting.lvlib--Find Endpoint Aliases and Routing Channels Sections.vi.png

capture

Routing and Faulting Scripting.lvlib--Find Routing and Faulting Custom Device.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Alias Mappings.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Alias.vi.png

capture

Routing and Faulting Scripting.lvlib--Get All Routing Channel Ref IDs.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Routing Channel by Name.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Routing Channel Configuration.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Routing Channel Initial State.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Routing Channel State Configurations.vi.png

capture

Routing and Faulting Scripting.lvlib--Get Routing Channel State-Value Table.vi.png

capture

Routing and Faulting Scripting.lvlib--Get State from Routing Channel.vi.png

capture

Routing and Faulting Scripting.lvlib--Initialize Routing and Faulting Custom Device.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Alias.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove All Aliases.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Routing and Faulting Custom Device.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Routing Channel State.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove Routing Channel.vi.png

capture

Routing and Faulting Scripting.lvlib--Remove State Connection.vi.png

capture

Routing and Faulting Scripting.lvlib--Rename State.vi.png

capture

Routing and Faulting Scripting.lvlib--Set Alias Endpoint.vi.png

capture

Routing and Faulting Scripting.lvlib--Set Routing Channel Description.vi.png

capture

Routing and Faulting Scripting.lvlib--Set Routing Channel Initial State.vi.png

capture

Routing and Faulting Scripting.lvlib--Set Routing Channel Name.vi.png

capture

Routing and Faulting Scripting.lvlib--Set Routing Channel State Configurations.vi.png

capture

Routing and Faulting Scripting.lvlib--Set State Connections.vi.png

capture

Routing and Faulting Scripting.lvlib--Set State Description.vi.png

capture

Routing and Faulting Scripting.lvlib--Set State Value.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Endpoint Aliases Reference.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate RaF Custom Device Reference.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Reference by GUID.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Reference by Name.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Routing Channel Parameters.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Routing Channel Reference.vi.png

capture

Routing and Faulting Scripting.lvlib--Validate Routing Channels Reference.vi.png

capture

SLSC Switch Scripting Unit Tests.lvclass--test Endpoint Configurations.vi.png

capture

SLSC Switch Scripting Unit Tests.lvclass--test Find and Initialize SLSC Switch CD.vi.png

capture

SLSC Switch Scripting.lvlib--Find Endpoint Configuration Section.vi.png

capture

SLSC Switch Scripting.lvlib--Get All Endpoint Configurations.vi.png

capture

SLSC Switch Scripting.lvlib--Get Endpoint Configuration.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Capabilities.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Description.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Model.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Resource.vi.png

capture

SLSC Switch Scripting.lvlib--Get SLSC Switch Topology.vi.png

capture

SLSC Switch Scripting.lvlib--Initialize SLSC Switch Custom Device.vi.png

capture

SLSC Switch Scripting.lvlib--Remove SLSC Switch Custom Device.vi.png

capture

SLSC Switch Scripting.lvlib--Set All Endpoint Configurations.vi.png

capture

SLSC Switch Scripting.lvlib--Set Endpoint Configuration.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Capabilities.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Description.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Model.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Resource.vi.png

capture

SLSC Switch Scripting.lvlib--Set SLSC Switch Topology.vi.png

capture

SLSC Switch Scripting.lvlib--Validate Endpoint Configuration Reference.vi.png

capture

SLSC Switch Scripting.lvlib--Validate Reference by GUID.vi.png

capture

SLSC Switch Scripting.lvlib--Validate Reference by Name.vi.png

capture

SLSC Switch Scripting.lvlib--Validate SLSC CD Reference.vi.png

capture

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