mirror of
https://github.com/Qortal/qortal.git
synced 2025-02-15 19:55:48 +00:00
Fixed errors in Admin API tests due to failing authentication.
This commit is contained in:
parent
ef2ee20820
commit
b7ee00fb22
@ -5,12 +5,19 @@ import static org.junit.Assert.*;
|
|||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.qortal.api.resource.AdminResource;
|
import org.qortal.api.resource.AdminResource;
|
||||||
|
import org.qortal.repository.DataException;
|
||||||
import org.qortal.test.common.ApiCommon;
|
import org.qortal.test.common.ApiCommon;
|
||||||
|
import org.qortal.test.common.Common;
|
||||||
|
|
||||||
public class AdminApiTests extends ApiCommon {
|
public class AdminApiTests extends ApiCommon {
|
||||||
|
|
||||||
private AdminResource adminResource;
|
private AdminResource adminResource;
|
||||||
|
|
||||||
|
@Before
|
||||||
|
public void beforeTest() throws DataException {
|
||||||
|
Common.useDefaultSettings();
|
||||||
|
}
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void buildResource() {
|
public void buildResource() {
|
||||||
this.adminResource = (AdminResource) ApiCommon.buildResource(AdminResource.class);
|
this.adminResource = (AdminResource) ApiCommon.buildResource(AdminResource.class);
|
||||||
|
@ -14,5 +14,6 @@
|
|||||||
"dataPath": "data-test",
|
"dataPath": "data-test",
|
||||||
"tempDataPath": "data-test/_temp",
|
"tempDataPath": "data-test/_temp",
|
||||||
"listsPath": "lists-test",
|
"listsPath": "lists-test",
|
||||||
"storagePolicy": "FOLLOWED_AND_VIEWED"
|
"storagePolicy": "FOLLOWED_AND_VIEWED",
|
||||||
|
"localAuthBypassEnabled": true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user