Skip to content

Commit

Permalink
fix(tests): deactive role user tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSchwarz-cnic committed Jun 22, 2020
1 parent a6a929f commit bdef58b
Show file tree
Hide file tree
Showing 36 changed files with 139 additions and 149 deletions.
36 changes: 13 additions & 23 deletions src/test/java/net/hexonet/apiconnector/APIClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -374,19 +374,13 @@ public void login1() {
/**
* Test login method #2
*/
@Test
public void login2() {
APIClient cl = new APIClient();
cl.useOTESystem().setRoleCredentials("test.user", "testrole", "test.passw0rd")
.setRemoteIPAddress("1.2.3.4");
Response r = cl.login();
assertTrue(r.isSuccess());
Record rec = r.getRecord(0);
assertNotNull(rec);
String sessid = rec.getDataByKey("SESSION");
assertNotNull(sessid);
assertEquals(sessid, cl.getSession());
}
/*
* @Test public void login2() { APIClient cl = new APIClient();
* cl.useOTESystem().setRoleCredentials("test.user", "testrole", "test.passw0rd")
* .setRemoteIPAddress("1.2.3.4"); Response r = cl.login(); assertTrue(r.isSuccess()); Record
* rec = r.getRecord(0); assertNotNull(rec); String sessid = rec.getDataByKey("SESSION");
* assertNotNull(sessid); assertEquals(sessid, cl.getSession()); }
*/

/**
* Test login method #3
Expand Down Expand Up @@ -438,16 +432,12 @@ public void loginExtended2() {
/**
* Test logout method #1
*/
@Test
public void logout1() {
APIClient cl = new APIClient();
cl.useOTESystem().setRoleCredentials("test.user", "testrole", "test.passw0rd")
.setRemoteIPAddress("1.2.3.4");
Response r = cl.login();
assertTrue(r.isSuccess());
r = cl.logout();
assertTrue(r.isSuccess());
}
/*
* @Test public void logout1() { APIClient cl = new APIClient();
* cl.useOTESystem().setRoleCredentials("test.user", "testrole", "test.passw0rd")
* .setRemoteIPAddress("1.2.3.4"); Response r = cl.login(); assertTrue(r.isSuccess()); r =
* cl.logout(); assertTrue(r.isSuccess()); }
*/

/**
* Test logout method #2
Expand Down
8 changes: 4 additions & 4 deletions target/apidocs/allclasses-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.7) on Mon May 18 10:21:02 CEST 2020 -->
<title>All Classes (java-sdk 4.0.1 API)</title>
<!-- Generated by javadoc (11.0.7) on Mon Jun 22 10:01:28 CEST 2020 -->
<title>All Classes (java-sdk 4.0.3 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2020-05-18">
<meta name="dc.created" content="2020-06-22">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="script.js"></script>
Expand All @@ -22,7 +22,7 @@
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="All Classes (java-sdk 4.0.1 API)";
parent.document.title="All Classes (java-sdk 4.0.3 API)";
}
}
catch(err) {
Expand Down
6 changes: 3 additions & 3 deletions target/apidocs/allclasses.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.7) on Mon May 18 10:21:02 CEST 2020 -->
<title>All Classes (java-sdk 4.0.1 API)</title>
<!-- Generated by javadoc (11.0.7) on Mon Jun 22 10:01:28 CEST 2020 -->
<title>All Classes (java-sdk 4.0.3 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2020-05-18">
<meta name="dc.created" content="2020-06-22">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="script.js"></script>
Expand Down
8 changes: 4 additions & 4 deletions target/apidocs/allpackages-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.7) on Mon May 18 10:21:02 CEST 2020 -->
<title>All Packages (java-sdk 4.0.1 API)</title>
<!-- Generated by javadoc (11.0.7) on Mon Jun 22 10:01:28 CEST 2020 -->
<title>All Packages (java-sdk 4.0.3 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2020-05-18">
<meta name="dc.created" content="2020-06-22">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="script.js"></script>
Expand All @@ -22,7 +22,7 @@
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="All Packages (java-sdk 4.0.1 API)";
parent.document.title="All Packages (java-sdk 4.0.3 API)";
}
}
catch(err) {
Expand Down
8 changes: 4 additions & 4 deletions target/apidocs/constant-values.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.7) on Mon May 18 10:21:02 CEST 2020 -->
<title>Constant Field Values (java-sdk 4.0.1 API)</title>
<!-- Generated by javadoc (11.0.7) on Mon Jun 22 10:01:28 CEST 2020 -->
<title>Constant Field Values (java-sdk 4.0.3 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2020-05-18">
<meta name="dc.created" content="2020-06-22">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="script.js"></script>
Expand All @@ -22,7 +22,7 @@
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Constant Field Values (java-sdk 4.0.1 API)";
parent.document.title="Constant Field Values (java-sdk 4.0.3 API)";
}
}
catch(err) {
Expand Down
8 changes: 4 additions & 4 deletions target/apidocs/deprecated-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.7) on Mon May 18 10:21:02 CEST 2020 -->
<title>Deprecated List (java-sdk 4.0.1 API)</title>
<!-- Generated by javadoc (11.0.7) on Mon Jun 22 10:01:28 CEST 2020 -->
<title>Deprecated List (java-sdk 4.0.3 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2020-05-18">
<meta name="dc.created" content="2020-06-22">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="script.js"></script>
Expand All @@ -22,7 +22,7 @@
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Deprecated List (java-sdk 4.0.1 API)";
parent.document.title="Deprecated List (java-sdk 4.0.3 API)";
}
}
catch(err) {
Expand Down
8 changes: 4 additions & 4 deletions target/apidocs/help-doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.7) on Mon May 18 10:21:02 CEST 2020 -->
<title>API Help (java-sdk 4.0.1 API)</title>
<!-- Generated by javadoc (11.0.7) on Mon Jun 22 10:01:28 CEST 2020 -->
<title>API Help (java-sdk 4.0.3 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2020-05-18">
<meta name="dc.created" content="2020-06-22">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="script.js"></script>
Expand All @@ -22,7 +22,7 @@
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="API Help (java-sdk 4.0.1 API)";
parent.document.title="API Help (java-sdk 4.0.3 API)";
}
}
catch(err) {
Expand Down
8 changes: 4 additions & 4 deletions target/apidocs/index-all.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.7) on Mon May 18 10:21:02 CEST 2020 -->
<title>Index (java-sdk 4.0.1 API)</title>
<!-- Generated by javadoc (11.0.7) on Mon Jun 22 10:01:28 CEST 2020 -->
<title>Index (java-sdk 4.0.3 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2020-05-18">
<meta name="dc.created" content="2020-06-22">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="script.js"></script>
Expand All @@ -22,7 +22,7 @@
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Index (java-sdk 4.0.1 API)";
parent.document.title="Index (java-sdk 4.0.3 API)";
}
}
catch(err) {
Expand Down
4 changes: 2 additions & 2 deletions target/apidocs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.7) on Mon May 18 10:21:02 CEST 2020 -->
<title>java-sdk 4.0.1 API</title>
<!-- Generated by javadoc (11.0.7) on Mon Jun 22 10:01:28 CEST 2020 -->
<title>java-sdk 4.0.3 API</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript">window.location.replace('net/hexonet/apiconnector/package-summary.html')</script>
<noscript>
Expand Down
Binary file modified target/apidocs/member-search-index.zip
Binary file not shown.
10 changes: 5 additions & 5 deletions target/apidocs/net/hexonet/apiconnector/APIClient.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.7) on Mon May 18 10:21:02 CEST 2020 -->
<title>APIClient (java-sdk 4.0.1 API)</title>
<!-- Generated by javadoc (11.0.7) on Mon Jun 22 10:01:28 CEST 2020 -->
<title>APIClient (java-sdk 4.0.3 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2020-05-18">
<meta name="dc.created" content="2020-06-22">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
Expand All @@ -22,7 +22,7 @@
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="APIClient (java-sdk 4.0.1 API)";
parent.document.title="APIClient (java-sdk 4.0.3 API)";
}
}
catch(err) {
Expand Down Expand Up @@ -592,7 +592,7 @@ <h4>setCustomLogger</h4>
<div class="block">Set a custom logger for debug mdoe</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>logger</code> - </dd>
<dd><code>logger</code> - your custom logger class instance</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Current APIClient instance for method chaining</dd>
</dl>
Expand Down
8 changes: 4 additions & 4 deletions target/apidocs/net/hexonet/apiconnector/Column.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.7) on Mon May 18 10:21:02 CEST 2020 -->
<title>Column (java-sdk 4.0.1 API)</title>
<!-- Generated by javadoc (11.0.7) on Mon Jun 22 10:01:28 CEST 2020 -->
<title>Column (java-sdk 4.0.3 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2020-05-18">
<meta name="dc.created" content="2020-06-22">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
Expand All @@ -22,7 +22,7 @@
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Column (java-sdk 4.0.1 API)";
parent.document.title="Column (java-sdk 4.0.3 API)";
}
}
catch(err) {
Expand Down
8 changes: 4 additions & 4 deletions target/apidocs/net/hexonet/apiconnector/CustomLogger.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.7) on Mon May 18 10:21:02 CEST 2020 -->
<title>CustomLogger (java-sdk 4.0.1 API)</title>
<!-- Generated by javadoc (11.0.7) on Mon Jun 22 10:01:28 CEST 2020 -->
<title>CustomLogger (java-sdk 4.0.3 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2020-05-18">
<meta name="dc.created" content="2020-06-22">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
Expand All @@ -22,7 +22,7 @@
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="CustomLogger (java-sdk 4.0.1 API)";
parent.document.title="CustomLogger (java-sdk 4.0.3 API)";
}
}
catch(err) {
Expand Down
8 changes: 4 additions & 4 deletions target/apidocs/net/hexonet/apiconnector/Logger.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.7) on Mon May 18 10:21:02 CEST 2020 -->
<title>Logger (java-sdk 4.0.1 API)</title>
<!-- Generated by javadoc (11.0.7) on Mon Jun 22 10:01:28 CEST 2020 -->
<title>Logger (java-sdk 4.0.3 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2020-05-18">
<meta name="dc.created" content="2020-06-22">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
Expand All @@ -22,7 +22,7 @@
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Logger (java-sdk 4.0.1 API)";
parent.document.title="Logger (java-sdk 4.0.3 API)";
}
}
catch(err) {
Expand Down
8 changes: 4 additions & 4 deletions target/apidocs/net/hexonet/apiconnector/Record.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.7) on Mon May 18 10:21:02 CEST 2020 -->
<title>Record (java-sdk 4.0.1 API)</title>
<!-- Generated by javadoc (11.0.7) on Mon Jun 22 10:01:28 CEST 2020 -->
<title>Record (java-sdk 4.0.3 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2020-05-18">
<meta name="dc.created" content="2020-06-22">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
Expand All @@ -22,7 +22,7 @@
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Record (java-sdk 4.0.1 API)";
parent.document.title="Record (java-sdk 4.0.3 API)";
}
}
catch(err) {
Expand Down
8 changes: 4 additions & 4 deletions target/apidocs/net/hexonet/apiconnector/Response.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.7) on Mon May 18 10:21:02 CEST 2020 -->
<title>Response (java-sdk 4.0.1 API)</title>
<!-- Generated by javadoc (11.0.7) on Mon Jun 22 10:01:28 CEST 2020 -->
<title>Response (java-sdk 4.0.3 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2020-05-18">
<meta name="dc.created" content="2020-06-22">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
Expand All @@ -22,7 +22,7 @@
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Response (java-sdk 4.0.1 API)";
parent.document.title="Response (java-sdk 4.0.3 API)";
}
}
catch(err) {
Expand Down
8 changes: 4 additions & 4 deletions target/apidocs/net/hexonet/apiconnector/ResponseParser.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.7) on Mon May 18 10:21:02 CEST 2020 -->
<title>ResponseParser (java-sdk 4.0.1 API)</title>
<!-- Generated by javadoc (11.0.7) on Mon Jun 22 10:01:28 CEST 2020 -->
<title>ResponseParser (java-sdk 4.0.3 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2020-05-18">
<meta name="dc.created" content="2020-06-22">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../script.js"></script>
Expand All @@ -22,7 +22,7 @@
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="ResponseParser (java-sdk 4.0.1 API)";
parent.document.title="ResponseParser (java-sdk 4.0.3 API)";
}
}
catch(err) {
Expand Down
Loading

0 comments on commit bdef58b

Please sign in to comment.