Skip to content

Conversation

@printminion-co
Copy link

@printminion-co printminion-co commented Jan 23, 2026

Summary

  • Start MailHog: $ .dev/mailer/run

  • Clean NC `.dev/container/clean.sh

  • Preconditions

    • SMTP config is set (e.g, localdev.config.php)
<?php

/**
 * SPDX-FileCopyrightText: 2025 STRATO GmbH
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */

$CONFIG = [
	'loglevel' => 0,
	'loglevel_dirty_database_queries' => 4,

//	'mail_domain' => (string)getenv('MAIL_DOMAIN'),
//	'mail_from_address' => (string)getenv('MAIL_FROM_ADDRESS'),
//	'mail_smtpmode' => 'smtp',
//	'mail_smtphost' => (string)getenv('MAILER_HOST'),
//	'mail_smtpport' => (int)getenv('MAILER_SMTP_PORT'),
//	'mail_smtpauth' => false,
//	'mail_smtpname' => '',
//	'mail_smtppassword' => '',
//	'mail_smtpsecure' => '',
//	'mail_smtpauthtype' => 'LOGIN',
//	'mail_send_plaintext_only' => false,

	'mail_domain' => 'nc.dev.localhost',
	'mail_from_address' => 'nextcloud-dev',
	'mail_smtpmode' => 'smtp',
	'mail_smtphost' => 'localhost',
	'mail_smtpport' => 1025,
	'mail_smtpauth' => false,
	'mail_smtpname' => '',
	'mail_smtppassword' => '',
	'mail_smtpsecure' => '',
	'mail_smtpauthtype' => 'LOGIN',
	'mail_send_plaintext_only' => false,
];
* install is started with admin parameters (it is started)
* ncw_tools is in shipped.json
	* in shippedApps
	* in defaultEnabled
	* in alwaysEnabled
  • start container .dev/container/run

  • run install dev-install.sh

    • Abort on "[?] Do you want to run live setup scripts now? [y/N]"
    • Observe ncw_app is enabled
      • occ app:list --enabled | grep ncw_tools
    • Admin user is created and it hast an email set:
      • Observe occ user:info admin
    • Is overwrite.cli.url is set occ config:system:get overwrite.cli.url
    • smtp is working do occ user:welcome admin
    • Check job is added
      • occ background-job:list -c OCA\\NcwTools\\BackgroundJob\\PostSetupJob
        • Observe output 42 | OCA\NcwTools\BackgroundJob\PostSetupJob | 1970-01-01T00:00:00+00:00 | "admin"
    • Check job status
      • occ config:app:get ncw_tools post_install
        • Observe "INIT"
    • Run simulated job php cron.php
      • Observe no - email

Test - domain not accesible

  • domain overwrite.cli.url is set to "http://localhost:8080" (accessible)
    • occ config:system:set --value 'http://localhost:8080' -- overwrite.cli.url
  • Run simulated job php cron.php
    • Observe - you got email
  • Check job is removed
    • occ background-job:list -c OCA\\NcwTools\\BackgroundJob\\PostSetupJob
      • Observe - no job
  • Check job status
    • occ config:app:get ncw_tools post_install
      • Observe "DONE"

Checklist

tanyaka and others added 2 commits January 19, 2026 09:59
https://github.com/IONOS-Productivity/ncw-tools/tree/v1.0.0-3af182e

git submodule add -f  git@github.com:IONOS-Productivity/ncw-tools.git apps-external/ncw_tools
cd apps-external/ncw_tools
git checkout v1.0.0-3af182emain
cd -
git submodule update --init apps-external/activity
git add .gitmodules apps-external/ncw_tools

Signed-off-by: Tatjana Kaschperko Lindt <kaschperko-lindt@strato.de>
…_tools app)

https://github.com/IONOS-Productivity/ncw-config/releases/tag/5823634

Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@printminion-co printminion-co added this to the ncw-3 milestone Jan 23, 2026
@printminion-co printminion-co changed the title integrate ncw tools app integrate ncw-tools app Jan 23, 2026
@printminion-co printminion-co changed the title integrate ncw-tools app Test: integrate ncw-tools app Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants