forked from Qortal/qortal
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.Test;
|
||||
import org.qortal.api.resource.AdminResource;
|
||||
import org.qortal.repository.DataException;
|
||||
import org.qortal.test.common.ApiCommon;
|
||||
import org.qortal.test.common.Common;
|
||||
|
||||
public class AdminApiTests extends ApiCommon {
|
||||
|
||||
private AdminResource adminResource;
|
||||
|
||||
@Before
|
||||
public void beforeTest() throws DataException {
|
||||
Common.useDefaultSettings();
|
||||
}
|
||||
|
||||
@Before
|
||||
public void buildResource() {
|
||||
this.adminResource = (AdminResource) ApiCommon.buildResource(AdminResource.class);
|
||||
|
@ -14,5 +14,6 @@
|
||||
"dataPath": "data-test",
|
||||
"tempDataPath": "data-test/_temp",
|
||||
"listsPath": "lists-test",
|
||||
"storagePolicy": "FOLLOWED_AND_VIEWED"
|
||||
"storagePolicy": "FOLLOWED_AND_VIEWED",
|
||||
"localAuthBypassEnabled": true
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user