Test duration : 0.193s
Failed Configuration | ||
---|---|---|
tigase.tests.ExampleJaxmppTest | ||
setupSuite | 0.193s |
Method arguments:
org.testng.TestRunner@3ffd4b12
2022-10-13 22:35:17 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties in scopes [stream]
java.lang.AssertionError: Registration failed!
2022-10-13 22:35:17 | tigase.jaxmpp.j2se.Jaxmpp.login: state=disconnected cr=false 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=479 thread=1] Connector state changed: null->connecting 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=479 thread=1] DNS entry stored in session object: localhost:5222 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=479 thread=1] Preparing connection to [localhost:5222] 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=479 thread=1] Opening connection to localhost/127.0.0.1:5222 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=479 thread=1] Connector state changed: connecting->connected 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=479 thread=1] Whitespace ping period is setted to nullms 2022-10-13 22:35:17 | tigase.jaxmpp.core.client.xmpp.modules.StreamFeaturesModule.streamRestarted: Pipelining is disabled 2022-10-13 22:35:17 | >> <features xmlns="http://etherx.jabber.org/streams"><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required/></starttls><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression></features> 2022-10-13 22:35:17 | admin :: admin@test-domain.com << <features xmlns="http://etherx.jabber.org/streams"><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required/></starttls><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression></features> 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=479 thread=3041] Start TLS 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=479 thread=3043] Proceeding TLS 2022-10-13 22:35:17 | << <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/> 2022-10-13 22:35:17 | admin :: admin@test-domain.com >> <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/> 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=479 thread=3043] Start handshake 2022-10-13 22:35:17 | tigase.jaxmpp.core.client.xmpp.modules.StreamFeaturesModule.streamRestarted: Pipelining is disabled 2022-10-13 22:35:17 | >> <features xmlns="http://etherx.jabber.org/streams"><auth xmlns="http://jabber.org/features/iq-auth"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>SCRAM-SHA-512</mechanism><mechanism>SCRAM-SHA-256</mechanism><mechanism>SCRAM-SHA-1</mechanism><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><register xmlns="http://jabber.org/features/iq-register"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression></features> 2022-10-13 22:35:17 | admin :: admin@test-domain.com << <features xmlns="http://etherx.jabber.org/streams"><auth xmlns="http://jabber.org/features/iq-auth"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>SCRAM-SHA-512</mechanism><mechanism>SCRAM-SHA-256</mechanism><mechanism>SCRAM-SHA-1</mechanism><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><register xmlns="http://jabber.org/features/iq-register"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression></features> 2022-10-13 22:35:17 | tigase.jaxmpp.core.client.xmpp.modules.auth.AuthModule.isAuthAvailable: saslSupportedtrue, nonSaslSupported: true 2022-10-13 22:35:17 | tigase.jaxmpp.core.client.xmpp.modules.auth.AuthModule.login: Authenticating with SASL Non-SASL 2022-10-13 22:35:17 | tigase.jaxmpp.core.client.xmpp.modules.auth.SaslModule.login: Try login with SASL 2022-10-13 22:35:17 | << <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="SCRAM-SHA-256">biwsbj1hZG1pbixyPWNiRVpuSHp1ZmhQN2VZbEVCRGZm</auth> 2022-10-13 22:35:17 | admin :: admin@test-domain.com >> <auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="SCRAM-SHA-256">biwsbj1hZG1pbixyPWNiRVpuSHp1ZmhQN2VZbEVCRGZm</auth> 2022-10-13 22:35:17 | >> <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure> 2022-10-13 22:35:17 | admin :: admin@test-domain.com << <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure> 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.Jaxmpp.onException: Catching exception 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=479 thread=3041] Connector state changed: connected->disconnecting 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=479 thread=3041] Terminating XMPP Stream 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=479 thread=3043] Connector state changed: disconnecting->disconnected 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=479 thread=3043] Stream terminated 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.Worker.interrupt: Worker Interrupted 2022-10-13 22:35:17 | Could not connect with admin account credentials (tigase.jaxmpp.core.client.exceptions.JaxmppException: Unauthorized with condition=not_authorized), trying to register account... 2022-10-13 22:35:17 | tigase.jaxmpp.core.client.AbstractSessionObject.clear: Clearing properties in scopes [stream] 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.Jaxmpp.login: state=disconnected cr=false 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.Jaxmpp.createConnector: Using SocketConnector 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] Using XEP-0077 mode!!!! 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] Connector state changed: null->connecting 2022-10-13 22:35:17 | tigase.jaxmpp.core.client.SessionObject$ClearedHandler$ClearedEvent@7af74a4a 2022-10-13 22:35:17 | StateChangedEvent{oldState=null, newState=connecting} 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] DNS entry stored in session object: localhost:5222 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] Preparing connection to [localhost:5222] 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] Opening connection to localhost/127.0.0.1:5222 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] Connector state changed: connecting->connected 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=1] Whitespace ping period is setted to nullms 2022-10-13 22:35:17 | [Mutex] waiting for: [registration] 2022-10-13 22:35:17 | tigase.jaxmpp.core.client.xmpp.modules.StreamFeaturesModule.streamRestarted: Pipelining is disabled 2022-10-13 22:35:17 | tigase.jaxmpp.core.client.Connector$StreamRestartedHandler$StreamRestaredEvent@7430bb64 2022-10-13 22:35:17 | StateChangedEvent{oldState=connecting, newState=connected} 2022-10-13 22:35:17 | tigase.jaxmpp.core.client.Connector$ConnectedHandler$ConnectedEvent@700f213a 2022-10-13 22:35:17 | admin :: null << <features xmlns="http://etherx.jabber.org/streams"><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required/></starttls><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression></features> 2022-10-13 22:35:17 | StanzaReceivedEvent{stanza=<features xmlns="http://etherx.jabber.org/streams"><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required/></starttls><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression></features>} 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=3048] Start TLS 2022-10-13 22:35:17 | StreamFeaturesReceivedEvent[<features xmlns="http://etherx.jabber.org/streams"><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required/></starttls><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression></features>] 2022-10-13 22:35:17 | admin :: null >> <starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/> 2022-10-13 22:35:17 | StanzaSendingEvent{stanza=<starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>} 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=3050] Proceeding TLS 2022-10-13 22:35:17 | tigase.jaxmpp.j2se.connectors.socket.SocketConnector.printLog: [scid=480 thread=3050] Start handshake 2022-10-13 22:35:17 | tigase.jaxmpp.core.client.xmpp.modules.StreamFeaturesModule.streamRestarted: Pipelining is disabled 2022-10-13 22:35:17 | tigase.jaxmpp.core.client.Connector$StreamRestartedHandler$StreamRestaredEvent@350db15f 2022-10-13 22:35:17 | tigase.jaxmpp.core.client.Connector$EncryptionEstablishedHandler$EncryptionEstablishedEvent@756818ae 2022-10-13 22:35:17 | admin :: null << <features xmlns="http://etherx.jabber.org/streams"><auth xmlns="http://jabber.org/features/iq-auth"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>SCRAM-SHA-512</mechanism><mechanism>SCRAM-SHA-256</mechanism><mechanism>SCRAM-SHA-1</mechanism><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><register xmlns="http://jabber.org/features/iq-register"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression></features> 2022-10-13 22:35:17 | StanzaReceivedEvent{stanza=<features xmlns="http://etherx.jabber.org/streams"><auth xmlns="http://jabber.org/features/iq-auth"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>SCRAM-SHA-512</mechanism><mechanism>SCRAM-SHA-256</mechanism><mechanism>SCRAM-SHA-1</mechanism><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><register xmlns="http://jabber.org/features/iq-register"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression></features>} 2022-10-13 22:35:17 | StreamFeaturesReceivedEvent[<features xmlns="http://etherx.jabber.org/streams"><auth xmlns="http://jabber.org/features/iq-auth"/><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>SCRAM-SHA-512</mechanism><mechanism>SCRAM-SHA-256</mechanism><mechanism>SCRAM-SHA-1</mechanism><mechanism>PLAIN</mechanism><mechanism>ANONYMOUS</mechanism></mechanisms><register xmlns="http://jabber.org/features/iq-register"/><compression xmlns="http://jabber.org/features/compress"><method>zlib</method></compression></features>] 2022-10-13 22:35:17 | admin :: null >> <iq to="test-domain.com" id="PiuSLBhU7eFvev9IqTRcv5e" type="get"><query xmlns="jabber:iq:register"/></iq> 2022-10-13 22:35:17 | StanzaSendingEvent{stanza=<iq to="test-domain.com" id="PiuSLBhU7eFvev9IqTRcv5e" type="get"><query xmlns="jabber:iq:register"/></iq>} 2022-10-13 22:35:17 | tigase.jaxmpp.core.client.xmpp.modules.registration.InBandRegistrationModule$ReceivedRequestedFieldsHandler$ReceivedRequestedFieldsEvent@4f266fc 2022-10-13 22:35:17 | admin :: null << <iq from="test-domain.com" type="result" id="PiuSLBhU7eFvev9IqTRcv5e" xmlns="jabber:client"><query xmlns="jabber:iq:register"><instructions>Please provide the following information to sign up for an account Please also provide your e-mail address (must be valid!) to which we will send confirmation link.</instructions><x type="form" xmlns="jabber:x:data"><title>Account Registration</title><instructions>Please provide the following information to sign up for an account Please also provide your e-mail address (must be valid!) to which we will send confirmation link.</instructions><field type="hidden" var="FORM_TYPE"><value>jabber:iq:register</value></field><field type="text-single" label="Username" var="username"><required/><value/></field><field type="text-private" label="Password" var="password"><required/><value/></field><field type="text-single" label="Email (MUST BE VALID!)" var="email"><required/><value/></field></x></query></iq> 2022-10-13 22:35:17 | StanzaReceivedEvent{stanza=<iq from="test-domain.com" type="result" id="PiuSLBhU7eFvev9IqTRcv5e" xmlns="jabber:client"><query xmlns="jabber:iq:register"><instructions>Please provide the following information to sign up for an account Please also provide your e-mail address (must be valid!) to which we will send confirmation link.</instructions><x type="form" xmlns="jabber:x:data"><title>Account Registration</title><instructions>Please provide the following information to sign up for an account Please also provide your e-mail address (must be valid!) to which we will send confirmation link.</instructions><field type="hidden" var="FORM_TYPE"><value>jabber:iq:register</value></field><field type="text-single" label="Username" var="username"><required/><value/></field><field type="text-private" label="Password" var="password"><required/><value/></field><field type="text-single" label="Email (MUST BE VALID!)" var="email"><required/><value/></field></x></query></iq>} 2022-10-13 22:35:17 | admin :: null >> <iq to="test-domain.com" id="Y7VDjLWSNFOJx8weKKYWn07" type="set"><query xmlns="jabber:iq:register"><username>admin</username><password>admin</password><email>d20596da-6229-48ff-9a8d-5d93a49b7621@localhost</email></query></iq> 2022-10-13 22:35:17 | StanzaSendingEvent{stanza=<iq to="test-domain.com" id="Y7VDjLWSNFOJx8weKKYWn07" type="set"><query xmlns="jabber:iq:register"><username>admin</username><password>admin</password><email>d20596da-6229-48ff-9a8d-5d93a49b7621@localhost</email></query></iq>} 2022-10-13 22:35:17 | admin :: null << <iq from="test-domain.com" type="error" id="Y7VDjLWSNFOJx8weKKYWn07" xmlns="jabber:client"><query xmlns="jabber:iq:register"><username>admin</username><password>admin</password><email>d20596da-6229-48ff-9a8d-5d93a49b7621@localhost</email></query><error type="wait" code="500"><internal-server-error xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xml:lang="en" xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Database access problem, please contact administrator.</text></error></iq> 2022-10-13 22:35:17 | StanzaReceivedEvent{stanza=<iq from="test-domain.com" type="error" id="Y7VDjLWSNFOJx8weKKYWn07" xmlns="jabber:client"><query xmlns="jabber:iq:register"><username>admin</username><password>admin</password><email>d20596da-6229-48ff-9a8d-5d93a49b7621@localhost</email></query><error type="wait" code="500"><internal-server-error xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/><text xml:lang="en" xmlns="urn:ietf:params:xml:ns:xmpp-stanzas">Database access problem, please contact administrator.</text></error></iq>} 2022-10-13 22:35:17 | [Mutex] received everything. 2022-10-13 22:35:17 | [Mutex] isItemNotified: registrationSuccess :: false
org.testng.AssertJUnit.fail(AssertJUnit.java:65)
org.testng.AssertJUnit.assertTrue(AssertJUnit.java:23) tigase.tests.utils.AccountsManager.registerAccount(AccountsManager.java:195) tigase.tests.utils.AccountBuilder.build(AccountBuilder.java:123) tigase.tests.AbstractTest.ensureAdminAccountExists(AbstractTest.java:474) tigase.tests.AbstractTest.setupSuite(AbstractTest.java:779) java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.base/java.lang.reflect.Method.invoke(Method.java:568) org.testng.internal.invokers.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:135) org.testng.internal.invokers.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:65) org.testng.internal.invokers.ConfigInvoker.invokeConfigurationMethod(ConfigInvoker.java:381) org.testng.internal.invokers.ConfigInvoker.invokeConfigurations(ConfigInvoker.java:319) org.testng.SuiteRunner.privateRun(SuiteRunner.java:368) org.testng.SuiteRunner.run(SuiteRunner.java:326) org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:95) org.testng.TestNG.runSuitesSequentially(TestNG.java:1249) org.testng.TestNG.runSuitesLocally(TestNG.java:1169) org.testng.TestNG.runSuites(TestNG.java:1092) org.testng.TestNG.run(TestNG.java:1060) org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:283) org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75) org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:120) org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:384) org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:345) org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:126) org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:418) |
Skipped Configuration | ||
tigase.tests.ExampleJaxmppTest | ||
setupClass | 0.000s | |
setupMethod | 0.000s | |
tearDownClass | 0.000s | |
tearDownMethod | 0.000s | |
tearDownSuite | 0.000s |
Skipped Tests | ||
---|---|---|
tigase.tests.ExampleJaxmppTest | ||
SimpleLoginTest | 0.000s |