aboutsummaryrefslogtreecommitdiff
path: root/spec/upload_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/upload_spec.lua')
-rw-r--r--spec/upload_spec.lua7
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 @@
1local test_env = require("test/test_environment") 1local test_env = require("test/test_environment")
2local test_mock_server = require("test/test_mock_server")
3local run = test_env.run 2local run = test_env.run
4local testing_paths = test_env.testing_paths 3local testing_paths = test_env.testing_paths
5 4
6test_env.unload_luarocks() 5test_env.unload_luarocks()
7 6
8local extra_rocks = test_mock_server.extra_rocks() 7local extra_rocks = test_env.mock_server_extra_rocks()
9 8
10describe("LuaRocks upload tests #blackbox #b_upload", function() 9describe("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"}))