diff options
Diffstat (limited to 'spec/upload_spec.lua')
-rw-r--r-- | spec/upload_spec.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/upload_spec.lua b/spec/upload_spec.lua index cf915eb3..b8e147e0 100644 --- a/spec/upload_spec.lua +++ b/spec/upload_spec.lua | |||
@@ -1,11 +1,10 @@ | |||
1 | local test_env = require("test/test_environment") | 1 | local test_env = require("test/test_environment") |
2 | local test_mock_server = require("test/test_mock_server") | ||
3 | local run = test_env.run | 2 | local run = test_env.run |
4 | local testing_paths = test_env.testing_paths | 3 | local testing_paths = test_env.testing_paths |
5 | 4 | ||
6 | test_env.unload_luarocks() | 5 | test_env.unload_luarocks() |
7 | 6 | ||
8 | local extra_rocks = test_mock_server.extra_rocks() | 7 | local extra_rocks = test_env.mock_server_extra_rocks() |
9 | 8 | ||
10 | describe("LuaRocks upload tests #blackbox #b_upload", function() | 9 | describe("LuaRocks upload tests #blackbox #b_upload", function() |
11 | 10 | ||
@@ -35,9 +34,9 @@ describe("LuaRocks upload tests #blackbox #b_upload", function() | |||
35 | end) | 34 | end) |
36 | 35 | ||
37 | describe("LuaRocks upload tests with Xavante server #mock", function() | 36 | describe("LuaRocks upload tests with Xavante server #mock", function() |
38 | before_each(test_mock_server.init) | 37 | before_each(test_env.mock_server_init) |
39 | 38 | ||
40 | after_each(test_mock_server.done) | 39 | after_each(test_env.mock_server_done) |
41 | 40 | ||
42 | it("LuaRocks upload rockspec with api-key", function() | 41 | it("LuaRocks upload rockspec with api-key", function() |
43 | assert.is_true(run.luarocks_bool("upload " .. testing_paths.testing_dir .. "/testfiles/a_rock-1.0-1.rockspec " .. test_env.OPENSSL_DIRS .. " --api-key=123", {LUAROCKS_CONFIG = testing_paths.testing_dir .. "/luarocks_site.lua"})) | 42 | assert.is_true(run.luarocks_bool("upload " .. testing_paths.testing_dir .. "/testfiles/a_rock-1.0-1.rockspec " .. test_env.OPENSSL_DIRS .. " --api-key=123", {LUAROCKS_CONFIG = testing_paths.testing_dir .. "/luarocks_site.lua"})) |