Package: golang-go.opencensus / 0.22.0-1

001-disable-test-GET-POST-calls-to-example-com.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Description: Disable test GET and POST calls to https://example.com/
 TestAgainstSpecs/Successful_GET_call_to_https://example.com and
 TestAgainstSpecs/Successful_POST_call_to_https://example.com do not work
 without network connection.
Author: Anthony Fok <foka@debian.org>
Origin: vendor
Forwarded: not-needed
Last-Update: 2019-07-28
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/plugin/ochttp/testdata/http-out-test-cases.json
+++ b/plugin/ochttp/testdata/http-out-test-cases.json
@@ -1,35 +1,5 @@
 [
     {
-      "name": "Successful GET call to https://example.com",
-      "method": "GET",
-      "url": "https://example.com/",
-      "spanName": "/",
-      "spanStatus": "OK",
-      "spanKind": "Client",
-      "spanAttributes": {
-        "http.path": "/",
-        "http.method": "GET",
-        "http.host": "example.com",
-        "http.status_code": "200",
-        "http.url": "https://example.com/"
-      }
-    },
-    {
-      "name": "Successfully POST call to https://example.com",
-      "method": "POST",
-      "url": "https://example.com/",
-      "spanName": "/",
-      "spanStatus": "OK",
-      "spanKind": "Client",
-      "spanAttributes": {
-        "http.path": "/",
-        "http.method": "POST",
-        "http.host": "example.com",
-        "http.status_code": "200",
-        "http.url": "https://example.com/"
-      }
-    },
-    {
       "name": "Name is populated as a path",
       "method": "GET",
       "url": "http://{host}:{port}/path/to/resource/",