Skip to content

Commit c4d4b47

Browse files
committed
add Zone io host test case
1 parent 4c939b2 commit c4d4b47

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/Qiniu/Tests/ZoneTest.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,20 @@ public function testUpHosts()
5050
$this->assertNull($err);
5151
$this->assertEquals('https://up-z1.qbox.me', $upHosts[0]);
5252
}
53+
54+
public function testIoHosts()
55+
{
56+
57+
$ioHost = $this->zone->getIoHost($this->ak, $this->bucketName);
58+
$this->assertEquals('http://iovip.qbox.me', $ioHost);
59+
60+
$ioHost = $this->zone->getIoHost($this->ak, $this->bucketNameBC);
61+
$this->assertEquals('http://iovip-z1.qbox.me', $ioHost);
62+
63+
$ioHost = $this->zoneHttps->getIoHost($this->ak, $this->bucketName);
64+
$this->assertEquals('https://iovip.qbox.me', $ioHost);
65+
66+
$ioHost = $this->zoneHttps->getIoHost($this->ak, $this->bucketNameBC);
67+
$this->assertEquals('https://iovip-z1.qbox.me', $ioHost);
68+
}
5369
}

0 commit comments

Comments
 (0)