@@ -49,16 +49,16 @@ struct TestSession {
49
49
// Pre-condition : Need a Vault network running
50
50
TEST (SessionHandlerTest, FUNC_Constructor) {
51
51
routing::Parameters::append_local_live_port_endpoint = true ;
52
- BootstrapInfo bootstrap_info ;
52
+ routing::BootstrapContacts bootstrap_contacts ;
53
53
LOG (kInfo ) << " Session Handler for exisiting account" ;
54
54
{
55
- SessionHandler<AnonymousSession> session_handler (bootstrap_info );
55
+ SessionHandler<AnonymousSession> session_handler (bootstrap_contacts );
56
56
}
57
57
58
58
LOG (kInfo ) << " Session Handler for new account" ;
59
59
{
60
60
auto maid_and_signer (passport::CreateMaidAndSigner ());
61
- Client client (maid_and_signer, bootstrap_info );
61
+ Client client (maid_and_signer, bootstrap_contacts );
62
62
AnonymousSession session (maid_and_signer);
63
63
authentication::UserCredentials user_credentials (GetRandomUserCredentials ());
64
64
SessionHandler<AnonymousSession> session_handler (std::move (session), client,
@@ -97,27 +97,27 @@ TEST(SessionHandlerTest, BEH_EncryptDecryptAnonymousSession) {
97
97
98
98
TEST (SessionHandlerTest, FUNC_Login) {
99
99
routing::Parameters::append_local_live_port_endpoint = true ;
100
- BootstrapInfo bootstrap_info ;
100
+ routing::BootstrapContacts bootstrap_contacts ;
101
101
auto user_credentials_tuple (GetRandomUserCredentialsTuple ());
102
102
auto maid_and_signer (passport::CreateMaidAndSigner ());
103
103
{
104
104
LOG (kInfo ) << " SessionHandlerTest -- Creating new account --" ;
105
- Client client (maid_and_signer, bootstrap_info );
105
+ Client client (maid_and_signer, bootstrap_contacts );
106
106
AnonymousSession session (maid_and_signer);
107
107
authentication::UserCredentials user_credentials (MakeUserCredentials (user_credentials_tuple));
108
108
SessionHandler<AnonymousSession> session_handler (std::move (session), client,
109
109
std::move (user_credentials));
110
110
}
111
111
try {
112
112
LOG (kInfo ) << " SessionHandlerTest -- Login for existing account --" ;
113
- SessionHandler<AnonymousSession> session_handler (bootstrap_info );
113
+ SessionHandler<AnonymousSession> session_handler (bootstrap_contacts );
114
114
LOG (kInfo ) << " About to Login .. " ;
115
115
authentication::UserCredentials user_credentials (MakeUserCredentials (user_credentials_tuple));
116
116
session_handler.Login (std::move (user_credentials));
117
117
LOG (kInfo ) << " Login successful !" ;
118
118
ASSERT_TRUE (maid_and_signer.first .name () ==
119
119
session_handler.session ().passport ->GetMaid ().name ());
120
- Client client (session_handler.session ().passport ->GetMaid (), bootstrap_info );
120
+ Client client (session_handler.session ().passport ->GetMaid (), bootstrap_contacts );
121
121
LOG (kInfo ) << " Client connection to account successful !" ;
122
122
} catch (std::exception & e) {
123
123
LOG (kError ) << " Error on Login :" << boost::diagnostic_information (e);
@@ -127,27 +127,27 @@ TEST(SessionHandlerTest, FUNC_Login) {
127
127
128
128
TEST (SessionHandlerTest, FUNC_Save) {
129
129
routing::Parameters::append_local_live_port_endpoint = true ;
130
- BootstrapInfo bootstrap_info ;
130
+ routing::BootstrapContacts bootstrap_contacts ;
131
131
auto user_credentials_tuple (GetRandomUserCredentialsTuple ());
132
132
auto maid_and_signer (passport::CreateMaidAndSigner ());
133
133
{
134
134
LOG (kInfo ) << " SessionHandlerTest -- Creating new account --" ;
135
- Client client (maid_and_signer, bootstrap_info );
135
+ Client client (maid_and_signer, bootstrap_contacts );
136
136
AnonymousSession session (maid_and_signer);
137
137
authentication::UserCredentials user_credentials (MakeUserCredentials (user_credentials_tuple));
138
138
SessionHandler<AnonymousSession> session_handler (std::move (session), client,
139
139
std::move (user_credentials));
140
140
}
141
141
try {
142
142
LOG (kInfo ) << " SessionHandlerTest -- Login for existing account --" ;
143
- SessionHandler<AnonymousSession> session_handler (bootstrap_info );
143
+ SessionHandler<AnonymousSession> session_handler (bootstrap_contacts );
144
144
LOG (kInfo ) << " About to Login .. " ;
145
145
authentication::UserCredentials user_credentials (MakeUserCredentials (user_credentials_tuple));
146
146
session_handler.Login (std::move (user_credentials));
147
147
LOG (kInfo ) << " Login successful !" ;
148
148
ASSERT_TRUE (maid_and_signer.first .name () ==
149
149
session_handler.session ().passport ->GetMaid ().name ());
150
- Client client (session_handler.session ().passport ->GetMaid (), bootstrap_info );
150
+ Client client (session_handler.session ().passport ->GetMaid (), bootstrap_contacts );
151
151
LOG (kInfo ) << " Client connection to account successful !" ;
152
152
LOG (kInfo ) << " SessionHandlerTest -- Saving Session --" ;
153
153
for (int i (0 ); i != 10 ; ++i) {
0 commit comments