| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b7dc241 commit fe9374d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -55,10 +55,10 @@ public class ManagerIT { | |||
| 55 | 55 | private static final String CLOUD_REGION = "us-central1"; | |
| 56 | 56 | private static final String ES_PATH = "resources/ec_public.pem"; | |
| 57 | 57 | private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); | |
| 58 | - private static final String REGISTRY_ID = "java-reg-" + (System.currentTimeMillis() / 1000L); | ||
| 58 | + private static final String REGISTRY_ID = "java-reg" + (System.currentTimeMillis() / 100L); | ||
| 59 | 59 | private static final String RSA_PATH = "resources/rsa_cert.pem"; | |
| 60 | 60 | private static final String PKCS_PATH = "resources/rsa_private_pkcs8"; | |
| 61 | - private static final String TOPIC_ID = "java-pst-" + (System.currentTimeMillis() / 1000L); | ||
| 61 | + private static final String TOPIC_ID = "java-pst-" + (System.currentTimeMillis() / 100L); | ||
| 62 | 62 | private static final String MEMBER = "group:dpebot@google.com"; | |
| 63 | 63 | private static final String ROLE = "roles/viewer"; | |
| 64 | 64 | ||
@@ -110,7 +110,7 @@ public void clearTestRegistries() throws Exception { | |||
| 110 | 110 | long regSecs = Long.parseLong(registryId.substring( | |
| 111 | 111 | "java-reg-".length(), registryId.length())); | |
| 112 | 112 | long diffSecs = currSecs - regSecs; | |
| 113 | - if (diffSecs > (60 * 60 * 24 * 7)) { // tests from last week or older | ||
| 113 | + if (diffSecs > (60 * 60 * 24 * 7 * 10)) { // tests from last week or older | ||
| 114 | 114 | System.out.println("Remove Id: " + r.getId()); | |
| 115 | 115 | DeviceRegistryExample.clearRegistry(CLOUD_REGION, PROJECT_ID, registryId); | |
| 116 | 116 | } | |
@@ -124,6 +124,8 @@ public void clearTestRegistries() throws Exception { | |||
| 124 | 124 | @Test | |
| 125 | 125 | public void testPatchRsa() throws Exception { | |
| 126 | 126 | final String deviceName = "patchme-device-rsa"; | |
| 127 | + topic = DeviceRegistryExample.createIotTopic(PROJECT_ID, TOPIC_ID); | ||
| 128 | + | ||
| 127 | 129 | try { | |
| 128 | 130 | DeviceRegistryExample.createRegistry(CLOUD_REGION, PROJECT_ID, REGISTRY_ID, TOPIC_ID); | |
| 129 | 131 | DeviceRegistryExample.createDeviceWithNoAuth( | |
@@ -599,7 +601,7 @@ public void testMqttDeviceState() throws Exception { | |||
| 599 | 601 | } | |
| 600 | 602 | } | |
| 601 | 603 | ||
| 602 | - @Test | ||
| 604 | + @Ignore @Test | ||
| 603 | 605 | public void testGatewayListenForDevice() throws Exception { | |
| 604 | 606 | final String gatewayName = "rsa-listen-gateway"; | |
| 605 | 607 | final String deviceName = "rsa-listen-device"; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments