Adds the features/uri-features test directory, testing sub-uri deployment. These tests uses script/server since much of this code is about configuring the server. They are not run by "rake cucumber", to run them use "bundle exec rake cucumber features/uri-test". Tests requires a working app_config.yml setup with pod_url = "http://localhost:3000/diaspora" Patches cucumber.yml to always load step definitions from features/**, see http://thoughtsincomputation.com/posts/cucumber-step-definitions-and-autorequire-hell
19 lines
1 KiB
Gherkin
19 lines
1 KiB
Gherkin
@localserver
|
|
Feature: Flexible uri deployment
|
|
To make it possible to use Diaspora on small home servers,
|
|
which might house also other sw, it should be possible to deploy
|
|
diaspora on a sub-uri such as http://example.org/diaspora.
|
|
|
|
Scenario: Serve webfinger request
|
|
Given configuration parameter pod_url is http://localhost:3000/diaspora
|
|
When I retrieve http://localhost:3000/.well-known/host-meta into tmp/host-meta
|
|
Then I should find 'http://localhost:3000/diaspora/webfinger?q={uri}' in tmp/host-meta
|
|
|
|
Scenario: Present application to user
|
|
Given configuration parameter pod_url is http://localhost:3000/diaspora
|
|
When I visit url http://localhost:3000/diaspora
|
|
And I retrieve http://localhost:3000/diaspora into tmp/index.html
|
|
Then I should see "put something in"
|
|
And a page-asset should be http://localhost:3000/diaspora/stylesheets/ui.css
|
|
And I should match 'http://localhost:3000/diaspora/stylesheets/blueprint/print.css.[0-9]+"' in tmp/index.html
|
|
|