Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: bump test-run to version w/ updated luatest #8555

Merged
merged 4 commits into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/osx_debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [ 12, 13 ]
version: [ 13 ]
arch: [ x86_64, aarch64 ]

steps:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/osx_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [ 12, 13 ]
version: [ 13 ]
arch: [ x86_64, aarch64 ]
include:
- version: 12
arch: x86_64

steps:
- name: Prepare checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/osx_static_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
strategy:
fail-fast: false
matrix:
version: [ 12, 13 ]
version: [ 13 ]
arch: [ x86_64, aarch64 ]

steps:
Expand Down
2 changes: 1 addition & 1 deletion test-run
Submodule test-run updated 2 files
+1 −1 lib/luatest
+9 −3 listeners.py
12 changes: 6 additions & 6 deletions test/box-luatest/builtin_events_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ g.test_box_status = function(cg)
replication_connect_timeout = 0.001,
replication_timeout = 0.001,
}
end, {{server.build_listen_uri('master'),
server.build_listen_uri('replica')}})
end, {{cg.master.net_box_uri,
server.build_listen_uri('replica', cg.replica_set.id)}})
-- here we have 2 notifications: entering ro when can't connect
-- to master and the second one when going orphan
t.helpers.retrying({}, function() t.assert_equals(result_no, 3) end)
Expand Down Expand Up @@ -143,9 +143,9 @@ g.before_test('test_box_election', function(cg)

local box_cfg = {
replication = {
server.build_listen_uri('instance_1'),
server.build_listen_uri('instance_2'),
server.build_listen_uri('instance_3'),
server.build_listen_uri('instance_1', cg.replica_set.id),
server.build_listen_uri('instance_2', cg.replica_set.id),
server.build_listen_uri('instance_3', cg.replica_set.id),
},
replication_connect_quorum = 0,
election_mode = 'off',
Expand Down Expand Up @@ -339,7 +339,7 @@ g.before_test('test_internal_ballot', function(cg)
cg.replica = cg.replica_set:build_and_add_server({
alias = 'replica',
box_cfg = {
replication = server.build_listen_uri('master'),
replication = cg.master.net_box_uri,
replication_timeout = 0.1,
replication_anon = true,
read_only = true,
Expand Down
3 changes: 1 addition & 2 deletions test/box-luatest/gh_6857_tuple_ext_validation_test.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
local t = require('luatest')
local cluster = require('luatest.replica_set')
local server = require('luatest.server')

local g = t.group('gh-6857-tuple-ext-validation')

Expand Down Expand Up @@ -87,7 +86,7 @@ g.test_extension_tuple_validation = function()
['interval #7'] = string.fromhex('d6060100d100'), -- bad value (signed)
}

local c = net_box.connect(server.build_listen_uri('default'))
local c = net_box.connect(g.cluster.servers[1].net_box_uri)
t.assert_equals(c.state, 'active', 'Connection established')

-- First check that there are no complaints on correctly-encoded ext types.
Expand Down
2 changes: 1 addition & 1 deletion test/box-luatest/gh_7583_txn_stat_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ g.before_test('test_replication', function(cg)
cg.replica = server:new({
alias = 'replica',
box_cfg = {
replication = server.build_listen_uri('default'),
replication = cg.server.net_box_uri,
},
})
end)
Expand Down
22 changes: 11 additions & 11 deletions test/box-luatest/gh_7974_force_recovery_bugs_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ g.test_unknown_request_type_force_recovery = function()
local datadir = 'test/box-luatest/gh_7974_data/unknown_request_type'
local s = server:new(
{
alias = 'unknown_request_type_ok',
alias = 'gh_7974_urt_ok',
box_cfg = {force_recovery = true},
datadir = datadir,
})
Expand All @@ -27,7 +27,7 @@ g.test_unknown_request_type_force_recovery = function()

s = server:new(
{
alias = 'unknown_request_type_fail',
alias = 'gh_7974_urt_fail',
box_cfg = {force_recovery = false},
datadir = datadir,
})
Expand Down Expand Up @@ -55,7 +55,7 @@ g.test_invalid_non_insert_request_force_recovery = function()
local datadir = 'test/box-luatest/gh_7974_data/invalid_non_insert_request'
local s = server:new(
{
alias = 'invalid_non_insert_request_ok',
alias = 'gh_7974_inir_ok',
box_cfg = {force_recovery = true},
datadir = datadir,
})
Expand All @@ -64,7 +64,7 @@ g.test_invalid_non_insert_request_force_recovery = function()

s = server:new(
{
alias = 'invalid_non_insert_request_fail',
alias = 'gh_7974_inir_fail',
box_cfg = {force_recovery = false},
datadir = datadir,
})
Expand Down Expand Up @@ -95,7 +95,7 @@ g.test_invalid_user_space_request_force_recovery = function()
local datadir = 'test/box-luatest/gh_7974_data/invalid_user_space_request'
local s = server:new(
{
alias = 'invalid_user_space_request_ok',
alias = 'gh_7974_iusr_ok',
box_cfg = {force_recovery = true},
datadir = datadir,
})
Expand All @@ -104,7 +104,7 @@ g.test_invalid_user_space_request_force_recovery = function()

s = server:new(
{
alias = 'invalid_user_space_request_fail',
alias = 'gh_7974_iusr_fail',
box_cfg = {force_recovery = false},
datadir = datadir,
})
Expand Down Expand Up @@ -134,7 +134,7 @@ g.test_first_corrupted_request_force_recovery = function()
local datadir = 'test/box-luatest/gh_7974_data/first_corrupted_request'
local s = server:new(
{
alias = 'first_corrupted_request_fail',
alias = 'gh_7974_fcr_fail',
box_cfg = {force_recovery = true},
datadir = datadir,
})
Expand Down Expand Up @@ -165,7 +165,7 @@ g.test_second_corrupted_request_force_recovery = function()
local datadir = 'test/box-luatest/gh_7974_data/second_corrupted_request'
local s = server:new(
{
alias = 'second_corrupted_request_ok',
alias = 'gh_7974_scr_ok',
box_cfg = {force_recovery = true},
datadir = datadir,
})
Expand All @@ -174,7 +174,7 @@ g.test_second_corrupted_request_force_recovery = function()

s = server:new(
{
alias = 'second_corrupted_request_fail',
alias = 'gh_7974_scr_fail',
box_cfg = {force_recovery = false},
datadir = datadir,
})
Expand Down Expand Up @@ -204,7 +204,7 @@ g.test_empty_snapshot_force_recovery = function()
local datadir = 'test/box-luatest/gh_7974_data/empty_snapshot'
local s = server:new(
{
alias = 'empty_snapshot_fail',
alias = 'gh_7974_es_fail',
box_cfg = {force_recovery = true},
datadir = datadir,
})
Expand Down Expand Up @@ -234,7 +234,7 @@ g.test_only_user_space_request_force_recovery = function()
local datadir = 'test/box-luatest/gh_7974_data/only_user_space_request'
local s = server:new(
{
alias = 'only_user_space_request_fail',
alias = 'gh_7974_ousr_fail',
box_cfg = {force_recovery = true},
datadir = datadir,
})
Expand Down
4 changes: 2 additions & 2 deletions test/box-luatest/gh_7988_auth_type_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ g.before_test('test_replication', function(cg)
cg.replica = server:new({
alias = 'replica',
box_cfg = {
replication = server.build_listen_uri('master'),
replication = cg.server.net_box_uri,
},
})
cg.replica:start()
Expand Down Expand Up @@ -97,5 +97,5 @@ g.test_replication = function(cg)
uri = urilib.format(parsed_uri, true)
box.cfg({replication = uri})
t.assert_equals(box.info.replication[1].upstream.status, 'follow')
end, {server.build_listen_uri('master')})
end, {cg.server.net_box_uri})
end
4 changes: 2 additions & 2 deletions test/box-luatest/gh_8260_system_read_view_list_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,11 @@ g_list.before_all(function(cg)
end)
cg.replica1 = server:new({
alias = 'replica1',
box_cfg = {replication = server.build_listen_uri('master')},
box_cfg = {replication = cg.server.net_box_uri},
})
cg.replica2 = server:new({
alias = 'replica2',
box_cfg = {replication = server.build_listen_uri('master')},
box_cfg = {replication = cg.server.net_box_uri},
})
end)

Expand Down
2 changes: 1 addition & 1 deletion test/engine-luatest/gh_6436_field_constraint_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ g.test_constraint_replication = function(cg)
end, {engine})

local replica_cfg = {
replication = server.build_listen_uri('master'),
replication = cg.server.net_box_uri,
}
local replica = server:new({alias = 'replica', box_cfg = replica_cfg})
replica:start()
Expand Down
Loading