diff options
author | elijah <elijah@riseup.net> | 2012-10-11 00:43:05 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2012-10-11 00:43:05 -0700 |
commit | cde5fc17fe235405703c67184c81d85643b257a2 (patch) | |
tree | 32dfcd7bea8b780964102d026398f4cc86d36712 /test/provider/files | |
parent | 113d3a59eaa7547433434d155fc1e60aa7c2094c (diff) | |
download | leap_cli-cde5fc17fe235405703c67184c81d85643b257a2.tar.gz leap_cli-cde5fc17fe235405703c67184c81d85643b257a2.tar.bz2 |
new test/provider data
Diffstat (limited to 'test/provider/files')
-rw-r--r-- | test/provider/files/public-definitions/provider.json.erb | 1 | ||||
-rw-r--r-- | test/provider/files/service-definitions/provider.json.erb | 39 |
2 files changed, 39 insertions, 1 deletions
diff --git a/test/provider/files/public-definitions/provider.json.erb b/test/provider/files/public-definitions/provider.json.erb deleted file mode 100644 index 0b8eeb6..0000000 --- a/test/provider/files/public-definitions/provider.json.erb +++ /dev/null @@ -1 +0,0 @@ -todo: implement template support.
\ No newline at end of file diff --git a/test/provider/files/service-definitions/provider.json.erb b/test/provider/files/service-definitions/provider.json.erb new file mode 100644 index 0000000..e884524 --- /dev/null +++ b/test/provider/files/service-definitions/provider.json.erb @@ -0,0 +1,39 @@ +<%= + hsh = {} + + # grab some fields from provider.json + hsh = global.provider.pick(:languages, :description, :name, :enrollment_policy) + + # typically this is specified in common.json + hsh['domain'] = domain.public + + # advertise services that are 'user services' + hsh['services'] = global.services[:service_type => :user_service].field(:name) + + hsh['api_version'] = "1" + hsh['api_uri'] = "https://" + api_domain + + #hsh['ca_cert_uri'] = + #hsh['ca_cert_fingerprint'] = + + # { + # "serial": 1, + # "version": "0.1.0", + # "domain": "springbok", + # "languages": ["en"], + # "display_name": { + # "en": "Test Provider" + # }, + # "description": { + # "en": "This is a test provider" + # }, + # "enrollment_policy": "open", + # "services": ["eip"], + # "api_version": "1.0.0", + # "api_uri": "https://94.103.43.3", + # "ca_cert_fingerprint": "SHA256 Fingerprint=19:F1:44:AA:57:DD:59:65:3B:07:5F:25:5D:02:D2:3F:FB:E6:A6:DA:FE:67:35:F2:7D:D7:8B:0E:BF:2B:E5:3C", + # "ca_cert_uri": "https://springbok/ca.crt" + # } + + generate_json hsh +%>
\ No newline at end of file |