Skip to content

Commit

Permalink
Block hyphenated directory names for tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
bstoll committed Feb 27, 2024
1 parent 2b969b0 commit b86e534
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ jobs:
find . -name \*.go -exec ./tools/check_ip_addresses.pl \{} +
- name: Allowed File Types
run: ./tools/allowed_file_types.sh
- name: Block hyphenated directory names
run: |
if ! find ./feature -type d -name '*-*' -print -exec false {} +; then
echo "Hyphenated directories are not allowed. Please use a different separator like underscore."
exit 1
fi
- name: Enum
run: |
fail=0
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions testregistry.textproto
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ test: {
test: {
id: "DP-1.14"
description: "DSCP transperency with ECN"
readme: "https://github.com/openconfig/featureprofiles/blob/main/feature/qos/ecn/otg_tests/DSCP-transparency/README.md"
readme: "https://github.com/openconfig/featureprofiles/blob/main/feature/qos/ecn/otg_tests/DSCP_transparency/README.md"
exec: " "
}
test: {
Expand Down Expand Up @@ -262,7 +262,7 @@ test: {
test: {
id: "RT-1.27"
description: "Static route to BGP redistribution"
readme: "https://github.com/openconfig/featureprofiles/blob/main/feature/bgp/static-route_bgp_redistribution/README.md"
readme: "https://github.com/openconfig/featureprofiles/blob/main/feature/bgp/static_route_bgp_redistribution/README.md"
exec: " "
}
test: {
Expand Down Expand Up @@ -292,7 +292,7 @@ test: {
test: {
id: "RT-1.32"
description: "BGP policy actions - MED, LocPref, prepend, flow-control"
readme: "https://github.com/openconfig/featureprofiles/feature/bgp/policybase/otg_tests/actions-MED_LocPref_prepend_flow-control/README.md"
readme: "https://github.com/openconfig/featureprofiles/feature/bgp/policybase/otg_tests/actions_MED_LocPref_prepend_flow_control/README.md"
exec: " "
}
test: {
Expand Down Expand Up @@ -383,7 +383,7 @@ test: {
test: {
id: "RT-2.12"
description: "Static route to IS-IS redistribution"
readme: "https://github.com/openconfig/featureprofiles/blob/main/feature/isis/static-route_isis_redistribution/README.md"
readme: "https://github.com/openconfig/featureprofiles/blob/main/feature/isis/static_route_isis_redistribution/README.md"
exec: " "
}
test: {
Expand Down

0 comments on commit b86e534

Please sign in to comment.