diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2020-02-14 09:53:12 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2020-02-14 09:53:12 -0300 |
| commit | bd27d052eaf856bf24c77f556a50b7e19f11cba1 (patch) | |
| tree | 9812779fea52afea7dbbf15a21620d3c59102476 /spec/upload_spec.lua | |
| parent | ab0d7b2a266ff7f322af93915472f5d80d4be9af (diff) | |
| download | luarocks-bd27d052eaf856bf24c77f556a50b7e19f11cba1.tar.gz luarocks-bd27d052eaf856bf24c77f556a50b7e19f11cba1.tar.bz2 luarocks-bd27d052eaf856bf24c77f556a50b7e19f11cba1.zip | |
tests: shorter descriptions
Diffstat (limited to 'spec/upload_spec.lua')
| -rw-r--r-- | spec/upload_spec.lua | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/upload_spec.lua b/spec/upload_spec.lua index 3f376d0d..dc073c18 100644 --- a/spec/upload_spec.lua +++ b/spec/upload_spec.lua | |||
| @@ -4,39 +4,39 @@ local testing_paths = test_env.testing_paths | |||
| 4 | 4 | ||
| 5 | test_env.unload_luarocks() | 5 | test_env.unload_luarocks() |
| 6 | 6 | ||
| 7 | describe("LuaRocks upload tests #integration", function() | 7 | describe("luarocks upload #integration", function() |
| 8 | 8 | ||
| 9 | before_each(function() | 9 | before_each(function() |
| 10 | test_env.setup_specs() | 10 | test_env.setup_specs() |
| 11 | end) | 11 | end) |
| 12 | 12 | ||
| 13 | it("LuaRocks upload with no flags/arguments", function() | 13 | it("with no flags/arguments", function() |
| 14 | assert.is_false(run.luarocks_bool("upload")) | 14 | assert.is_false(run.luarocks_bool("upload")) |
| 15 | end) | 15 | end) |
| 16 | 16 | ||
| 17 | it("LuaRocks upload invalid rockspec", function() | 17 | it("invalid rockspec", function() |
| 18 | assert.is_false(run.luarocks_bool("upload invalid.rockspec")) | 18 | assert.is_false(run.luarocks_bool("upload invalid.rockspec")) |
| 19 | end) | 19 | end) |
| 20 | 20 | ||
| 21 | it("LuaRocks upload api key invalid", function() | 21 | it("api key invalid", function() |
| 22 | assert.is_false(run.luarocks_bool("upload --api-key=invalid invalid.rockspec")) | 22 | assert.is_false(run.luarocks_bool("upload --api-key=invalid invalid.rockspec")) |
| 23 | end) | 23 | end) |
| 24 | 24 | ||
| 25 | it("LuaRocks upload api key invalid and skip-pack", function() | 25 | it("api key invalid and skip-pack", function() |
| 26 | assert.is_false(run.luarocks_bool("upload --api-key=\"invalid\" --skip-pack " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.rockspec")) | 26 | assert.is_false(run.luarocks_bool("upload --api-key=\"invalid\" --skip-pack " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.rockspec")) |
| 27 | end) | 27 | end) |
| 28 | 28 | ||
| 29 | it("LuaRocks upload force #unix", function() | 29 | it("force #unix", function() |
| 30 | assert.is_true(test_env.need_rock("dkjson")) | 30 | assert.is_true(test_env.need_rock("dkjson")) |
| 31 | assert.is_false(run.luarocks_bool("upload --api-key=\"invalid\" --force " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.rockspec")) | 31 | assert.is_false(run.luarocks_bool("upload --api-key=\"invalid\" --force " .. testing_paths.testing_server .. "/luasocket-3.0rc1-2.rockspec")) |
| 32 | end) | 32 | end) |
| 33 | 33 | ||
| 34 | describe("LuaRocks upload tests with Xavante server #mock", function() | 34 | describe("tests with Xavante server #mock", function() |
| 35 | before_each(test_env.mock_server_init) | 35 | before_each(test_env.mock_server_init) |
| 36 | 36 | ||
| 37 | after_each(test_env.mock_server_done) | 37 | after_each(test_env.mock_server_done) |
| 38 | 38 | ||
| 39 | it("LuaRocks upload rockspec with api-key", function() | 39 | it("rockspec with api-key", function() |
| 40 | assert.is_true(run.luarocks_bool("upload " .. testing_paths.fixtures_dir .. "/a_rock-1.0-1.rockspec " .. test_env.openssl_dirs .. " --api-key=123", {LUAROCKS_CONFIG = testing_paths.testrun_dir .. "/luarocks_site.lua"})) | 40 | assert.is_true(run.luarocks_bool("upload " .. testing_paths.fixtures_dir .. "/a_rock-1.0-1.rockspec " .. test_env.openssl_dirs .. " --api-key=123", {LUAROCKS_CONFIG = testing_paths.testrun_dir .. "/luarocks_site.lua"})) |
| 41 | end) | 41 | end) |
| 42 | 42 | ||
