Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg-jukovec committed Jul 9, 2024
1 parent 94e2cc9 commit 596e02e
Show file tree
Hide file tree
Showing 9 changed files with 172 additions and 320 deletions.
32 changes: 32 additions & 0 deletions test/entrypoint/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
credentials:
users:
guest:
roles: [super]

groups:
group-001:
replicasets:
replicaset-001:
roles: [roles.metrics-export]
roles_cfg:
roles.metrics-export:
http:
- listen: 8081
endpoints:
- path: /metrics
format: json
- path: /metrics/2/
format: prometheus
- listen: '127.0.0.1:8082'
endpoints:
- path: /metrics
format: prometheus
- path: /metrics/2
format: json
instances:
master:
iproto:
listen:
- uri: '127.0.0.1:3313'
database:
mode: rw
215 changes: 0 additions & 215 deletions test/helper.lua

This file was deleted.

26 changes: 26 additions & 0 deletions test/helpers/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
local t = require("luatest")

local helpers = {}

local function tarantool_version()
local major_minor_patch = _G._TARANTOOL:split('-', 1)[1]
local major_minor_patch_parts = major_minor_patch:split('.', 2)

local major = tonumber(major_minor_patch_parts[1])
local minor = tonumber(major_minor_patch_parts[2])
local patch = tonumber(major_minor_patch_parts[3])

return major, minor, patch
end

local function tarantool_role_is_supported()
local major, _, _ = tarantool_version()
return major >= 3
end

function helpers.skip_if_unsupported()
t.skip_if(not tarantool_role_is_supported(),
'Tarantool role is supported only for Tarantool starting from v3.0.0')
end

return helpers
File renamed without changes.
67 changes: 0 additions & 67 deletions test/integration/metrics-export_test.lua

This file was deleted.

Loading

0 comments on commit 596e02e

Please sign in to comment.