mirror of
https://github.com/Qortal/qortal.git
synced 2025-05-01 23:37:57 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
3c307f15b3
@ -268,10 +268,7 @@ public class AdminResource {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ApiErrors({ApiError.REPOSITORY_ISSUE})
|
@ApiErrors({ApiError.REPOSITORY_ISSUE})
|
||||||
@SecurityRequirement(name = "apiKey")
|
public ActivitySummary summary() {
|
||||||
public ActivitySummary summary(@HeaderParam(Security.API_KEY_HEADER) String apiKey) {
|
|
||||||
Security.checkApiCallAllowed(request);
|
|
||||||
|
|
||||||
ActivitySummary summary = new ActivitySummary();
|
ActivitySummary summary = new ActivitySummary();
|
||||||
|
|
||||||
long now = NTP.getTime();
|
long now = NTP.getTime();
|
||||||
|
@ -35,7 +35,7 @@ public class AdminApiTests extends ApiCommon {
|
|||||||
// Set localAuthBypassEnabled to true, since we don't need to test authentication here
|
// Set localAuthBypassEnabled to true, since we don't need to test authentication here
|
||||||
FieldUtils.writeField(Settings.getInstance(), "localAuthBypassEnabled", true, true);
|
FieldUtils.writeField(Settings.getInstance(), "localAuthBypassEnabled", true, true);
|
||||||
|
|
||||||
assertNotNull(this.adminResource.summary("testApiKey"));
|
assertNotNull(this.adminResource.summary());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user