FEATURE: allow themes to live in private git repos

This feature allows themes sourced from git to live on private
servers, it automatically generates key pairs.
This commit is contained in:
Sam
2018-03-09 16:14:21 +11:00
parent 200c6673f1
commit 39e679d3cb
13 changed files with 145 additions and 10 deletions

View File

@ -12,6 +12,15 @@ describe Admin::ThemesController do
@user = log_in(:admin)
end
context '.generate_key_pair' do
it 'can generate key pairs' do
post :generate_key_pair, format: :json
json = JSON.parse(response.body)
expect(json["private_key"]).to include("RSA PRIVATE KEY")
expect(json["public_key"]).to include("ssh-rsa ")
end
end
context '.upload_asset' do
render_views