Skip to content

Commit 2ac9931

Browse files
committed
Fix test that required SSL
Change-Id: I329abea8cfe3de4ff2358ea1ff48d599a1e00957
1 parent a5f79e6 commit 2ac9931

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

Changes

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
0.59 2025-01-14
1+
0.59 2025-01-23
22
- Improve appearance of title-addon on logo. (uyen-nhu)
33
- Create and style new item on top navbar for 'News'. (uyen-nhu)
44
- Change settings link in logout.html.ep to dynamic link. (uyen-nhu)
@@ -23,6 +23,7 @@
2323
- Fix alerts in hint helper (diewald)
2424
- Don't send empty pipes and states via query param (diewald)
2525
- Fix access of iframe location in tutorials. (diewald)
26+
- Fix test that wrongly required SSL support. (diewald)
2627

2728
0.58 2024-11-15
2829
- Cookie path is settable now (hebasta)

t/intro.t

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,26 @@ use utf8;
66

77
$ENV{KALAMAR_VERSION} = '0.47.999';
88

9+
#####################
10+
# Start Fake server #
11+
#####################
12+
my $mount_point = '/realapi/';
13+
$ENV{KALAMAR_API} = $mount_point;
14+
915
my $t = Test::Mojo->new('Kalamar');
1016

17+
# Mount fake backend
18+
# Get the fixture path
19+
my $fixtures_path = path(Mojo::File->new(__FILE__)->dirname, 'server');
20+
my $fake_backend = $t->app->plugin(
21+
Mount => {
22+
$mount_point =>
23+
$fixtures_path->child('mock.pl')
24+
}
25+
);
26+
# Configure fake backend
27+
$fake_backend->pattern->defaults->{app}->log($t->app->log);
28+
1129
$t->app->mode('production');
1230

1331
$t->get_ok('/')
@@ -67,6 +85,7 @@ $t->get_ok('/?cq=corpusSigle%3DGOE')
6785
->element_exists('#koralQuery')
6886
->element_exists('aside.invisible')
6987
->element_exists('aside.off')
88+
->text_is('#notifications > .notify-error', undef)
7089
;
7190

7291
$t->get_ok('/huhuhuhuhu')

0 commit comments

Comments
 (0)