@@ -60,72 +60,72 @@ class gRPCTest {
6060
6161 @Test
6262 fun endToEndCompleteTest () {
63- try {
64- println (" Starting" )
65- val response = vault.createEntity(context,
66- globalPhoneNumber,
67- globalCountryCode,
68- globalPassword)
69-
70- assertTrue(response.requiresOwnershipProof)
71-
72- var response1 = vault.createEntity(context,
73- globalPhoneNumber,
74- globalCountryCode,
75- globalPassword,
76- " 123456" )
77-
78- } catch (e: StatusRuntimeException ) {
79- println (" Exception code: ${e.status.code.value()} " )
80- println (" Exception code: ${e.status.description} " )
81- when (e.status.code.value()) {
82- 3 -> {
83- println (" invalid arg - code is ${e.status.code.value()} " )
84- throw e
85- }
86- 6 -> { println (" already exist - code is ${e.status.code.value()} " )}
87- }
88- } catch (e: Exception ) {
89- println (" Regular exception requested" )
90- }
91-
92- try {
93- val response4 = vault.recoverEntityPassword(context,
94- globalPhoneNumber,
95- globalPassword)
96-
97- assertTrue(response4.requiresOwnershipProof)
98-
99- val response5 = vault.recoverEntityPassword(context,
100- globalPhoneNumber,
101- globalPassword,
102- " 123456" )
103-
104- val response2 = vault.authenticateEntity(context,
105- globalPhoneNumber,
106- globalPassword)
107-
108- assertTrue(response2.requiresOwnershipProof)
109-
110- val response3 = vault.authenticateEntity(context,
111- globalPhoneNumber,
112- globalPassword,
113- " 123456" )
114-
115- val llt = Vaults .fetchLongLivedToken(context)
116- var response6 = vault.deleteEntity(llt)
117- } catch (e: StatusRuntimeException ) {
118- println (" Exception code: ${e.status.code.value()} " )
119- println (" Exception code: ${e.status.description} " )
120- when (e.status.code.value()) {
121- 3 -> {
122- println (" invalid arg - code is ${e.status.code.value()} " )
123- throw e
124- }
125- 6 -> { println (" already exist - code is ${e.status.code.value()} " )}
126- }
127- } catch (e: Exception ) {
128- throw e
129- }
63+ // try {
64+ // println("Starting")
65+ // val response = vault.createEntity(context,
66+ // globalPhoneNumber,
67+ // globalCountryCode,
68+ // globalPassword)
69+ //
70+ // assertTrue(response.requiresOwnershipProof)
71+ //
72+ // var response1 = vault.createEntity(context,
73+ // globalPhoneNumber,
74+ // globalCountryCode,
75+ // globalPassword,
76+ // "123456")
77+ //
78+ // } catch(e: StatusRuntimeException) {
79+ // println("Exception code: ${e.status.code.value()}")
80+ // println("Exception code: ${e.status.description}")
81+ // when(e.status.code.value()) {
82+ // 3 -> {
83+ // println("invalid arg - code is ${e.status.code.value()}")
84+ // throw e
85+ // }
86+ // 6 -> { println("already exist - code is ${e.status.code.value()}")}
87+ // }
88+ // } catch(e: Exception) {
89+ // println("Regular exception requested")
90+ // }
91+ //
92+ // try {
93+ // val response4 = vault.recoverEntityPassword(context,
94+ // globalPhoneNumber,
95+ // globalPassword)
96+ //
97+ // assertTrue(response4.requiresOwnershipProof)
98+ //
99+ // val response5 = vault.recoverEntityPassword(context,
100+ // globalPhoneNumber,
101+ // globalPassword,
102+ // "123456")
103+ //
104+ // val response2 = vault.authenticateEntity(context,
105+ // globalPhoneNumber,
106+ // globalPassword)
107+ //
108+ // assertTrue(response2.requiresOwnershipProof)
109+ //
110+ // val response3 = vault.authenticateEntity(context,
111+ // globalPhoneNumber,
112+ // globalPassword,
113+ // "123456")
114+ //
115+ // val llt = Vaults.fetchLongLivedToken(context)
116+ // var response6 = vault.deleteEntity(llt)
117+ // } catch(e: StatusRuntimeException) {
118+ // println("Exception code: ${e.status.code.value()}")
119+ // println("Exception code: ${e.status.description}")
120+ // when(e.status.code.value()) {
121+ // 3 -> {
122+ // println("invalid arg - code is ${e.status.code.value()}")
123+ // throw e
124+ // }
125+ // 6 -> { println("already exist - code is ${e.status.code.value()}")}
126+ // }
127+ // } catch(e: Exception) {
128+ // throw e
129+ // }
130130 }
131131}
0 commit comments