Skip to content

Commit dadb8ae

Browse files
committed
fix tests
1 parent 585cd2b commit dadb8ae

15 files changed

Lines changed: 17 additions & 15 deletions

File tree

example/client-cpp-example/src/AlignedTimeseriesSessionExample.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ void deleteStorageGroups() {
339339
int main() {
340340
LOG_LEVEL = LEVEL_DEBUG;
341341

342-
session = new Session("127.0.0.1", 6667, "root", "root");
342+
session = new Session("127.0.0.1", 6667, "root", "IoTDB@2017");
343343

344344
cout << "session open\n" << endl;
345345
session->open(false);

example/client-cpp-example/src/TableModelSessionExample.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ int main() {
165165
->host("127.0.0.1")
166166
->rpcPort(6667)
167167
->username("root")
168-
->password("root")
168+
->password("IoTDB@2017")
169169
->database("db1")
170170
->build();
171171

example/schema/src/main/java/org/apache/iotdb/schema/PathCheckExample.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
*
4747
* <p>The usage of export-csv.sh can be found in the <a
4848
* href="https://iotdb.apache.org/zh/UserGuide/V1.2.x/Tools-System/Import-Export-Tool.html#csv%E5%AF%BC%E5%85%A5%E5%AF%BC%E5%87%BA%E5%B7%A5%E5%85%B7">documentation</a>.
49-
* For example: ./export-csv.sh -h 127.0.0.1 -p 6667 -u root -pw IoTDB@2017 -td . -q "show timeseries"
49+
* For example: ./export-csv.sh -h 127.0.0.1 -p 6667 -u root -pw IoTDB@2017 -td . -q "show
50+
* timeseries"
5051
*/
5152
public class PathCheckExample {
5253
private static final List<String> INPUT_LIST = new ArrayList<>();

integration-test/src/test/java/org/apache/iotdb/db/it/GrafanaApiServiceIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public void login() {
9595
HttpGet httpGet = new HttpGet("http://127.0.0.1:" + port + "/grafana/v1/login");
9696
CloseableHttpResponse response = null;
9797
try {
98-
String authorization = getAuthorization("root", "root");
98+
String authorization = getAuthorization("root", "IoTDB@2017");
9999
httpGet.setHeader("Authorization", authorization);
100100
for (int i = 0; i < 30; i++) {
101101
try {

iotdb-client/client-cpp/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ mentioned above, the header file and the dynamic library:
138138
139139
int main() {
140140
std::cout << "open session" << std::endl;
141-
std::shared_ptr<Session> session(new Session("127.0.0.1", 6667, "root", "root"));
141+
std::shared_ptr<Session> session(new Session("127.0.0.1", 6667, "root", "IoTDB@2017"));
142142
session->open(false);
143143
144144
std::cout << "setStorageGroup: root.test01" << std::endl;

iotdb-client/client-cpp/src/main/AbstractSessionBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class AbstractSessionBuilder {
2727
std::string host = "localhost";
2828
int rpcPort = 6667;
2929
std::string username = "root";
30-
std::string password = "root";
30+
std::string password = "IoTDB@2017";
3131
std::string zoneId = "";
3232
int fetchSize = 10000;
3333
std::string sqlDialect = "tree";

iotdb-client/client-cpp/src/main/Session.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ class Session {
657657
}
658658

659659
public:
660-
Session(const std::string& host, int rpcPort) : username_("root"), password_("root"), version(Version::V_1_0) {
660+
Session(const std::string& host, int rpcPort) : username_("root"), password_("IoTDB@2017"), version(Version::V_1_0) {
661661
this->host_ = host;
662662
this->rpcPort_ = rpcPort;
663663
initZoneId();

iotdb-client/client-cpp/src/test/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include <catch.hpp>
2323
#include "Session.h"
2424

25-
std::shared_ptr<Session> session = std::make_shared<Session>("127.0.0.1", 6667, "root", "root");
25+
std::shared_ptr<Session> session = std::make_shared<Session>("127.0.0.1", 6667, "root", "IoTDB@2017");
2626

2727
struct SessionListener : Catch::TestEventListenerBase {
2828

iotdb-client/client-cpp/src/test/main_Relational.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ std::shared_ptr<TableSession> session =
2929
->host("127.0.0.1")
3030
->rpcPort(6667)
3131
->username("root")
32-
->password("root")
32+
->password("IoTDB@2017")
3333
->build()
3434
);
3535

0 commit comments

Comments
 (0)