weekly release 3.2dev
[moodle.git] / lib / tests / behat / behat_hooks.php
CommitLineData
f5ceb6c2 1<?php
f5ceb6c2
DM
2// This file is part of Moodle - http://moodle.org/
3//
4// Moodle is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8//
9// Moodle is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
16
17/**
18 * Behat hooks steps definitions.
19 *
20 * This methods are used by Behat CLI command.
21 *
22 * @package core
23 * @category test
24 * @copyright 2012 David Monllaó
25 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
26 */
27
28// NOTE: no MOODLE_INTERNAL test here, this file may be required by behat before including /config.php.
29
30require_once(__DIR__ . '/../../behat/behat_base.php');
31
42ad096f
RT
32use Behat\Testwork\Hook\Scope\BeforeSuiteScope,
33 Behat\Testwork\Hook\Scope\AfterSuiteScope,
34 Behat\Behat\Hook\Scope\BeforeFeatureScope,
35 Behat\Behat\Hook\Scope\AfterFeatureScope,
36 Behat\Behat\Hook\Scope\BeforeScenarioScope,
37 Behat\Behat\Hook\Scope\AfterScenarioScope,
38 Behat\Behat\Hook\Scope\BeforeStepScope,
39 Behat\Behat\Hook\Scope\AfterStepScope,
89cf999a 40 Behat\Mink\Exception\DriverException as DriverException,
870349ee
DM
41 WebDriver\Exception\NoSuchWindow as NoSuchWindow,
42 WebDriver\Exception\UnexpectedAlertOpen as UnexpectedAlertOpen,
3b7d3fb8
DM
43 WebDriver\Exception\UnknownError as UnknownError,
44 WebDriver\Exception\CurlExec as CurlExec,
870349ee 45 WebDriver\Exception\NoAlertOpenError as NoAlertOpenError;
f5ceb6c2
DM
46
47/**
48 * Hooks to the behat process.
49 *
50 * Behat accepts hooks after and before each
51 * suite, feature, scenario and step.
52 *
53 * They can not call other steps as part of their process
54 * like regular steps definitions does.
55 *
56 * Throws generic Exception because they are captured by Behat.
57 *
58 * @package core
59 * @category test
60 * @copyright 2012 David Monllaó
61 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
62 */
63class behat_hooks extends behat_base {
64
41eb672b
DM
65 /**
66 * @var Last browser session start time.
67 */
68 protected static $lastbrowsersessionstart = 0;
69
95b43d6b
DM
70 /**
71 * @var For actions that should only run once.
72 */
73 protected static $initprocessesfinished = false;
74
f49cede7
DM
75 /**
76 * Some exceptions can only be caught in a before or after step hook,
77 * they can not be thrown there as they will provoke a framework level
78 * failure, but we can store them here to fail the step in i_look_for_exceptions()
79 * which result will be parsed by the framework as the last step result.
80 *
81 * @var Null or the exception last step throw in the before or after hook.
82 */
83 protected static $currentstepexception = null;
84
5c0dfe32 85 /**
a964ead0 86 * If we are saving any kind of dump on failure we should use the same parent dir during a run.
5c0dfe32
DM
87 *
88 * @var The parent dir name
89 */
a964ead0 90 protected static $faildumpdirname = false;
5c0dfe32 91
3c71c15c
RT
92 /**
93 * Keeps track of time taken by feature to execute.
94 *
95 * @var array list of feature timings
96 */
97 protected static $timings = array();
98
f5ceb6c2
DM
99 /**
100 * Gives access to moodle codebase, ensures all is ready and sets up the test lock.
101 *
102 * Includes config.php to use moodle codebase with $CFG->behat_*
103 * instead of $CFG->prefix and $CFG->dataroot, called once per suite.
104 *
3c71c15c 105 * @param SuiteEvent $event event before suite.
f5ceb6c2
DM
106 * @static
107 * @throws Exception
108 * @BeforeSuite
109 */
42ad096f 110 public static function before_suite(BeforeSuiteScope $scope) {
f5ceb6c2
DM
111 global $CFG;
112
cfcbc34a
DM
113 // Defined only when the behat CLI command is running, the moodle init setup process will
114 // read this value and switch to $CFG->behat_dataroot and $CFG->behat_prefix instead of
115 // the normal site.
116 define('BEHAT_TEST', 1);
117
f5ceb6c2 118 define('CLI_SCRIPT', 1);
cfcbc34a 119 // With BEHAT_TEST we will be using $CFG->behat_* instead of $CFG->dataroot, $CFG->prefix and $CFG->wwwroot.
f5ceb6c2
DM
120 require_once(__DIR__ . '/../../../config.php');
121
122 // Now that we are MOODLE_INTERNAL.
123 require_once(__DIR__ . '/../../behat/classes/behat_command.php');
17344d4c 124 require_once(__DIR__ . '/../../behat/classes/behat_selectors.php');
af4830a2 125 require_once(__DIR__ . '/../../behat/classes/behat_context_helper.php');
f5ceb6c2
DM
126 require_once(__DIR__ . '/../../behat/classes/util.php');
127 require_once(__DIR__ . '/../../testing/classes/test_lock.php');
b08b0a28 128 require_once(__DIR__ . '/../../testing/classes/nasty_strings.php');
f5ceb6c2
DM
129
130 // Avoids vendor/bin/behat to be executed directly without test environment enabled
131 // to prevent undesired db & dataroot modifications, this is also checked
132 // before each scenario (accidental user deletes) in the BeforeScenario hook.
133
134 if (!behat_util::is_test_mode_enabled()) {
135 throw new Exception('Behat only can run if test mode is enabled. More info in ' . behat_command::DOCS_URL . '#Running_tests');
136 }
137
d9c55725 138 // Reset all data, before checking for check_server_status.
ab25d8a7
RT
139 // If not done, then it can return apache error, while running tests.
140 behat_util::reset_all_data();
141
e891c838
RT
142 // Check if server is running and using same version for cli and apache.
143 behat_util::check_server_status();
f5ceb6c2 144
b831d479
DM
145 // Prevents using outdated data, upgrade script would start and tests would fail.
146 if (!behat_util::is_test_data_updated()) {
b32ca4ca 147 $commandpath = 'php admin/tool/behat/cli/init.php';
d69a6ad9
TH
148 throw new Exception("Your behat test site is outdated, please run\n\n " .
149 $commandpath . "\n\nfrom your moodle dirroot to drop and install the behat test site again.");
b831d479 150 }
f5ceb6c2
DM
151 // Avoid parallel tests execution, it continues when the previous lock is released.
152 test_lock::acquire('behat');
41eb672b
DM
153
154 // Store the browser reset time if reset after N seconds is specified in config.php.
155 if (!empty($CFG->behat_restart_browser_after)) {
156 // Store the initial browser session opening.
157 self::$lastbrowsersessionstart = time();
158 }
5c0dfe32 159
a964ead0
AN
160 if (!empty($CFG->behat_faildump_path) && !is_writable($CFG->behat_faildump_path)) {
161 throw new Exception('You set $CFG->behat_faildump_path to a non-writable directory');
5c0dfe32 162 }
f5ceb6c2
DM
163 }
164
3c71c15c
RT
165 /**
166 * Gives access to moodle codebase, to keep track of feature start time.
167 *
168 * @param FeatureEvent $event event fired before feature.
3c71c15c
RT
169 * @BeforeFeature
170 */
42ad096f 171 public static function before_feature(BeforeFeatureScope $event) {
027212b0 172 if (!defined('BEHAT_FEATURE_TIMING_FILE')) {
3c71c15c
RT
173 return;
174 }
175 $file = $event->getFeature()->getFile();
08e7f97e
TL
176 self::$timings[$file] = microtime(true);
177 }
178
3c71c15c
RT
179 /**
180 * Gives access to moodle codebase, to keep track of feature end time.
181 *
182 * @param FeatureEvent $event event fired after feature.
3c71c15c
RT
183 * @AfterFeature
184 */
42ad096f 185 public static function after_feature(AfterFeatureScope $event) {
027212b0 186 if (!defined('BEHAT_FEATURE_TIMING_FILE')) {
3c71c15c
RT
187 return;
188 }
189 $file = $event->getFeature()->getFile();
08e7f97e
TL
190 self::$timings[$file] = microtime(true) - self::$timings[$file];
191 // Probably didn't actually run this, don't output it.
192 if (self::$timings[$file] < 1) {
193 unset(self::$timings[$file]);
194 }
195 }
196
3c71c15c
RT
197 /**
198 * Gives access to moodle codebase, to keep track of suite timings.
199 *
200 * @param SuiteEvent $event event fired after suite.
3c71c15c
RT
201 * @AfterSuite
202 */
42ad096f 203 public static function after_suite(AfterSuiteScope $event) {
027212b0 204 if (!defined('BEHAT_FEATURE_TIMING_FILE')) {
08e7f97e
TL
205 return;
206 }
207 $realroot = realpath(__DIR__.'/../../../').'/';
208 foreach (self::$timings as $k => $v) {
209 $new = str_replace($realroot, '', $k);
210 self::$timings[$new] = round($v, 1);
211 unset(self::$timings[$k]);
212 }
027212b0 213 if ($existing = @json_decode(file_get_contents(BEHAT_FEATURE_TIMING_FILE), true)) {
08e7f97e
TL
214 self::$timings = array_merge($existing, self::$timings);
215 }
216 arsort(self::$timings);
027212b0 217 @file_put_contents(BEHAT_FEATURE_TIMING_FILE, json_encode(self::$timings, JSON_PRETTY_PRINT));
08e7f97e
TL
218 }
219
f5ceb6c2
DM
220 /**
221 * Resets the test environment.
222 *
3c71c15c 223 * @param OutlineExampleEvent|ScenarioEvent $event event fired before scenario.
f5ceb6c2
DM
224 * @throws coding_exception If here we are not using the test database it should be because of a coding error
225 * @BeforeScenario
226 */
42ad096f 227 public function before_scenario(BeforeScenarioScope $scope) {
f5ceb6c2
DM
228 global $DB, $SESSION, $CFG;
229
230 // As many checks as we can.
cfcbc34a
DM
231 if (!defined('BEHAT_TEST') ||
232 !defined('BEHAT_SITE_RUNNING') ||
f5ceb6c2
DM
233 php_sapi_name() != 'cli' ||
234 !behat_util::is_test_mode_enabled() ||
cfcbc34a 235 !behat_util::is_test_site()) {
46ac40cd 236 throw new coding_exception('Behat only can modify the test database and the test dataroot!');
f5ceb6c2
DM
237 }
238
89cf999a
DM
239 $moreinfo = 'More info in ' . behat_command::DOCS_URL . '#Running_tests';
240 $driverexceptionmsg = 'Selenium server is not running, you need to start it to run tests that involve Javascript. ' . $moreinfo;
f59f6b6b
DM
241 try {
242 $session = $this->getSession();
243 } catch (CurlExec $e) {
244 // Exception thrown by WebDriver, so only @javascript tests will be caugth; in
d9c55725 245 // behat_util::check_server_status() we already checked that the server is running.
0f3fba7d 246 $this->stop_execution($driverexceptionmsg);
89cf999a 247 } catch (DriverException $e) {
0f3fba7d 248 $this->stop_execution($driverexceptionmsg);
f59f6b6b
DM
249 } catch (UnknownError $e) {
250 // Generic 'I have no idea' Selenium error. Custom exception to provide more feedback about possible solutions.
0f3fba7d 251 $this->stop_execution($e->getMessage());
f59f6b6b
DM
252 }
253
17344d4c
DM
254 // We need the Mink session to do it and we do it only before the first scenario.
255 if (self::is_first_scenario()) {
f59f6b6b 256 behat_selectors::register_moodle_selectors($session);
86055d11 257 behat_context_helper::set_session($scope->getEnvironment());
17344d4c
DM
258 }
259
55f47341
RT
260 // Reset mink session between the scenarios.
261 $session->reset();
262
de230fd3 263 // Reset $SESSION.
2e00d01d 264 \core\session\manager::init_empty_session();
c8619f33 265
ef1d45b3 266 behat_util::reset_all_data();
b08b0a28 267
de230fd3 268 // Assign valid data to admin user (some generator-related code needs a valid user).
f5ceb6c2 269 $user = $DB->get_record('user', array('username' => 'admin'));
d79d5ac2 270 \core\session\manager::set_user($user);
5f4b4e91 271
41eb672b
DM
272 // Reset the browser if specified in config.php.
273 if (!empty($CFG->behat_restart_browser_after) && $this->running_javascript()) {
274 $now = time();
275 if (self::$lastbrowsersessionstart + $CFG->behat_restart_browser_after < $now) {
f59f6b6b 276 $session->restart();
41eb672b
DM
277 self::$lastbrowsersessionstart = $now;
278 }
279 }
280
5f4b4e91 281 // Start always in the the homepage.
3b7d3fb8 282 try {
f59f6b6b
DM
283 // Let's be conservative as we never know when new upstream issues will affect us.
284 $session->visit($this->locate_path('/'));
3b7d3fb8 285 } catch (UnknownError $e) {
0f3fba7d 286 $this->stop_execution($e->getMessage());
3b7d3fb8 287 }
870349ee 288
f59f6b6b 289
95b43d6b
DM
290 // Checking that the root path is a Moodle test site.
291 if (self::is_first_scenario()) {
292 $notestsiteexception = new Exception('The base URL (' . $CFG->wwwroot . ') is not a behat test site, ' .
3b7d3fb8 293 'ensure you started the built-in web server in the correct directory or your web server is correctly started and set up');
19f6703d 294 $this->find("xpath", "//head/child::title[normalize-space(.)='" . behat_util::BEHATSITENAME . "']", $notestsiteexception);
95b43d6b
DM
295
296 self::$initprocessesfinished = true;
297 }
3b0b5e57
RT
298 // Run all test with medium (1024x768) screen size, to avoid responsive problems.
299 $this->resize_window('medium');
f5ceb6c2
DM
300 }
301
f5ceb6c2 302 /**
d1e55a47 303 * Wait for JS to complete before beginning interacting with the DOM.
f5ceb6c2 304 *
f49cede7
DM
305 * Executed only when running against a real browser. We wrap it
306 * all in a try & catch to forward the exception to i_look_for_exceptions
307 * so the exception will be at scenario level, which causes a failure, by
308 * default would be at framework level, which will stop the execution of
309 * the run.
f5ceb6c2 310 *
42ad096f 311 * @BeforeStep
f5ceb6c2 312 */
42ad096f
RT
313 public function before_step_javascript(BeforeStepScope $scope) {
314 self::$currentstepexception = null;
f49cede7 315
42ad096f
RT
316 // Only run if JS.
317 if ($this->running_javascript()) {
318 try {
319 $this->wait_for_pending_js();
320 } catch (Exception $e) {
321 self::$currentstepexception = $e;
322 }
f49cede7 323 }
d1e55a47
DM
324 }
325
326 /**
327 * Wait for JS to complete after finishing the step.
328 *
329 * With this we ensure that there are not AJAX calls
330 * still in progress.
331 *
f49cede7
DM
332 * Executed only when running against a real browser. We wrap it
333 * all in a try & catch to forward the exception to i_look_for_exceptions
334 * so the exception will be at scenario level, which causes a failure, by
335 * default would be at framework level, which will stop the execution of
336 * the run.
d1e55a47 337 *
42ad096f 338 * @AfterStep
d1e55a47 339 */
42ad096f
RT
340 public function after_step_javascript(AfterStepScope $scope) {
341 global $CFG, $DB;
342
343 // Save the page content if the step failed.
344 if (!empty($CFG->behat_faildump_path) &&
345 $scope->getTestResult()->getResultCode() === Behat\Testwork\Tester\Result\TestResult::FAILED) {
346 $this->take_contentdump($scope);
347 }
348
349 // Abort any open transactions to prevent subsequent tests hanging.
350 // This does the same as abort_all_db_transactions(), but doesn't call error_log() as we don't
351 // want to see a message in the behat output.
352 if (($scope->getTestResult() instanceof \Behat\Behat\Tester\Result\ExecutedStepResult) &&
353 $scope->getTestResult()->hasException()) {
354 if ($DB && $DB->is_transaction_started()) {
355 $DB->force_transaction_rollback();
356 }
357 }
358
359 // Only run if JS.
360 if (!$this->running_javascript()) {
361 return;
362 }
5c0dfe32
DM
363
364 // Save a screenshot if the step failed.
a964ead0 365 if (!empty($CFG->behat_faildump_path) &&
42ad096f
RT
366 $scope->getTestResult()->getResultCode() === Behat\Testwork\Tester\Result\TestResult::FAILED) {
367 $this->take_screenshot($scope);
5c0dfe32 368 }
f49cede7
DM
369
370 try {
371 $this->wait_for_pending_js();
372 self::$currentstepexception = null;
373 } catch (UnexpectedAlertOpen $e) {
374 self::$currentstepexception = $e;
375
376 // Accepting the alert so the framework can continue properly running
377 // the following scenarios. Some browsers already closes the alert, so
378 // wrapping in a try & catch.
379 try {
380 $this->getSession()->getDriver()->getWebDriverSession()->accept_alert();
381 } catch (Exception $e) {
382 // Catching the generic one as we never know how drivers reacts here.
383 }
384 } catch (Exception $e) {
385 self::$currentstepexception = $e;
386 }
d1e55a47
DM
387 }
388
131d4ac2
T
389 /**
390 * Executed after scenario having switch window to restart session.
391 * This is needed to close all extra browser windows and starting
392 * one browser window.
393 *
42ad096f 394 * @param AfterScenarioScope $event event fired after scenario.
131d4ac2
T
395 * @AfterScenario @_switch_window
396 */
42ad096f 397 public function after_scenario_switchwindow(AfterScenarioScope $event) {
af7cadbb 398 for ($count = 0; $count < self::EXTENDED_TIMEOUT; $count++) {
5e483833
RT
399 try {
400 $this->getSession()->restart();
401 break;
402 } catch (DriverException $e) {
403 // Wait for timeout and try again.
404 sleep(self::TIMEOUT);
405 }
406 }
407 // If session is not restarted above then it will try to start session before next scenario
408 // and if that fails then exception will be thrown.
131d4ac2
T
409 }
410
a964ead0
AN
411 /**
412 * Getter for self::$faildumpdirname
5c0dfe32
DM
413 *
414 * @return string
415 */
a964ead0
AN
416 protected function get_run_faildump_dir() {
417 return self::$faildumpdirname;
5c0dfe32
DM
418 }
419
420 /**
421 * Take screenshot when a step fails.
3ec07614 422 *
5c0dfe32 423 * @throws Exception
42ad096f 424 * @param AfterStepScope $scope
3ec07614 425 */
42ad096f 426 protected function take_screenshot(AfterStepScope $scope) {
5c0dfe32
DM
427 // Goutte can't save screenshots.
428 if (!$this->running_javascript()) {
429 return false;
3ec07614 430 }
5c0dfe32 431
be8b8950
MJ
432 // Some drivers (e.g. chromedriver) may throw an exception while trying to take a screenshot. If this isn't handled,
433 // the behat run dies. We don't want to lose the information about the failure that triggered the screenshot,
434 // so let's log the exception message to a file (to explain why there's no screenshot) and allow the run to continue,
435 // handling the failure as normal.
436 try {
437 list ($dir, $filename) = $this->get_faildump_filename($scope, 'png');
438 $this->saveScreenshot($filename, $dir);
439 } catch (Exception $e) {
440 // Catching all exceptions as we don't know what the driver might throw.
441 list ($dir, $filename) = $this->get_faildump_filename($scope, 'txt');
442 $message = "Could not save screenshot due to an error\n" . $e->getMessage();
443 file_put_contents($dir . DIRECTORY_SEPARATOR . $filename, $message);
444 }
a964ead0
AN
445 }
446
447 /**
448 * Take a dump of the page content when a step fails.
449 *
450 * @throws Exception
42ad096f 451 * @param AfterStepScope $scope
a964ead0 452 */
42ad096f
RT
453 protected function take_contentdump(AfterStepScope $scope) {
454 list ($dir, $filename) = $this->get_faildump_filename($scope, 'html');
a964ead0 455
be8b8950
MJ
456 try {
457 // Driver may throw an exception during getContent(), so do it first to avoid getting an empty file.
458 $content = $this->getSession()->getPage()->getContent();
459 } catch (Exception $e) {
460 // Catching all exceptions as we don't know what the driver might throw.
461 $content = "Could not save contentdump due to an error\n" . $e->getMessage();
462 }
463 file_put_contents($dir . DIRECTORY_SEPARATOR . $filename, $content);
a964ead0
AN
464 }
465
466 /**
467 * Determine the full pathname to store a failure-related dump.
468 *
469 * This is used for content such as the DOM, and screenshots.
470 *
42ad096f 471 * @param AfterStepScope $scope
167486b3 472 * @param String $filetype The file suffix to use. Limited to 4 chars.
a964ead0 473 */
42ad096f 474 protected function get_faildump_filename(AfterStepScope $scope, $filetype) {
a964ead0
AN
475 global $CFG;
476
477 // All the contentdumps should be in the same parent dir.
478 if (!$faildumpdir = self::get_run_faildump_dir()) {
479 $faildumpdir = self::$faildumpdirname = date('Ymd_His');
5c0dfe32 480
a964ead0 481 $dir = $CFG->behat_faildump_path . DIRECTORY_SEPARATOR . $faildumpdir;
5c0dfe32 482
a964ead0 483 if (!is_dir($dir) && !mkdir($dir, $CFG->directorypermissions, true)) {
5c0dfe32 484 // It shouldn't, we already checked that the directory is writable.
a964ead0 485 throw new Exception('No directories can be created inside $CFG->behat_faildump_path, check the directory permissions.');
5c0dfe32
DM
486 }
487 } else {
488 // We will always need to know the full path.
a964ead0 489 $dir = $CFG->behat_faildump_path . DIRECTORY_SEPARATOR . $faildumpdir;
5c0dfe32
DM
490 }
491
492 // The scenario title + the failed step text.
a964ead0 493 // We want a i-am-the-scenario-title_i-am-the-failed-step.$filetype format.
42ad096f 494 $filename = $scope->getFeature()->getTitle() . '_' . $scope->getStep()->getText();
167486b3
DM
495 $filename = preg_replace('/([^a-zA-Z0-9\_]+)/', '-', $filename);
496
42ad096f 497 // File name limited to 255 characters. Leaving 5 chars for line number and 4 chars for the file.
167486b3 498 // extension as we allow .png for images and .html for DOM contents.
42ad096f 499 $filename = substr($filename, 0, 245) . '_' . $scope->getStep()->getLine() . '.' . $filetype;
5c0dfe32 500
a964ead0 501 return array($dir, $filename);
3ec07614
DW
502 }
503
5f4b4e91
DM
504 /**
505 * Internal step definition to find exceptions, debugging() messages and PHP debug messages.
506 *
507 * Part of behat_hooks class as is part of the testing framework, is auto-executed
508 * after each step so no features will splicitly use it.
509 *
510 * @Given /^I look for exceptions$/
f49cede7 511 * @throw Exception Unknown type, depending on what we caught in the hook or basic \Exception.
5f4b4e91
DM
512 * @see Moodle\BehatExtension\Tester\MoodleStepTester
513 */
514 public function i_look_for_exceptions() {
f49cede7
DM
515 // If the step already failed in a hook throw the exception.
516 if (!is_null(self::$currentstepexception)) {
517 throw self::$currentstepexception;
518 }
519
eb9ca848 520 $this->look_for_exceptions();
5f4b4e91
DM
521 }
522
95b43d6b
DM
523 /**
524 * Returns whether the first scenario of the suite is running
525 *
526 * @return bool
527 */
528 protected static function is_first_scenario() {
529 return !(self::$initprocessesfinished);
530 }
3b7d3fb8
DM
531
532 /**
0f3fba7d 533 * Stops execution because of some exception.
3b7d3fb8 534 *
0f3fba7d 535 * @param string $exception
3b7d3fb8
DM
536 * @return void
537 */
0f3fba7d 538 protected function stop_execution($exception) {
3b7d3fb8 539 $text = get_string('unknownexceptioninfo', 'tool_behat');
0f3fba7d
RT
540 echo $text . PHP_EOL . $exception . PHP_EOL;
541 exit(1);
3b7d3fb8
DM
542 }
543
f5ceb6c2 544}
a964ead0 545