Skip to content

Commit

Permalink
Fixing unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
grafnu committed Jan 14, 2025
1 parent dad6276 commit 94a05e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion common/src/main/java/com/google/udmi/util/Common.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public abstract class Common {
public static final Joiner DETAIL_JOINER = Joiner.on(DETAIL_SEPARATOR);
public static final String CATEGORY_PROPERTY_KEY = "category";
public static final Pattern DEVICE_ID_ALLOWABLE = Pattern.compile("^[-._a-zA-Z0-9]+$");
public static final Pattern POINT_NAME_ALLOWABLE = DEVICE_ID_ALLOWABLE;
public static final Pattern POINT_NAME_ALLOWABLE = Pattern.compile("^[-_a-zA-Z0-9]+$");
public static final int SEC_TO_MS = 1000;
public static final String SOURCE_SEPARATOR = "+";
public static final String SOURCE_SEPARATOR_REGEX = "\\" + SOURCE_SEPARATOR;
Expand Down
2 changes: 1 addition & 1 deletion schema/model_cloud.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
},
"gateway": {
"$ref": "file:model_gateway.json#"
},
},
"config": {
"$ref": "file:model_cloud_config.json#"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class RegistrarTest {
private static final Set<String> ALLOWED_DEVICE_IDS = ImmutableSet.of("bacnet_29314",
"bacnet-29138", "AHU-0001");
private static final Set<String> ILLEGAL_DEVICE_IDS = ImmutableSet.of("bacnet/293124",
"BACnet.213214");
"BACnet@213214");
private static final Set<String> ALLOWED_POINT_NAMES = ImmutableSet.of("kWh", "Current",
"analogValue_13", "analogValue-13", "AV_-13", "Electric_L_OrchesTra");
private static final Set<String> ILLEGAL_POINT_NAMES = ImmutableSet.of("av/13", "av%13", "23,11",
Expand Down

0 comments on commit 94a05e8

Please sign in to comment.