Skip to tutorial content
Rate module Not yet rated

Debugging and Validating the Pattern

4 min read
On this page

In this lesson, you will learn:

  • How to test a custom pattern end to end
  • How to trigger it from Discovery
  • How to validate the nightly result

πŸ” Quick look back: Last time: Adding Connection Logic Where Required. You learned how the connection section links the archiver to snwr-db-01.

1 The Problem: A Pattern That Only Works in Debug Isn’t Done

The archiver pattern works in Debug mode. But nightly scans still don’t run it, because:

  • Nothing tells Discovery to use it.

🎯 The problem: A pattern that only works in Debug isn’t done.

πŸ‘‰ The fix: Link it to the process classifier, then prove a normal scan finds the archiver.

Lifecycle from debug to validated.
Figure 1. From Debug to validated.

2 Linking it

The process classifier from Discovery Configuration recognises the archiver. Set it to trigger the new pattern.

πŸ’‘ Good to know: Need a refresher? See Discovery Configuration β€Ί Process Classifiers for Applications for the classifier.

3 Validating it

  • Run Quick Discovery on the server.
  • Check the CI and links.
  • Let one nightly scan run, and check again.
  • Check no duplicate archiver CI appears.

4 Project Clear View: How We Implemented It

πŸ“ Situation: The pattern worked in Debug only.

🧭 Decision: Link it and validate it through normal scans.

πŸ› οΈ Steps we took:

  1. Set the process classifier to trigger the archiver pattern.
  2. Ran Quick Discovery on the lab copy on snwrdev.
  3. Moved it to snwrtest and ran Quick Discovery on snwr-mail-02.
  4. Checked the next nightly scan.

βœ… What we verified:

  • The nightly scan updated the archiver CI.
  • No duplicates appeared.

πŸ“ Evidence: Validation evidence for Quality Assurance.

5 Quick recap

  • Debug success isn’t enough.
  • Link the pattern to the process classifier.
  • Validate with Quick Discovery, then a nightly scan.
  • Check for duplicates.

6 Check yourself

Think of your answer first. Then tap to check.

1 What makes Discovery run the archiver pattern? Show answer

The process classifier triggers it.

2 How do you validate beyond Debug? Show answer

Quick Discovery, then a nightly scan, checking the CI and links.

3 Which server did you test on snwrtest? Show answer

snwr-mail-02.

Nice work! The archiver pattern runs every night. πŸŽ‰
Next up: Packaging and Promoting the Pattern Safely

Was this lesson helpful?

Have a question or doubt?

Ask here and get help from instructors and fellow learners.

0 / 300

Only logged-in learners can post.