-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[nodejs] Enable DI PII and probe status tests
- Loading branch information
Showing
7 changed files
with
62 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[ | ||
{ | ||
"language": "", | ||
"type": "", | ||
"id": "loga0cf2-line-45cf-9f39-59installed", | ||
"version": 0, | ||
"where": { | ||
"typeName": null, | ||
"sourceFile": "ACTUAL_SOURCE_FILE", | ||
"lines": [ | ||
"20" | ||
] | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[ | ||
{ | ||
"language": "", | ||
"type": "", | ||
"id": "loga0cf2-meth-45cf-9f39-591received", | ||
"version": 0, | ||
"where": { | ||
"typeName": "NotReallyExists", | ||
"methodName": "SomeMethod", | ||
"sourceFile": null | ||
}, | ||
"evaluateAt": "EXIT" | ||
}, | ||
{ | ||
"language": "", | ||
"type": "", | ||
"id": "loga0cf2-meth-45cf-9f39-59installed", | ||
"version": 0, | ||
"where": { | ||
"typeName": "ACTUAL_TYPE_NAME", | ||
"methodName": "LogProbe", | ||
"sourceFile": null | ||
}, | ||
"evaluateAt": "EXIT" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -211,6 +211,7 @@ def setup_pii_redaction_method_full(self): | |
@bug(context.library == "[email protected]", reason="DEBUG-3127") | ||
@bug(context.library == "[email protected]", reason="DEBUG-3127") | ||
@missing_feature(context.library == "ruby", reason="Local variable capture not implemented for method probes") | ||
@missing_feature(context.library == "nodejs", reason="Not yet implemented") | ||
def test_pii_redaction_method_full(self): | ||
self._assert(REDACTED_KEYS, REDACTED_TYPES) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,13 +60,23 @@ def _check_probe_status(expected_id, expected_status): | |
|
||
assert not errors, f"Probe status errors:\n" + "\n".join(errors) | ||
|
||
############ log probe ############ | ||
def setup_probe_status_log(self): | ||
self._setup("probe_status_log") | ||
############ log line probe ############ | ||
def setup_probe_status_log_line(self): | ||
self._setup("probe_status_log_line") | ||
|
||
@bug(context.library == "[email protected]", reason="DEBUG-3127") | ||
@bug(context.library == "[email protected]", reason="DEBUG-3127") | ||
def test_probe_status_log(self): | ||
def test_probe_status_log_line(self): | ||
self._assert() | ||
|
||
############ log method probe ############ | ||
def setup_probe_status_log_method(self): | ||
self._setup("probe_status_log_method") | ||
|
||
@bug(context.library == "[email protected]", reason="DEBUG-3127") | ||
@bug(context.library == "[email protected]", reason="DEBUG-3127") | ||
@missing_feature(context.library == "nodejs", reason="Not yet implemented") | ||
def test_probe_status_log_method(self): | ||
self._assert() | ||
|
||
############ metric probe ############ | ||
|
@@ -76,6 +86,7 @@ def setup_probe_status_metric(self): | |
@bug(context.library == "[email protected]", reason="DEBUG-3127") | ||
@bug(context.library == "[email protected]", reason="DEBUG-3127") | ||
@missing_feature(context.library == "ruby", reason="Not yet implemented") | ||
@missing_feature(context.library == "nodejs", reason="Not yet implemented") | ||
def test_probe_status_metric(self): | ||
self._assert() | ||
|
||
|
@@ -84,6 +95,7 @@ def setup_probe_status_span(self): | |
self._setup("probe_status_span") | ||
|
||
@missing_feature(context.library == "ruby", reason="Not yet implemented") | ||
@missing_feature(context.library == "nodejs", reason="Not yet implemented") | ||
def test_probe_status_span(self): | ||
self._assert() | ||
|
||
|
@@ -94,5 +106,6 @@ def setup_probe_status_spandecoration(self): | |
@bug(context.library == "[email protected]", reason="DEBUG-3127") | ||
@bug(context.library == "[email protected]", reason="DEBUG-3127") | ||
@missing_feature(context.library == "ruby", reason="Not yet implemented") | ||
@missing_feature(context.library == "nodejs", reason="Not yet implemented") | ||
def test_probe_status_spandecoration(self): | ||
self._assert() |