This repository was archived by the owner on Apr 3, 2024. It is now read-only.
Commit 9f0e2fd
authored
Add debuggee name to the re-register log message (#154)
* Add debuggee name to the re-register log message
If an error occurs when re-registering a debuggee, the name of
the debuggee is reported in the error message to aid in debugging
why the re-registration failed.
fixes #128
* Update debugletapi test code to use new init() api
The debugletapi#init() method was updated to accept a callback
of the form 'callback(err, project)' instead of 'callback(err)'.
The test code for the class was updated so that callbacks
now include the 'project' parameter.
* Add test to validate setting debugletapi.project_
When the debugletapi.init() method calls its callback, the
project ID reported in the callback should match the project ID
stored in the debugletapi object.
* Add more robust checking of project names
The testing of the debugletapi#init() method was updated so that
the project name given through the callback was the project name
expected.
* Cleaned up the test for the init() method
Now the test for the debugletapi#init() method doesn't stub
out the utils.getProjectNumber method because it is already
being stubbed out earlier in the code.
* Fix a bug involving the GCLOUD_PROJECT env var
The tests in teh test-debugletapi.js file assumed the
GCLOUD_PROJECT environment variable was not set, and would
fail if this assumption wasn't valid. Now the GCLOUD_PROJECT
environment variable is unset when running this file.
* Now the project is passed to all init cb calls
PR-URL: #1541 parent 1b22490 commit 9f0e2fd
3 files changed
+21
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
| |||
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
111 | | - | |
| 114 | + | |
112 | 115 | | |
113 | 116 | | |
114 | 117 | | |
| |||
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
| 132 | + | |
129 | 133 | | |
130 | 134 | | |
131 | 135 | | |
| |||
141 | 145 | | |
142 | 146 | | |
143 | 147 | | |
144 | | - | |
| 148 | + | |
| 149 | + | |
145 | 150 | | |
146 | 151 | | |
147 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
53 | 57 | | |
54 | 58 | | |
55 | 59 | | |
56 | | - | |
| 60 | + | |
57 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
58 | 66 | | |
59 | 67 | | |
60 | 68 | | |
| |||
84 | 92 | | |
85 | 93 | | |
86 | 94 | | |
87 | | - | |
| 95 | + | |
88 | 96 | | |
89 | | - | |
| 97 | + | |
90 | 98 | | |
91 | 99 | | |
92 | 100 | | |
| |||
101 | 109 | | |
102 | 110 | | |
103 | 111 | | |
104 | | - | |
| 112 | + | |
105 | 113 | | |
106 | 114 | | |
107 | 115 | | |
| |||
0 commit comments