Skip to content

Commit a49b200

Browse files
committed
Test for another old bug
1 parent e77eee7 commit a49b200

File tree

5 files changed

+1068
-1
lines changed

5 files changed

+1068
-1
lines changed

test-run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python2.7
22

33
import os
44
import sys

test/CreateTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,15 @@ public function test_07_bad_guest_credentials() {
116116
* @expectedException TarantoolClientError
117117
* @expectedExceptionMessage Incorrect password supplied for user
118118
*/
119+
/**
120+
* Comment this, since behaviour of authentication with 'empty password' has changed
119121
public function test_07_01_bad_guest_credentials() {
120122
$c = new Tarantool('localhost', self::$port);
121123
$c->connect();
122124
$this->assertTrue($c->ping());
123125
$c->authenticate('guest', '');
124126
}
127+
*/
125128

126129
/**
127130
* @dataProvider provideGoodCredentials

test/RandomTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,7 @@ public function test_03_another_big_response() {
3939
$this->assertEquals($i, count($result));
4040
}
4141
}
42+
public function test_04_get_strange_response() {
43+
print_r(self::$tarantool->select("_schema", "12345"));
44+
}
4245
}

test/shared/box.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
#!/usr/bin/env tarantool
22

33
local os = require('os')
4+
local fio = require('fio')
45
local fun = require('fun')
56
local log = require('log')
67
local json = require('json')
8+
local yaml = require('yaml')
9+
10+
log.info(fio.cwd())
711

812
require('console').listen(os.getenv('ADMIN_PORT'))
913
box.cfg{
@@ -72,6 +76,10 @@ box.once('initialization', function()
7276
space:create_index('primary', {
7377
parts = {1, 'STR'}
7478
})
79+
local yml = io.open(fio.pathjoin(fio.cwd(), "../test/shared/queue.yml")):read("*a")
80+
local tuple = yaml.decode(yml)[1]
81+
tuple[1] = "12345"
82+
box.space._schema:insert(tuple)
7583
end)
7684

7785
function test_1()

0 commit comments

Comments
 (0)