You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -99,17 +102,5 @@ You can test against a temporary local Resource Manager by following these steps
99
102
100
103
This method will block until the server thread has been terminated.
101
104
102
-
#### On a remote machine
103
-
104
-
You can test against a remote Resource Manager emulator as well. To do this, set the host to the hostname of the remote machine, like the example below.
.host("http://<hostname of machine>:<port>").build();
109
-
```
110
-
111
-
Note that the remote Resource Manager emulator must be running before your tests are run.
Then add the following code to create a project (be sure to change `myProjectId` to be something unique).
91
+
Then add the following code to create a project (be sure to change `myProjectId` to your own unique project ID).
78
92
79
93
```java
80
94
String myProjectId ="my-globally-unique-project-id"; // Change to a unique project ID.
@@ -121,7 +135,7 @@ while (projectIterator.hasNext()) {
121
135
122
136
#### Complete source code
123
137
124
-
Here we put together all the code shown above into one program. This program assumes that you are running from your own desktop.
138
+
Here we put together all the code shown above into one program. This program assumes that you are running from your own desktop and used the Google Cloud SDK to authenticate yourself.
Copy file name to clipboardExpand all lines: gcloud-java-resourcemanager/src/main/java/com/google/gcloud/resourcemanager/testing/LocalResourceManagerHelper.java
Copy file name to clipboardExpand all lines: gcloud-java-resourcemanager/src/test/java/com/google/gcloud/resourcemanager/LocalResourceManagerHelperTest.java
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -32,10 +32,8 @@ public class LocalResourceManagerHelperTest {
0 commit comments