Skip to content

Commit 5df9491

Browse files
committed
fix tabs in DebugInformation.doc.cs
1 parent bbce972 commit 5df9491

File tree

1 file changed

+76
-76
lines changed

1 file changed

+76
-76
lines changed

src/Tests/Tests/ClientConcepts/Troubleshooting/DebugInformation.doc.cs

Lines changed: 76 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -18,101 +18,101 @@
1818

1919
namespace Tests.ClientConcepts.Troubleshooting
2020
{
21-
/**
22-
* === Debug information
23-
*
24-
* Every response from Elasticsearch.Net and NEST contains a `DebugInformation` property
25-
* that provides a human readable description of what happened during the request for both successful and
26-
* failed requests
27-
*/
28-
public class DebugInformation : IntegrationDocumentationTestBase, IClusterFixture<ReadOnlyCluster>
29-
{
30-
public DebugInformation(ReadOnlyCluster cluster) : base(cluster) {}
21+
/**
22+
* === Debug information
23+
*
24+
* Every response from Elasticsearch.Net and NEST contains a `DebugInformation` property
25+
* that provides a human readable description of what happened during the request for both successful and
26+
* failed requests
27+
*/
28+
public class DebugInformation : IntegrationDocumentationTestBase, IClusterFixture<ReadOnlyCluster>
29+
{
30+
public DebugInformation(ReadOnlyCluster cluster) : base(cluster) {}
3131

32-
[I] public void DefaultDebug()
33-
{
34-
// hide
35-
var client = this.Client;
32+
[I] public void DefaultDebug()
33+
{
34+
// hide
35+
var client = this.Client;
3636

37-
var response = client.Search<Project>(s => s
38-
.Query(q => q
39-
.MatchAll()
40-
)
41-
);
37+
var response = client.Search<Project>(s => s
38+
.Query(q => q
39+
.MatchAll()
40+
)
41+
);
4242

43-
response.DebugInformation.Should().Contain("Valid NEST response");
44-
}
43+
response.DebugInformation.Should().Contain("Valid NEST response");
44+
}
4545
//hide
46-
[U] public void PasswordIsNotExposedInDebugInformation()
47-
{
48-
// hide
49-
var client = new ElasticClient(new AlwaysInMemoryConnectionSettings()
46+
[U] public void PasswordIsNotExposedInDebugInformation()
47+
{
48+
// hide
49+
var client = new ElasticClient(new AlwaysInMemoryConnectionSettings()
5050
.DefaultIndex("index")
5151
.BasicAuthentication("user1", "pass2")
5252
);
5353

54-
var response = client.Search<Project>(s => s
55-
.Query(q => q
56-
.MatchAll()
57-
)
58-
);
54+
var response = client.Search<Project>(s => s
55+
.Query(q => q
56+
.MatchAll()
57+
)
58+
);
5959

60-
response.DebugInformation.Should().NotContain("pass2");
61-
}
60+
response.DebugInformation.Should().NotContain("pass2");
61+
}
6262

6363
//hide
64-
[U] public void PasswordIsNotExposedInDebugInformationWhenPartOfUrl()
65-
{
66-
// hide
64+
[U] public void PasswordIsNotExposedInDebugInformationWhenPartOfUrl()
65+
{
66+
// hide
6767
var pool = new SingleNodeConnectionPool(new Uri("http://user1:pass2@localhost:9200"));
68-
var client = new ElasticClient(new ConnectionSettings(pool, new InMemoryConnection())
68+
var client = new ElasticClient(new ConnectionSettings(pool, new InMemoryConnection())
6969
.DefaultIndex("index")
7070
);
7171

72-
var response = client.Search<Project>(s => s
73-
.Query(q => q
74-
.MatchAll()
75-
)
76-
);
72+
var response = client.Search<Project>(s => s
73+
.Query(q => q
74+
.MatchAll()
75+
)
76+
);
7777

78-
response.DebugInformation.Should().NotContain("pass2");
79-
}
80-
/**
81-
* This can be useful in tracking down numerous problems and can also be useful when filing an
82-
* {github}/issues[issue] on our github repository.
83-
*
84-
* By default, the request and response bytes are not available within the debug information, but
85-
* can be enabled globally on Connection Settings
86-
*
87-
*/
88-
public void DisableDirectStreaming()
89-
{
90-
var connectionPool = new SingleNodeConnectionPool(new Uri("http://localhost:9200"));
78+
response.DebugInformation.Should().NotContain("pass2");
79+
}
80+
/**
81+
* This can be useful in tracking down numerous problems and can also be useful when filing an
82+
* {github}/issues[issue] on our github repository.
83+
*
84+
* By default, the request and response bytes are not available within the debug information, but
85+
* can be enabled globally on Connection Settings
86+
*
87+
*/
88+
public void DisableDirectStreaming()
89+
{
90+
var connectionPool = new SingleNodeConnectionPool(new Uri("http://localhost:9200"));
9191

92-
var settings = new ConnectionSettings(connectionPool)
93-
.DisableDirectStreaming(); // <1> disable direct streaming for *all* requests
92+
var settings = new ConnectionSettings(connectionPool)
93+
.DisableDirectStreaming(); // <1> disable direct streaming for *all* requests
9494

95-
var client = new ElasticClient(settings);
96-
}
95+
var client = new ElasticClient(settings);
96+
}
9797

98-
/**
99-
* or on a _per request_ basis
100-
*/
101-
[I] public void DisableDirectStreamingPerRequest()
102-
{
103-
// hide
104-
var client = TestClient.DefaultInMemoryClient;
98+
/**
99+
* or on a _per request_ basis
100+
*/
101+
[I] public void DisableDirectStreamingPerRequest()
102+
{
103+
// hide
104+
var client = TestClient.DefaultInMemoryClient;
105105

106-
var response = client.Search<Project>(s => s
107-
.RequestConfiguration(r => r
108-
.DisableDirectStreaming() // <1> disable direct streaming for *this* request
109-
)
110-
.Query(q => q
111-
.MatchAll()
112-
)
113-
);
106+
var response = client.Search<Project>(s => s
107+
.RequestConfiguration(r => r
108+
.DisableDirectStreaming() // <1> disable direct streaming for *this* request
109+
)
110+
.Query(q => q
111+
.MatchAll()
112+
)
113+
);
114114

115-
response.DebugInformation.Should().Contain("\"match_all\":");
116-
}
117-
}
115+
response.DebugInformation.Should().Contain("\"match_all\":");
116+
}
117+
}
118118
}

0 commit comments

Comments
 (0)