projektbauer 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +20 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +118 -0
- data/lib/projektbauer.rb +466 -0
- data/lib/projektbauer/erb/index_html.erb +6 -0
- data/lib/projektbauer/erb/post-commit.erb +24 -0
- data/lib/projektbauer/erb/project_location_httpd_conf.erb +31 -0
- data/lib/projektbauer/erb/svn_authz_file.erb +15 -0
- data/lib/projektbauer/erb/trac.ini.erb +258 -0
- data/lib/projektbauer/erb/virtual_host_httpd_conf.erb +27 -0
- data/lib/projektbauer/version.rb +3 -0
- data/projektbauer.gemspec +30 -0
- data/rakefile.rb +22 -0
- data/spec/reference/domain_01/include_locations.httpd.conf +2 -0
- data/spec/reference/domain_01/project_01/Feldbauer-environment.htdigest +8 -0
- data/spec/reference/domain_01/project_01/Feldbauer-environment.htdigest.txt +11 -0
- data/spec/reference/domain_01/project_01/project_01.dav_svn_authz +15 -0
- data/spec/reference/domain_01/project_01/project_01.httpd.conf +31 -0
- data/spec/reference/domain_01/project_02/Feldbauer-environment.htdigest +7 -0
- data/spec/reference/domain_01/project_02/Feldbauer-environment.htdigest.txt +9 -0
- data/spec/reference/domain_01/project_02/project_02.dav_svn_authz +15 -0
- data/spec/reference/domain_01/project_02/project_02.httpd.conf +31 -0
- data/spec/reference/domain_01/virtual_host.httpd.conf +43 -0
- data/spec/reference/domain_01/www/index.html +6 -0
- data/spec/reference/domain_02/include_locations.httpd.conf +1 -0
- data/spec/reference/domain_02/project_01/Feldbauer-environment.htdigest +7 -0
- data/spec/reference/domain_02/project_01/Feldbauer-environment.htdigest.txt +9 -0
- data/spec/reference/domain_02/project_01/project_01.dav_svn_authz +15 -0
- data/spec/reference/domain_02/project_01/project_01.httpd.conf +31 -0
- data/spec/reference/domain_02/virtual_host.httpd.conf +43 -0
- data/spec/reference/domain_02/www/index.html +6 -0
- data/spec/reference/include_virtual_hosts.httpd.conf +4 -0
- data/spec/reference/space domain 02/include_locations.httpd.conf +1 -0
- data/spec/reference/space domain 02/space project 01/Feldbauer-environment.htdigest +7 -0
- data/spec/reference/space domain 02/space project 01/Feldbauer-environment.htdigest.txt +9 -0
- data/spec/reference/space domain 02/space project 01/space project 01.dav_svn_authz +15 -0
- data/spec/reference/space domain 02/space project 01/space project 01.httpd.conf +31 -0
- data/spec/reference/space domain 02/virtual_host.httpd.conf +43 -0
- data/spec/reference/space domain 02/www/index.html +6 -0
- data/spec/setup_project_spec.rb +88 -0
- data/testresults/test_results.html +308 -0
- data/weichel21_projekbauer.rb +28 -0
- metadata +251 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
### This file is authorization file for project_01
|
2
|
+
# do not remove * = at [/]
|
3
|
+
|
4
|
+
[groups]
|
5
|
+
observer=
|
6
|
+
admin=admin.first, admin.othersecond
|
7
|
+
contributor=contributor.first, contributor.second, contributor.third
|
8
|
+
observer=observer.first, observer.second, observer.third
|
9
|
+
|
10
|
+
|
11
|
+
[/]
|
12
|
+
@admin=rw
|
13
|
+
@contributor=rw
|
14
|
+
@observer=r
|
15
|
+
* =
|
@@ -0,0 +1,31 @@
|
|
1
|
+
DavLockDB "/Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/DavLock"
|
2
|
+
#Alias /domain_01/project_01 /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_01/project_01/
|
3
|
+
ScriptAlias /project_01/trac/ /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_01/project_01/trac/cgi-bin/trac.fcgi/
|
4
|
+
|
5
|
+
<Location /project_01/svn>
|
6
|
+
DAV svn
|
7
|
+
#todo: investigate usage of parentpath
|
8
|
+
SVNPath /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_01/project_01/svn
|
9
|
+
|
10
|
+
AuthType Digest
|
11
|
+
AuthName "Feldbauer-environment"
|
12
|
+
AuthDigestDomain /project_01:443 /project_01:8080
|
13
|
+
AuthDigestProvider file
|
14
|
+
AuthUserFile /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_01/project_01/Feldbauer-environment.htdigest
|
15
|
+
AuthzSVNAccessFile /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_01/project_01/project_01.dav_svn_authz
|
16
|
+
<LimitExcept OPTIONS>
|
17
|
+
Require valid-user
|
18
|
+
</LimitExcept>
|
19
|
+
</Location>
|
20
|
+
|
21
|
+
<Location /project_01/trac/login>
|
22
|
+
AuthType Digest
|
23
|
+
AuthName "Feldbauer-environment"
|
24
|
+
AuthDigestDomain /project_01
|
25
|
+
AuthDigestProvider file
|
26
|
+
AuthUserFile /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_01/project_01/Feldbauer-environment.htdigest
|
27
|
+
|
28
|
+
<LimitExcept OPTIONS>
|
29
|
+
Require valid-user
|
30
|
+
</LimitExcept>
|
31
|
+
</Location>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
admin.first:Feldbauer-environment:d3a35c1e16b053cb3f81b5a8752aec6b
|
2
|
+
admin.second:Feldbauer-environment:47794967af71bd166b16e7ecc1f7e293
|
3
|
+
contributor.first:Feldbauer-environment:e924ce8b26f03ce6b3953c990dd79dbe
|
4
|
+
contributor.second:Feldbauer-environment:688e27c21eff1648761f3f4f6241a3ce
|
5
|
+
contributor.third:Feldbauer-environment:1a48cfbe9ea0fdefeb55958ddf4aaf55
|
6
|
+
observer.first:Feldbauer-environment:572f4acc088ec668fb17d2e8c4514fa4
|
7
|
+
observer.second:Feldbauer-environment:39c14df9a108f4f9691c9f1de7036b8a
|
@@ -0,0 +1,9 @@
|
|
1
|
+
generated passwords for Feldbauer-environment
|
2
|
+
|
3
|
+
admin.first => <password unchanged>
|
4
|
+
admin.second => <password unchanged>
|
5
|
+
contributor.first => <password unchanged>
|
6
|
+
contributor.second => <password unchanged>
|
7
|
+
contributor.third => <password unchanged>
|
8
|
+
observer.first => <password unchanged>
|
9
|
+
observer.second => <password unchanged>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
### This file is authorization file for project_02
|
2
|
+
# do not remove * = at [/]
|
3
|
+
|
4
|
+
[groups]
|
5
|
+
observer=
|
6
|
+
admin=admin.first, admin.second
|
7
|
+
contributor=contributor.first, contributor.second, contributor.third
|
8
|
+
observer=observer.first, observer.second
|
9
|
+
|
10
|
+
|
11
|
+
[/]
|
12
|
+
@admin=rw
|
13
|
+
@contributor=rw
|
14
|
+
@observer=r
|
15
|
+
* =
|
@@ -0,0 +1,31 @@
|
|
1
|
+
DavLockDB "/Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/DavLock"
|
2
|
+
#Alias /domain_01/project_02 /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_01/project_02/
|
3
|
+
ScriptAlias /project_02/trac/ /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_01/project_02/trac/cgi-bin/trac.fcgi/
|
4
|
+
|
5
|
+
<Location /project_02/svn>
|
6
|
+
DAV svn
|
7
|
+
#todo: investigate usage of parentpath
|
8
|
+
SVNPath /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_01/project_02/svn
|
9
|
+
|
10
|
+
AuthType Digest
|
11
|
+
AuthName "Feldbauer-environment"
|
12
|
+
AuthDigestDomain /project_02:443 /project_02:8080
|
13
|
+
AuthDigestProvider file
|
14
|
+
AuthUserFile /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_01/project_02/Feldbauer-environment.htdigest
|
15
|
+
AuthzSVNAccessFile /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_01/project_02/project_02.dav_svn_authz
|
16
|
+
<LimitExcept OPTIONS>
|
17
|
+
Require valid-user
|
18
|
+
</LimitExcept>
|
19
|
+
</Location>
|
20
|
+
|
21
|
+
<Location /project_02/trac/login>
|
22
|
+
AuthType Digest
|
23
|
+
AuthName "Feldbauer-environment"
|
24
|
+
AuthDigestDomain /project_02
|
25
|
+
AuthDigestProvider file
|
26
|
+
AuthUserFile /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_01/project_02/Feldbauer-environment.htdigest
|
27
|
+
|
28
|
+
<LimitExcept OPTIONS>
|
29
|
+
Require valid-user
|
30
|
+
</LimitExcept>
|
31
|
+
</Location>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
|
2
|
+
###
|
3
|
+
# virtual host for feldbauer.anydomain.tld non ssl
|
4
|
+
#
|
5
|
+
# see http://httpd.apache.org/docs/2.2/de/vhosts/name-based.html
|
6
|
+
NameVirtualHost 01.02.03.04:8080
|
7
|
+
<VirtualHost 01.02.03.04:8080>
|
8
|
+
ServerName feldbauer.anydomain.tld
|
9
|
+
ServerAdmin admin.first@feldbauer.anydomain.tld
|
10
|
+
DocumentRoot /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_01/www
|
11
|
+
#CustomLog /home/log/access_log mesos1
|
12
|
+
|
13
|
+
###
|
14
|
+
# this file contains the locations for feldbauer.anydomain.tld
|
15
|
+
Include /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_01/include_locations.httpd.conf
|
16
|
+
</VirtualHost>
|
17
|
+
|
18
|
+
###
|
19
|
+
# virtual host for feldbauer.anydomain.tld ssl
|
20
|
+
#
|
21
|
+
NameVirtualHost 01.02.03.04:443
|
22
|
+
<VirtualHost 01.02.03.04:443>
|
23
|
+
ServerName feldbauer.anydomain.tld
|
24
|
+
ServerAdmin admin.first@feldbauer.anydomain.tld
|
25
|
+
DocumentRoot /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_01/www
|
26
|
+
#CustomLog /home/log/access_log mesos1
|
27
|
+
|
28
|
+
SSLEngine on
|
29
|
+
#todo make location of certificate configurable
|
30
|
+
SSLCertificateKeyFile /etc/ssl/localcerts/feldbauer.anydomain.tld.key
|
31
|
+
SSLCertificateFile /etc/ssl/localcerts/feldbauer.anydomain.tld.pem
|
32
|
+
SetEnvIf User-Agent ".*MSIE.*" \
|
33
|
+
nokeepalive ssl-unclean-shutdown \
|
34
|
+
downgrade-1.0 force-response-1.0
|
35
|
+
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
|
36
|
+
SSLOptions +StdEnvVars
|
37
|
+
</Files>
|
38
|
+
|
39
|
+
###
|
40
|
+
# this file contains the locations for feldbauer.anydomain.tld
|
41
|
+
Include "/Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_01/include_locations.httpd.conf
|
42
|
+
|
43
|
+
</VirtualHost>
|
@@ -0,0 +1 @@
|
|
1
|
+
Include /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_02/project_01/project_01.httpd.conf
|
@@ -0,0 +1,7 @@
|
|
1
|
+
admin.first:Feldbauer-environment:9a441ee4c5af49c2844775bd5d4fdce9
|
2
|
+
admin.second:Feldbauer-environment:8f8fdb356c3f042ac7ce54e96a87e4f2
|
3
|
+
contributor.first:Feldbauer-environment:ff4355a3140469d8f22406ae3d3ef8a3
|
4
|
+
contributor.second:Feldbauer-environment:fd6688d91889c7cd3de7f29fdbb22b63
|
5
|
+
contributor.third:Feldbauer-environment:4d26010e014e4b6eb7605c41b8128682
|
6
|
+
observer.first:Feldbauer-environment:9f408e2e5167cee7358f9326233d83f4
|
7
|
+
observer.second:Feldbauer-environment:0318314e62bf4370b3a64ceba28de129
|
@@ -0,0 +1,9 @@
|
|
1
|
+
generated passwords for Feldbauer-environment
|
2
|
+
|
3
|
+
admin.first => <password unchanged>
|
4
|
+
admin.second => <password unchanged>
|
5
|
+
contributor.first => <password unchanged>
|
6
|
+
contributor.second => <password unchanged>
|
7
|
+
contributor.third => <password unchanged>
|
8
|
+
observer.first => <password unchanged>
|
9
|
+
observer.second => <password unchanged>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
### This file is authorization file for project_01
|
2
|
+
# do not remove * = at [/]
|
3
|
+
|
4
|
+
[groups]
|
5
|
+
observer=
|
6
|
+
admin=admin.first, admin.second
|
7
|
+
contributor=contributor.first, contributor.second, contributor.third
|
8
|
+
observer=observer.first, observer.second
|
9
|
+
|
10
|
+
|
11
|
+
[/]
|
12
|
+
@admin=rw
|
13
|
+
@contributor=rw
|
14
|
+
@observer=r
|
15
|
+
* =
|
@@ -0,0 +1,31 @@
|
|
1
|
+
DavLockDB "/Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/DavLock"
|
2
|
+
#Alias /domain_02/project_01 /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_02/project_01/
|
3
|
+
ScriptAlias /project_01/trac/ /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_02/project_01/trac/cgi-bin/trac.fcgi/
|
4
|
+
|
5
|
+
<Location /project_01/svn>
|
6
|
+
DAV svn
|
7
|
+
#todo: investigate usage of parentpath
|
8
|
+
SVNPath /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_02/project_01/svn
|
9
|
+
|
10
|
+
AuthType Digest
|
11
|
+
AuthName "Feldbauer-environment"
|
12
|
+
AuthDigestDomain /project_01:443 /project_01:8080
|
13
|
+
AuthDigestProvider file
|
14
|
+
AuthUserFile /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_02/project_01/Feldbauer-environment.htdigest
|
15
|
+
AuthzSVNAccessFile /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_02/project_01/project_01.dav_svn_authz
|
16
|
+
<LimitExcept OPTIONS>
|
17
|
+
Require valid-user
|
18
|
+
</LimitExcept>
|
19
|
+
</Location>
|
20
|
+
|
21
|
+
<Location /project_01/trac/login>
|
22
|
+
AuthType Digest
|
23
|
+
AuthName "Feldbauer-environment"
|
24
|
+
AuthDigestDomain /project_01
|
25
|
+
AuthDigestProvider file
|
26
|
+
AuthUserFile /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_02/project_01/Feldbauer-environment.htdigest
|
27
|
+
|
28
|
+
<LimitExcept OPTIONS>
|
29
|
+
Require valid-user
|
30
|
+
</LimitExcept>
|
31
|
+
</Location>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
|
2
|
+
###
|
3
|
+
# virtual host for feldbauer.anydomain.tld non ssl
|
4
|
+
#
|
5
|
+
# see http://httpd.apache.org/docs/2.2/de/vhosts/name-based.html
|
6
|
+
NameVirtualHost 01.02.03.04:8080
|
7
|
+
<VirtualHost 01.02.03.04:8080>
|
8
|
+
ServerName feldbauer.anydomain.tld
|
9
|
+
ServerAdmin admin.first@feldbauer.anydomain.tld
|
10
|
+
DocumentRoot /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_02/www
|
11
|
+
#CustomLog /home/log/access_log mesos1
|
12
|
+
|
13
|
+
###
|
14
|
+
# this file contains the locations for feldbauer.anydomain.tld
|
15
|
+
Include /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_02/include_locations.httpd.conf
|
16
|
+
</VirtualHost>
|
17
|
+
|
18
|
+
###
|
19
|
+
# virtual host for feldbauer.anydomain.tld ssl
|
20
|
+
#
|
21
|
+
NameVirtualHost 01.02.03.04:443
|
22
|
+
<VirtualHost 01.02.03.04:443>
|
23
|
+
ServerName feldbauer.anydomain.tld
|
24
|
+
ServerAdmin admin.first@feldbauer.anydomain.tld
|
25
|
+
DocumentRoot /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_02/www
|
26
|
+
#CustomLog /home/log/access_log mesos1
|
27
|
+
|
28
|
+
SSLEngine on
|
29
|
+
#todo make location of certificate configurable
|
30
|
+
SSLCertificateKeyFile /etc/ssl/localcerts/feldbauer.anydomain.tld.key
|
31
|
+
SSLCertificateFile /etc/ssl/localcerts/feldbauer.anydomain.tld.pem
|
32
|
+
SetEnvIf User-Agent ".*MSIE.*" \
|
33
|
+
nokeepalive ssl-unclean-shutdown \
|
34
|
+
downgrade-1.0 force-response-1.0
|
35
|
+
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
|
36
|
+
SSLOptions +StdEnvVars
|
37
|
+
</Files>
|
38
|
+
|
39
|
+
###
|
40
|
+
# this file contains the locations for feldbauer.anydomain.tld
|
41
|
+
Include "/Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_02/include_locations.httpd.conf
|
42
|
+
|
43
|
+
</VirtualHost>
|
@@ -0,0 +1,4 @@
|
|
1
|
+
Include /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_01/project_01/project_01.httpd.conf
|
2
|
+
Include /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_01/project_02/project_02.httpd.conf
|
3
|
+
Include /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/domain_02/project_01/project_01.httpd.conf
|
4
|
+
Include /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/space domain 02/space project 01/space project 01.httpd.conf
|
@@ -0,0 +1 @@
|
|
1
|
+
Include /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/space domain 02/space project 01/space project 01.httpd.conf
|
@@ -0,0 +1,7 @@
|
|
1
|
+
admin.first:Feldbauer-environment:0360e5b1a884b3012892c8b6186159f1
|
2
|
+
admin.second:Feldbauer-environment:6e8b66560f5346771cf2f5b2e18b3535
|
3
|
+
contributor.first:Feldbauer-environment:3e850a5bc66e4681769dea99d7d486a4
|
4
|
+
contributor.second:Feldbauer-environment:70f522203eadfeaab3a1a8b0401dde0b
|
5
|
+
contributor.third:Feldbauer-environment:3c4c1217cb2af56d50513cf76e9a834c
|
6
|
+
observer.first:Feldbauer-environment:e0d811558ee0d154f6855f54065a6239
|
7
|
+
observer.second:Feldbauer-environment:11fa21d5fae800b900390b6a1c2de6b2
|
@@ -0,0 +1,9 @@
|
|
1
|
+
generated passwords for Feldbauer-environment
|
2
|
+
|
3
|
+
admin.first => <password unchanged>
|
4
|
+
admin.second => <password unchanged>
|
5
|
+
contributor.first => <password unchanged>
|
6
|
+
contributor.second => <password unchanged>
|
7
|
+
contributor.third => <password unchanged>
|
8
|
+
observer.first => <password unchanged>
|
9
|
+
observer.second => <password unchanged>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
### This file is authorization file for space project 01
|
2
|
+
# do not remove * = at [/]
|
3
|
+
|
4
|
+
[groups]
|
5
|
+
observer=
|
6
|
+
admin=admin.first, admin.second
|
7
|
+
contributor=contributor.first, contributor.second, contributor.third
|
8
|
+
observer=observer.first, observer.second
|
9
|
+
|
10
|
+
|
11
|
+
[/]
|
12
|
+
@admin=rw
|
13
|
+
@contributor=rw
|
14
|
+
@observer=r
|
15
|
+
* =
|
@@ -0,0 +1,31 @@
|
|
1
|
+
DavLockDB "/Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/DavLock"
|
2
|
+
#Alias /space domain 02/space project 01 /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/space domain 02/space project 01/
|
3
|
+
ScriptAlias /space project 01/trac/ /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/space domain 02/space project 01/trac/cgi-bin/trac.fcgi/
|
4
|
+
|
5
|
+
<Location /space project 01/svn>
|
6
|
+
DAV svn
|
7
|
+
#todo: investigate usage of parentpath
|
8
|
+
SVNPath /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/space domain 02/space project 01/svn
|
9
|
+
|
10
|
+
AuthType Digest
|
11
|
+
AuthName "Feldbauer-environment"
|
12
|
+
AuthDigestDomain /space project 01:443 /space project 01:8080
|
13
|
+
AuthDigestProvider file
|
14
|
+
AuthUserFile /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/space domain 02/space project 01/Feldbauer-environment.htdigest
|
15
|
+
AuthzSVNAccessFile /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/space domain 02/space project 01/space project 01.dav_svn_authz
|
16
|
+
<LimitExcept OPTIONS>
|
17
|
+
Require valid-user
|
18
|
+
</LimitExcept>
|
19
|
+
</Location>
|
20
|
+
|
21
|
+
<Location /space project 01/trac/login>
|
22
|
+
AuthType Digest
|
23
|
+
AuthName "Feldbauer-environment"
|
24
|
+
AuthDigestDomain /space project 01
|
25
|
+
AuthDigestProvider file
|
26
|
+
AuthUserFile /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/space domain 02/space project 01/Feldbauer-environment.htdigest
|
27
|
+
|
28
|
+
<LimitExcept OPTIONS>
|
29
|
+
Require valid-user
|
30
|
+
</LimitExcept>
|
31
|
+
</Location>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
|
2
|
+
###
|
3
|
+
# virtual host for feldbauer.anydomain.tld non ssl
|
4
|
+
#
|
5
|
+
# see http://httpd.apache.org/docs/2.2/de/vhosts/name-based.html
|
6
|
+
NameVirtualHost 01.02.03.04:8080
|
7
|
+
<VirtualHost 01.02.03.04:8080>
|
8
|
+
ServerName feldbauer.anydomain.tld
|
9
|
+
ServerAdmin admin.first@feldbauer.anydomain.tld
|
10
|
+
DocumentRoot /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/space domain 02/www
|
11
|
+
#CustomLog /home/log/access_log mesos1
|
12
|
+
|
13
|
+
###
|
14
|
+
# this file contains the locations for feldbauer.anydomain.tld
|
15
|
+
Include /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/space domain 02/include_locations.httpd.conf
|
16
|
+
</VirtualHost>
|
17
|
+
|
18
|
+
###
|
19
|
+
# virtual host for feldbauer.anydomain.tld ssl
|
20
|
+
#
|
21
|
+
NameVirtualHost 01.02.03.04:443
|
22
|
+
<VirtualHost 01.02.03.04:443>
|
23
|
+
ServerName feldbauer.anydomain.tld
|
24
|
+
ServerAdmin admin.first@feldbauer.anydomain.tld
|
25
|
+
DocumentRoot /Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/space domain 02/www
|
26
|
+
#CustomLog /home/log/access_log mesos1
|
27
|
+
|
28
|
+
SSLEngine on
|
29
|
+
#todo make location of certificate configurable
|
30
|
+
SSLCertificateKeyFile /etc/ssl/localcerts/feldbauer.anydomain.tld.key
|
31
|
+
SSLCertificateFile /etc/ssl/localcerts/feldbauer.anydomain.tld.pem
|
32
|
+
SetEnvIf User-Agent ".*MSIE.*" \
|
33
|
+
nokeepalive ssl-unclean-shutdown \
|
34
|
+
downgrade-1.0 force-response-1.0
|
35
|
+
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
|
36
|
+
SSLOptions +StdEnvVars
|
37
|
+
</Files>
|
38
|
+
|
39
|
+
###
|
40
|
+
# this file contains the locations for feldbauer.anydomain.tld
|
41
|
+
Include "/Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/207_projektbauer-gem/spec/tmp_output/space domain 02/include_locations.httpd.conf
|
42
|
+
|
43
|
+
</VirtualHost>
|
@@ -0,0 +1,88 @@
|
|
1
|
+
|
2
|
+
$:.unshift(File.dirname(__FILE__)+"/../lib")
|
3
|
+
require 'projektbauer.rb'
|
4
|
+
|
5
|
+
describe "it generates a svn + trac environemnt" do
|
6
|
+
|
7
|
+
before :all do
|
8
|
+
@p=Project.new
|
9
|
+
@p.project_name = "project_01"
|
10
|
+
@p.project_users = {
|
11
|
+
admin: ["admin.first", "admin.second"],
|
12
|
+
observer: ["observer.first", "observer.second"],
|
13
|
+
contributor: ["contributor.first", "contributor.second", "contributor.third"]
|
14
|
+
}
|
15
|
+
@p.virtual_host = "domain_01"
|
16
|
+
@p.project_realm = "Feldbauer-environment"
|
17
|
+
@p.server_root = "#{File.dirname(__FILE__)}/tmp_output"
|
18
|
+
@p.virtual_host_ip = "01.02.03.04"
|
19
|
+
@p.server_name = "feldbauer.anydomain.tld"
|
20
|
+
@p.server_admin = "#{@p.project_users[:admin].first}@#{@p.server_name}"
|
21
|
+
@p.server_port_nossl = 8080
|
22
|
+
@p.server_port_ssl = 443
|
23
|
+
@p.trac_admin = "trac-admin"
|
24
|
+
|
25
|
+
@p.smtp_default_domain = "foo.bar.de" # Default dopmain for smtp
|
26
|
+
@p.smtp_enabled = true # allow trac to send smtp
|
27
|
+
@p.smtp_from = "projektbauer@foo.bar.de" # sender adress
|
28
|
+
@p.smtp_from_author = false # not supported defaults to false
|
29
|
+
@p.smtp_from_name = "Projekt bauer at foo bar de" # name of sender adress
|
30
|
+
@p.smtp_user = "sample.user.smtp" # username for smtp
|
31
|
+
@p.smtp_password = "sample.password.smtp" # password for smtp
|
32
|
+
@p.smtp_port = 25 # port for smtp
|
33
|
+
@p.smtp_replyto = "projetkbauer.trac.replyto@#{@p.server_name}" # reply-to adress
|
34
|
+
@p.smtp_server = @p.server_name # smtp-server
|
35
|
+
@p.smtp_subject_prefix = "__default__" # prefix for subject = __default__
|
36
|
+
|
37
|
+
|
38
|
+
end
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
it "creates the first test project" do
|
43
|
+
@p.project_name = "project_01"
|
44
|
+
@p.virtual_host = "domain_01"
|
45
|
+
|
46
|
+
@p.create_all
|
47
|
+
@p.create_all
|
48
|
+
|
49
|
+
cmd="svn ls file://\"#{@p.server_root}/#{@p.virtual_host}/#{@p.project_name}/svn\""
|
50
|
+
result=`#{cmd}`
|
51
|
+
result.should=="branches/\ntags/\ntrunk/\n"
|
52
|
+
end
|
53
|
+
|
54
|
+
it "creates the second test project" do
|
55
|
+
@p.project_name = "project_02"
|
56
|
+
@p.virtual_host = "domain_01"
|
57
|
+
@p.create_all
|
58
|
+
@p.create_all
|
59
|
+
end
|
60
|
+
|
61
|
+
it "creates a another project set" do
|
62
|
+
@p.project_name = "project_01"
|
63
|
+
@p.virtual_host = "domain_02"
|
64
|
+
@p.create_all
|
65
|
+
@p.create_all
|
66
|
+
end
|
67
|
+
|
68
|
+
it "handles spaces in path" do
|
69
|
+
@p.project_name = "space project 01"
|
70
|
+
@p.virtual_host = "space domain 02"
|
71
|
+
@p.create_all
|
72
|
+
@p.create_all
|
73
|
+
end
|
74
|
+
|
75
|
+
it "properly updates htdigest file" do
|
76
|
+
@p.project_name = "project_01"
|
77
|
+
@p.virtual_host = "domain_01"
|
78
|
+
@p.project_users = {
|
79
|
+
admin: ["admin.first", "admin.othersecond"],
|
80
|
+
observer: ["observer.first", "observer.second", "observer.third"],
|
81
|
+
contributor: ["contributor.first", "contributor.second", "contributor.third"]
|
82
|
+
}
|
83
|
+
@p.create_all
|
84
|
+
pending("todo: investigate the changes")
|
85
|
+
@p.create_all
|
86
|
+
end
|
87
|
+
|
88
|
+
end
|