aboutsummaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2019-03-19 19:13:05 -0400
committerHisham Muhammad <hisham@gobolinux.org>2019-04-01 17:32:53 -0400
commit18842a049784cdbba66010fb30f06525e9016600 (patch)
treea6826096ad0f0f36e847a68434087407be35e1f3 /spec
parent655eacf345a108247ba6ea506721395571108912 (diff)
downloadluarocks-18842a049784cdbba66010fb30f06525e9016600.tar.gz
luarocks-18842a049784cdbba66010fb30f06525e9016600.tar.bz2
luarocks-18842a049784cdbba66010fb30f06525e9016600.zip
upload: add --sign option
Diffstat (limited to 'spec')
-rw-r--r--spec/upload_spec.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/upload_spec.lua b/spec/upload_spec.lua
index 76a27ee3..947147d7 100644
--- a/spec/upload_spec.lua
+++ b/spec/upload_spec.lua
@@ -40,7 +40,11 @@ describe("LuaRocks upload tests #integration", 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
43 it("LuaRocks upload rockspec with api-key and skip-pack", function() 43 it("#gpg rockspec with --sign", function()
44 print(run.luarocks("upload " .. testing_paths.fixtures_dir .. "/a_rock-1.0-1.rockspec " .. test_env.openssl_dirs .. " --api-key=123 --sign", {LUAROCKS_CONFIG = testing_paths.testrun_dir .. "/luarocks_site.lua"}))
45 end)
46
47 it("rockspec with api-key and skip-pack", function()
44 assert.is_true(run.luarocks_bool("upload --skip-pack " .. 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"})) 48 assert.is_true(run.luarocks_bool("upload --skip-pack " .. 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"}))
45 end) 49 end)
46 end) 50 end)