File tree 4 files changed +47
-0
lines changed
4 files changed +47
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,23 @@ def testHomePageIsAccessible(self):
79
79
f = vhostreq ('http://hackasaurus.org/en-US/' )
80
80
self .assertTrue ('Hackasaurus' in f .read ())
81
81
82
+ def testSpanishLocaleIsAccessible (self ):
83
+ f = vhostreq ('http://hackasaurus.org/es/' )
84
+ self .assertTrue ('Superlentes' in f .read ())
85
+
86
+ class WebxrayTests (unittest .TestCase ):
87
+ def testWebxrayJsIsAccessible (self ):
88
+ f = vhostreq ('http://webxray.hackasaurus.org/webxray.js' )
89
+ self .assertTrue ('webxrayWhenGogglesLoad' in f .read ())
90
+
91
+ def testSrcDirIsAccessible (self ):
92
+ f = vhostreq ('http://webxray.hackasaurus.org/src/get-bookmarklet-url.js' )
93
+ self .assertTrue ('webxrayWhenGogglesLoad' in f .read ())
94
+
95
+ def testSpanishLocaleIsAccessible (self ):
96
+ f = vhostreq ('http://webxray.hackasaurus.org/src/locale/es.js' )
97
+ self .assertTrue ('Superlentes' in f .read ())
98
+
82
99
class MysqlTests (unittest .TestCase ):
83
100
def testRootLoginWorks (self ):
84
101
try_mysql_login ('root' , 'mysql_root_pw' , 'mysql' )
Original file line number Diff line number Diff line change 6
6
include hackpub
7
7
include testswarm
8
8
include jsbin
9
+ include webxray
Original file line number Diff line number Diff line change
1
+ class webxray {
2
+ $site = ' webxray.hackasaurus.org'
3
+ $rootDir = ' /var/webxray.hackasaurus.org'
4
+ $staticFilesDir = " $rootDir "
5
+
6
+ apache2::vhost { "$site" :
7
+ content => template (" webxray/apache-site.conf.erb" )
8
+ }
9
+
10
+ file { "$rootDir" :
11
+ ensure => directory
12
+ }
13
+ }
Original file line number Diff line number Diff line change
1
+ < VirtualHost *:80 >
2
+ ServerName <%= site %>
3
+ ServerAlias <%= site %> .dev
4
+
5
+ DocumentRoot <%= staticFilesDir %>
6
+ < Directory />
7
+ Options FollowSymLinks
8
+ AllowOverride None
9
+ </ Directory>
10
+ < Directory <%= staticFilesDir %> />
11
+ Options Indexes FollowSymLinks MultiViews
12
+ AllowOverride FileInfo
13
+ Order allow,deny
14
+ allow from all
15
+ </ Directory>
16
+ </ VirtualHost>
You can’t perform that action at this time.
0 commit comments