Test Plan¶
This document is providing a test plan for Trustpoint using the IEEE 829 standard for structuring this plan.
Introduction¶
The purpose of this test plan should be to test all required functions which are briefly described inside the GitHub repository. Also, there is a separation between functionality and user experience. Since the project is heavily relying on securing networks as simple as possible, the user experience should be as important as the functionality.
Summarized, this test plan is intended to ensure, through the execution and documentation of all tests, the
functionality,
usability,
security and
integration capability
of Trustpoint. This is done by specifying and implementing the above-mentioned requirements in software tests.
Test Items (Functions)¶
This chapter lists all needed requirements of Trustpoint, e.g. creating certificates. These requirements are only back-end requirements.
Actors¶
First, we define all needed actors to be as specific as needed.
ID |
Name |
Description |
|---|---|---|
TPC_Web |
Trustpoint Core Web Interface |
The website of Trustpoint. |
TP_Client |
Trustpoint Client |
The Trustpoint client program to be installed on clients. |
Admin |
Admin |
The admin user of this specific Trustpoint environment. |
NTEU |
Non-technically experienced user |
A user who is not necessarily technically experienced. This could also be an admin. |
TEU |
Technically experienced user |
A user who does know at least a little bit about programming and PKI. |
Requirements¶
Next, we list all requirements. Note that this list could (and will be) incomplete.
Functional Requirements¶
Name (Identifier) |
Title |
Description |
Component(s) |
Importance |
|---|---|---|---|---|
R_001 |
Create, view, revoke and delete a device |
TPC_Web must provide a way to create, view, revoke and delete a device. |
TPC_Web, Admin |
High |
R_002 |
Usage of any zero touch onboarding protocol |
Any zero touch onboarding protocol should be used, preferably the Bootstrapping Remote Secure Key Infrastructure (BRSKI) process, while connecting a new device to the network. |
TP_Client |
High |
R_003 |
Certificate Lifecycle Management |
Enable complete lifecycle management for certificates, including renewal and revocation. |
All components |
High |
R_004 |
REST API |
Provide a REST API for interacting with Trustpoint programmatically. |
TPC_Web |
High |
R_005 |
Docker Container Support |
Distribute Trustpoint within a fully-configured Docker container for deployment. |
TPC_Web |
Medium |
R_006 |
Backup, Restore, and Update Mechanisms |
Implement backup, restoration, and update features to ensure data and system resilience. |
TPC_Web, Admin |
High |
R_007 |
Logging Capabilities |
Provide detailed and configurable logging for system events and actions. |
TPC_Web, TP_Client |
High |
R_008 |
Add, delete new Issuing CA’s |
The admin should be able to add and delete new Issuing CA’s. |
TPC_Web |
High |
R_009 |
High Availability |
Ensure system availability using redundancy or failover mechanisms. |
TPC_Web, TP_Client |
High |
R_010 |
CMP Endpoint for Onboarded Devices |
Provide a CMP endpoint for device onboarding. |
All components |
High |
R_011 |
EST Endpoint for Onboarded Devices |
Provide an EST endpoint for device onboarding. |
All components |
High |
R_012 |
Language Selection and Translation |
Support multi-language UI options for global usability. |
TPC_Web, TP_Client |
Medium |
R_013 |
Remote Credential Download |
Enable credential downloads from a remote device using a one-time password. |
TPC_Web |
High |
R_103 |
Create, view, and delete a domain |
TPC_Web must provide a way to create, view, and delete a domain. |
TPC_Web, Admin |
High |
R_104 |
Create, view, revoke and delete a truststore |
TPC_Web must provide a way to create, view, and delete a device. |
TPC_Web, Admin |
High |
Security Requirements¶
Name (Identifier) |
Title |
Description |
Component(s) |
Importance |
|---|---|---|---|---|
R_101 |
Security Level Configuration |
Allow administrators to configure security levels for different Trustpoint components. |
Admin, TPC_Web |
Medium |
R_102 |
Certificate Template Security |
Enforce access control and secure handling for certificate templates. |
TPC_Web |
High |
Software Risk Issues¶
All software testing involves risks, which are listed below in order to minimize them.
- Incomplete requirements:
As Trustpoint is a research project, it can happen that requirements are incomplete and only become apparent in retrospect that they would have been important.
- Incomplete test coverage:
Although we strive to keep the test coverage as high as possible, sometimes not everything can be tested. As a result, some execution paths may be left out, with the resulting problems only becoming apparent during productive operation.
- Lack of time for testing:
It could well happen that the test plan is too long and complex, so that we run out of time with the software tests.
- Problems with the test environment:
Not every (automated) test can be carried out on a real environment. Therefore, simulation components are likely to be used, but these will probably not represent exactly the same devices as they will look like in the production environment. An example of this would be the simulation or integration of older machines which do not provide a certificate signed by the manufacturer.
- User-friendliness:
The testers of the program’s interface (acceptance testing) should be people with as little technical knowledge as possible, as otherwise the tests may give a false picture when tested by people from the development team.
- Problems with manual testing:
We should thrive for automatic testing, although not every requirement can be tested automatically. That is, because the manual testing techniques are sometimes but not always the root of an error.
Features To Be Tested¶
This chapter lists all needed requirements of Trustpoint, e.g. creating certificates. These requirements are now front-end requirements as well as user experience. This is also the main difference between chapter Test Items (Functions) and this chapter. The table of all actors is still used though.
Name (Identifier) |
Title |
Description |
Component(s) |
Importance |
|---|---|---|---|---|
F_001 |
NTEU must be able to execute R_001 and R_002. |
NTEU must be able to log in to the TCP_Web app and carry out the processes described in R_001 and R_002. |
TPC_Web, NTEU |
High |
Features Not To Be Tested¶
There are no features present right now which we do not want to test.
Approach (Strategy)¶
Testing Levels¶
The testing will consist of Unit, System/Integration (combined), and Acceptance test levels.
Unit Testing¶
Unit testing will be conducted by the developers and approved by another developer. Before unit testing is considered complete and the components are passed on for further testing, developers must provide evidence of successful testing. This includes:
A list of test cases executed
Sample output
Input data sets
Documentation of identified and resolved defects
Note that this can be done automatically.
All unit test artifacts will also be shared with the test engineer for validation and record-keeping. The focus of unit testing will be on verifying the functionality of individual modules of Trustpoint.
System/Integration Testing¶
System/Integration testing will be carried out by the test developer and the full development team. The primary goal at this stage is to ensure that all Trustpoint modules work together seamlessly, emphasizing interoperability, data consistency, and security.
Also, testing the software under high load and in a larger system should be performed. (Scalability) (It could be the case that those tests are not feasible, because we cannot create such a broad testing environment.)
Acceptance Testing¶
Acceptance testing will be conducted by the end-users with assistance from the test manager or one of the developers. This phase will focus on validating the Trustpoint system’s usability, reliability, and alignment with user expectations in a production-like environment. The testing process will involve:
Evaluating user workflows,
trust validation,
and secure interactions to ensure the system meets all functional requirements.
Programs will enter acceptance testing only after all critical and major defects have been resolved.
Note that we are able to test user workflows automatically at the integration test phase but there needs to be another acceptance test phase where we actually provide manual tests.
Test Tools¶
The testing for the Trustpoint project will utilize modern testing frameworks and tools to ensure robust and efficient validation of the application’s functionality across all levels.
Unit Testing¶
Unit testing for the core functionalities of Trustpoint will be implemented using pytest, a widely adopted Python testing framework. This ensures comprehensive and automated validation of the smallest testable units. Tests will be integrated into the defined GitHub pipelines to enable continuous integration and delivery (CI/CD). These pipelines will ensure that any changes to the codebase are thoroughly tested before merging, reducing the risk of regressions and enhancing development agility.
Integration/System Testing¶
Integration testing will leverage behave to create BDD test scenarios. This approach will allow us to define tests in plain language that are easy to understand for both technical and non-technical stakeholders. The scenarios will focus on validating the interactions between Trustpoint components, ensuring that they function cohesively as a system.
Acceptance Testing¶
The tool for acceptance testing has not been finalized at this stage. However, efforts are underway to evaluate suitable tools that align with the requirements of end-user testing. In the interim, manual acceptance testing will be performed in collaboration with end users to validate the system’s readiness for production.
Data Management¶
Data for testing will primarily be sourced from production-like datasets to simulate real-world scenarios effectively. Where necessary, synthetic data will be generated or modified using Python-based utilities to ensure test completeness. Under no circumstances will changes be made directly to actual production data during testing activities.
Item Pass/Fail Criteria¶
The test process for the Trustpoint project will be considered complete once the following criteria have been met:
- Core Functionalities Validation:
All critical and major defects identified during unit, integration, and system testing must be resolved.
The core functionalities of Trustpoint, such as certificate issuance, renewal, revocation, and domain validation, must operate reliably without workarounds.
- Integration Testing Success:
The PKI components must demonstrate seamless interaction, with no critical or major integration issues.
Simulated high-volume certificate management scenarios should execute without performance degradation or system crashes.
- Acceptance Testing Completion:
The platform must pass acceptance testing by end users, ensuring it meets their operational requirements.
All critical and major defects discovered during this phase must be corrected, verified, and closed.
- Data Integrity Verification:
Test data generated during the system/integration and acceptance phases must validate correctly against expected outcomes, ensuring the platform’s reliability and accuracy in managing certificates.
Production-like scenarios must confirm data consistency across all Trustpoint modules.
- PKI Compliance Validation:
Trustpoint’s processes must comply with PKI standards and security protocols.
Certificate data exchanges and storage must adhere to security best practices.
- Deployment Readiness:
The system must pass GitHub pipeline tests, including automated unit and integration tests executed through pytest and behave, with 100% of critical tests passing.
The staging environment must match the production setup, with successful parallel runs simulating live scenarios for a predefined period (e.g., two weeks).
Once these criteria are satisfied, Trustpoint will be considered ready for live deployment. Following this, any additional configurations, user onboarding, or domain activations will occur incrementally as per readiness and validation.
Suspension Criteria And Resumption Requirements¶
Title |
Suspension |
Resumption |
|---|---|---|
Unavailability of CA or Domain Validation Services |
Testing will be paused if the certificate authority (CA) or domain validation services are unavailable, as these are critical for validating PKI-related functionalities. |
Testing will resume once the CA or validation services are operational, and any interrupted test cases will be re-executed to ensure completeness. |
Critical Defect Identified in Core Functionality |
If a critical defect in core features (e.g., certificate issuance, revocation, or renewal) is identified during testing, further testing will be suspended until the issue is resolved. |
Testing will resume once the defect is fixed and verified in the development environment. |
Test Environment Instability |
Testing will pause if the staging or testing environment becomes unstable or misconfigured, as this could lead to unreliable results. |
Testing will resume after the environment is restored to a stable and functional state, and necessary validations have been performed. |
Unavailability of Required Test Data |
If critical test data (e.g., domain configurations, certificate requests) is unavailable or incomplete, testing will be suspended for the affected areas. |
Testing will resume once sufficient test data has been prepared and verified. |
Staffing or Resource Constraints |
If key personnel (e.g., test managers or developers) or resources (e.g., access to tools or infrastructure) are unavailable, testing may be delayed for impacted areas. |
Testing will resume once adequate staffing and resources are available to continue the process effectively. |
Test Deliverables¶
The following consolidated deliverable will be provided at the conclusion of the Trustpoint testing process:
Comprehensive Test Report:
This single document will include the following components:
- Unit Test Results:
Summary of pytest executions, including test case descriptions, pass/fail status, and defect details.
Logs and outputs from automated tests executed through GitHub pipelines.
- Defect and Incident Reports:
A summary of defects encountered during testing phases, their resolution status, and associated incident logs.
- Acceptance Testing Summary:
Results of acceptance tests, including user feedback and final approval status.
Any open issues and their planned resolutions (if applicable).
- Coverage Metrics:
Test coverage statistics to demonstrate the completeness of testing efforts.
Remaining Test Tasks¶
Task |
Assigned To |
Status |
|---|---|---|
Collect and finalize testing requirements (e.g., PKI workflows, certificate lifecycle scenarios). |
In Progress |
|
Define and finalize acceptance criteria for Trustpoint’s features. |
Pending |
|
Configure and validate the test environments (development and staging). |
In Progress |
|
Develop unit tests using pytest for core functionalities (e.g., certificate issuance, renewal, and revocation). |
In Progress |
|
Develop integration tests using behave for end-to-end workflows. |
Pending |
|
Execute system/integration tests in the staging environment. |
Not Started |
|
Document results from unit, integration, and acceptance tests for inclusion in the comprehensive test report. |
Not Started |
|
Conduct acceptance testing with end users (e.g., system administrators, security teams). |
Not Started |
|
Resolve defects identified during testing and retest as needed. |
Ongoing |
|
Finalize and deliver the comprehensive test report (including test results and coverage). |
Not Started |
Environmental Needs¶
The following elements are required to support the testing effort at all levels within the Trustpoint project:
- Access to Development and Staging Environments:
A dedicated development environment for initial testing, debugging, and iterative fixes.
A staging environment that mirrors the production setup for system, integration, and acceptance testing.
- Certificate Authority (CA) Setup:
Access to a functional CA system to validate PKI-related features such as certificate issuance, renewal, and revocation.
- GitHub CI/CD Pipeline Configuration:
An operational GitHub pipeline to automate testing and deployment workflows. This pipeline will execute unit and integration tests using pytest and behave frameworks.
- Database Access:
Availability of a testing database populated with production-like data to simulate realistic scenarios.
A clear separation between testing and production data to ensure no overlap or accidental data modification.
- Secure Networking Configuration:
A secure network environment for testing interactions between Trustpoint components, including domain validation and security protocol testing.
- Access to Backup/Recovery Processes:
Access to nightly backup and recovery tools for safeguarding test environment data.
- Testing Tools:
Functional installations of pytest and behave for automated testing.
Additional tools may be added as acceptance testing needs evolve.
This streamlined setup ensures an effective and efficient testing process while minimizing redundancy and complexity.
Staffing And Training Needs¶
- Staffing Requirements
At least one dedicated tester should be assigned for the integration and acceptance testing phases to ensure thorough and independent validation.
In the absence of a dedicated tester, the test manager will assume this role with support from the development team.
Developers will assist in test case creation and debugging during the unit testing and integration testing phases.
- Training Needs
- Developers and Testers:
Familiarity with Trustpoint’s core functionality, including certificate issuance, renewal, revocation, and domain validation workflows.
Training on pytest for unit testing and behave for integration testing, including understanding the GitHub pipeline integration.
- End Users:
Training on navigating Trustpoint’s user interfaces, configuring domains, and interpreting system-generated reports.
Responsibilities¶
Responsibility |
Test Team |
||||
|---|---|---|---|---|---|
Acceptance Test Documentation & Execution |
X |
X |
X |
X |
|
System/Integration Test Documentation & Execution |
X |
X |
X |
X |
|
Unit Test Documentation & Execution |
X |
X |
|||
System Design Reviews |
X |
X |
X |
X |
X |
Detailed Design Reviews |
X |
X |
X |
X |
|
Test Procedures and Rules |
X |
X |
X |
X |
|
Change Control and Regression Testing |
X |
X |
X |
X |
|
Certificate Lifecycle Scenarios Review |
X |
X |
X |
X |
Schedule¶
The following schedule outlines the remaining testing activities. These activities are aligned with the project’s current progress and emphasize completing testing efficiently and effectively. Specific dates and durations should be detailed in the project timeline managed by the project manager in collaboration with development and test leads.
Activity |
Responsibility |
Duration/Timeline |
Details |
|---|---|---|---|
Review Requirements Document |
1 Week |
Review requirements to ensure complete understanding and alignment of test objectives. |
|
Finalize and Review Requirements |
1 Week |
Develop and review the requirements needed for writing the acceptance tests. |
|
Review System Design Document |
Test Team, Dev |
3 Days |
Enhance understanding of the system structure and refine test objectives. |
Conduct Unit Tests |
Ongoing until code completion |
Verify individual methods/functions as they are completed; results reviewed by the development lead. |
|
System/Integration Testing |
Test Team, Dev |
2 Weeks |
Validate module interactions, data flow, and PKI processes in a staging environment. |
Acceptance Testing |
Test Team, End Users, PM |
2 Weeks |
Perform final user-driven testing to ensure Trustpoint meets functional and usability expectations. |
Planning Risks And Contingencies¶
Risk |
Description |
Contingency Plan |
|---|---|---|
Limited Staff Availability for Testing |
Key stakeholders or end users may have limited availability during acceptance testing. |
Schedule testing in advance; assign a test team representative if stakeholders are unavailable. |
Incomplete or Changing Requirements |
Requirements may evolve or be incomplete, leading to rework or missed test cases. |
Conduct iterative reviews; adopt agile testing practices to adapt dynamically to changes. |
Test Environment Instability |
The staging or test environment may become misconfigured or unavailable, causing delays. |
Maintain backup environments; use configuration checklists to ensure reliable setups. |
Delays in Defect Resolution |
Defects may take longer to resolve, impacting subsequent testing phases. |
Prioritize critical defects; allocate additional resources for prompt resolution. |
Dependence on External Systems |
External PKI components (e.g., Certificate Authorities) may be unavailable during testing. |
Use mock services or simulators; coordinate with service providers to ensure availability. |
Inadequate Test Data |
Insufficient or unrealistic test data may result in incomplete testing or missed edge cases. |
Generate synthetic data using Python utilities; use anonymized production-like datasets for validation. |
Approvals¶
Test Cases¶
Since we are using the BDD principle for system and integration testing, we decided on specifying the tests directly inside the Cucumber feature files. This has the advantage of removing the need to keep two or more documents updated at the same time. Also, Gherkin is a well organized language such that the test ideas and steps are possible to read - even for people without a background in software engineering. That being said, we state the feature files in the following and provide a brief description on the test ideas.
Functional Requirements¶
R_001¶
This testcase is related to requirement R_001.
Test Idea¶
To test the requirement of creating, viewing, editing, and deleting devices using the TPC_Web interface, the focus will be on validating the complete lifecycle of device management through the web platform.
The test would start with an admin user creating a new device through the web interface. This process involves navigating to the appropriate page, filling out the required fields (e.g., name, serial number and domain), and submitting the form. Once the device is created, the test would verify that it appears in the list of devices and that all details are accurately displayed on its details page.
Finally, the test would validate the deletion process, where the admin removes the device through the web interface. Once deleted, the system should ensure that the device is no longer accessible or visible in any lists or details pages. Additional negative tests could confirm appropriate handling when attempting to access or manipulate a non-existent or already-deleted device.
Feature File¶
@requirement.R_001
@capability.devices
@allure.label.epic:Devices
@allure.label.suite:Device_Management
Feature: Device management
As an administrator
I want to manage industrial devices
So that machine identities can be managed consistently.
Background:
Given the admin user is logged into Trustpoint
And a security configuration exists
And a domain named "behave-domain" exists
@critical
Scenario: Create a no-onboarding device
When the admin creates a no-onboarding device named "behave-device" with serial number "SN-1001" in domain "behave-domain"
Then the response status code is 200
And a device named "behave-device" with serial number "SN-1001" exists
And the device "behave-device" belongs to domain "behave-domain"
And the device "behave-device" uses no-onboarding
And the device "behave-device" has PKI protocol "MANUAL" enabled
@normal
Scenario: Create a device without a domain
When the admin creates a no-onboarding device named "device-without-domain" with serial number "SN-1002" without a domain
Then the response status code is 200
And a device named "device-without-domain" with serial number "SN-1002" exists
And the device "device-without-domain" has no domain assigned
@normal
Scenario: Create a device without a serial number
When the admin creates a no-onboarding device named "device-without-serial" without a serial number in domain "behave-domain"
Then the response status code is 200
And a device named "device-without-serial" exists
And the device "device-without-serial" has an empty serial number
@critical
Scenario: Create a no-onboarding device using CMP shared-secret authentication
When the admin creates a no-onboarding device named "cmp-device" using PKI protocol "CMP_SHARED_SECRET" in domain "behave-domain"
Then the response status code is 200
And a device named "cmp-device" exists
And the device "cmp-device" has PKI protocol "CMP_SHARED_SECRET" enabled
And a CMP shared secret was generated for device "cmp-device"
@critical
Scenario: Create a no-onboarding device using EST username and password authentication
When the admin creates a no-onboarding device named "est-device" using PKI protocol "EST_USERNAME_PASSWORD" in domain "behave-domain"
Then the response status code is 200
And a device named "est-device" exists
And the device "est-device" has PKI protocol "EST_USERNAME_PASSWORD" enabled
And an EST or REST password was generated for device "est-device"
@critical
Scenario: Create a no-onboarding device using REST username and password authentication
When the admin creates a no-onboarding device named "rest-device" using PKI protocol "REST_USERNAME_PASSWORD" in domain "behave-domain"
Then the response status code is 200
And a device named "rest-device" exists
And the device "rest-device" has PKI protocol "REST_USERNAME_PASSWORD" enabled
And an EST or REST password was generated for device "rest-device"
@normal
Scenario: Create a device with multiple no-onboarding PKI protocols
When the admin creates a no-onboarding device named "multi-protocol-device" with the following PKI protocols in domain "behave-domain":
| protocol |
| CMP_SHARED_SECRET |
| EST_USERNAME_PASSWORD |
| MANUAL |
| REST_USERNAME_PASSWORD |
Then the response status code is 200
And a device named "multi-protocol-device" exists
And the device "multi-protocol-device" has PKI protocol "CMP_SHARED_SECRET" enabled
And the device "multi-protocol-device" has PKI protocol "EST_USERNAME_PASSWORD" enabled
And the device "multi-protocol-device" has PKI protocol "MANUAL" enabled
And the device "multi-protocol-device" has PKI protocol "REST_USERNAME_PASSWORD" enabled
And a CMP shared secret was generated for device "multi-protocol-device"
And an EST or REST password was generated for device "multi-protocol-device"
@security
Scenario: Reject a duplicate device name
Given a device named "duplicate-device" exists in domain "behave-domain"
When the admin attempts to create another no-onboarding device named "duplicate-device" in domain "behave-domain"
Then the response status code is 200
And exactly one device named "duplicate-device" exists
And the device creation form reports that the device name already exists
@normal
Scenario: Generate a stable RFC 4122 UUID for a device
When the admin creates a no-onboarding device named "uuid-device" with serial number "SN-UUID-1" in domain "behave-domain"
Then the response status code is 200
And the device "uuid-device" has an RFC 4122 version 4 UUID
@normal
Scenario: Device UUIDs are unique
Given a device named "uuid-device-one" exists in domain "behave-domain"
And a device named "uuid-device-two" exists in domain "behave-domain"
Then the devices "uuid-device-one" and "uuid-device-two" have different UUIDs
@normal
Scenario: List an existing device
Given a device named "listed-device" exists in domain "behave-domain"
When the admin opens the device list
Then the response status code is 200
And the device list contains "listed-device"
@critical
Scenario: Delete an existing device
Given a device named "delete-device" exists in domain "behave-domain"
When the admin deletes that device
Then the response status code is 200
And the device "delete-device" no longer exists
@minor
Scenario: Handle a request for a non-existent device
When the admin opens non-existent device id 999999
Then the response status code is 404
R_002¶
This testcase is related to requirement R_002.
Test Idea¶
Warning
There is no test idea present. This will change in the future!
Feature File¶
Warning
There is also no feature file present! This will also change as soon as a test idea is provided.
R_003¶
This testcase is related to requirement R_003.
Test Idea¶
To test the complete lifecycle management of certificates, the focus will be on ensuring that admin users can successfully perform actions such as renewing and revoking certificates via the TPC_Web interface.
The test begins by identifying an existing certificate. Using TPC_Web, the admin initiates the renewal process, and the system updates the expiration date. Similarly, the admin navigates to the certificate management page and initiates a revocation process. The system should confirm the action and reflect the certificate’s updated status as revoked.
Edge cases include attempting to renew or revoke non-existent certificates or performing actions on certificates in invalid states (e.g., already revoked certificates). The system should handle these scenarios gracefully, with appropriate error messages or restrictions.
Feature File¶
@requirement.R_003
@capability.pki
@capability.certificate_lifecycle
@allure.label.epic:PKI
@allure.label.suite:Certificate_Lifecycle
Feature: Certificate lifecycle
Trustpoint tracks certificate revocation as a persisted lifecycle state.
Background:
Given the admin user is logged into Trustpoint
Scenario: Revoke an active certificate
Given an active issued credential exists
When the admin revokes the issued credential for key compromise
Then the response status code is 200
And the certificate is marked as revoked
Scenario: Reject revocation of an already revoked certificate
Given an active issued credential exists
When the admin revokes the issued credential for key compromise
Then the certificate is marked as revoked
When the admin revokes the same issued credential again
Then the lifecycle operation is rejected with status 422
R_004¶
This testcase is related to requirement R_004.
Test Idea¶
To test the REST API for interacting with Trustpoint programmatically, we focus on verifying CRUD operations (Create, Read, Update, Delete) and additional actions like querying and filtering. We begin by validating that authorized API clients can authenticate successfully and perform each operation on digital identities. This includes creating a new identity, retrieving its details, updating its attributes, and deleting it. Each API response should include appropriate status codes and payloads.
Error handling should also be tested, such as attempting operations with invalid data, unauthorized access, or on non-existent resources. Edge cases, such as rate limits or concurrent requests, should be addressed to confirm robustness.
Feature File¶
@requirement.R_004
@capability.api
@capability.pki
@allure.label.epic:API
@allure.label.suite:REST_PKI
Feature: REST PKI API authorization
The REST PKI management endpoints must reject unauthenticated callers before certificate operations are executed.
Scenario: Unauthenticated enrollment is rejected
When an unauthenticated client posts to the REST PKI enroll endpoint
Then the response is an authentication failure
Scenario: Unauthenticated revocation is rejected
When an unauthenticated client posts to the REST PKI revoke endpoint
Then the response is an authentication failure
Scenario: Authenticated enrollment requires certificate issuance permission
Given an active service account credential exists
When the service account requests an OAuth2 token with client credentials
Then the response status code is 200
When the authenticated service account enrolls for missing device 999999
Then the response status code is 403
Scenario: Authenticated enrollment reports a missing target device
Given an active service account credential exists
And the service account may issue certificates
When the service account requests an OAuth2 token with client credentials
Then the response status code is 200
When the authenticated service account enrolls for missing device 999999
Then the response status code is 404
And the response contains "Device with id 999999 not found."
R_005¶
This testcase is related to requirement R_005.
Test Idea¶
This requirement states that we want to distribute Trustpoint in a fully-configured Docker container. The idea for testing would be to build the container, run it on a production system and then check all other requirements manually or build a test suite and check the requirements automatically.
For now, we have the idea of using our docker_compose_r_005 to build and start the trustpoint container as well as the postgres container. After this, we check if the startpage is visible and returns a 200 code. This test is executed inside a GitHub Actions pipeline.
Docker Compose File¶
services:
trustpoint:
build:
context: .
dockerfile: docker/trustpoint/Dockerfile
image: "${TRUSTPOINT_IMAGE:-trustpointproject/trustpoint:latest}"
container_name: trustpoint
restart: unless-stopped
ports:
- "${TP_HTTP_PORT:-80}:80"
- "${TP_HTTPS_PORT:-443}:443"
extra_hosts:
- "host.docker.internal:host-gateway"
env_file:
- .env
environment:
TRUSTPOINT_PHASE: "${TRUSTPOINT_PHASE:-auto}"
POSTGRES_DB: "${POSTGRES_DB:-trustpoint_db}"
DATABASE_USER: "${DATABASE_USER:-admin}"
DATABASE_PASSWORD: "${DATABASE_PASSWORD:-testing321}"
TRUSTPOINT_SOFTWARE_KEK_FILE: "${TRUSTPOINT_SOFTWARE_KEK_FILE:-/run/secrets/trustpoint_software_kek}"
DJANGO_SECRET_KEY_FILE: "${DJANGO_SECRET_KEY_FILE:-/run/secrets/django_secret_key}"
DATABASE_HOST: "${DATABASE_HOST:-postgres}"
DATABASE_PORT: "${DATABASE_PORT:-5432}"
volumes:
- trustpoint_bootstrap:/var/lib/trustpoint/bootstrap
- trustpoint_media:/var/www/html/trustpoint/trustpoint/media
- trustpoint_hsm:/var/lib/trustpoint/hsm
secrets:
- source: trustpoint_software_kek
target: "${TRUSTPOINT_SOFTWARE_KEK_FILE:-/run/secrets/trustpoint_software_kek}"
- source: django_secret_key
target: "${DJANGO_SECRET_KEY_FILE:-/run/secrets/django_secret_key}"
healthcheck:
test: ["CMD-SHELL", "curl -fsk --max-time 5 https://localhost/ > /dev/null"]
interval: 30s
timeout: 10s
retries: 3
start_period: 90s
postgres:
build:
context: .
dockerfile: docker/db/Dockerfile
image: trustpointproject/postgres:latest
container_name: postgres
restart: unless-stopped
ports:
# Bind to loopback only – PostgreSQL must not be reachable from the network.
- "127.0.0.1:5432:5432"
volumes:
- postgres_data:/var/lib/postgresql
environment:
POSTGRES_USER: "${DATABASE_USER:-admin}"
POSTGRES_PASSWORD: "${DATABASE_PASSWORD:-testing321}"
POSTGRES_DB: "${POSTGRES_DB:-trustpoint_db}"
healthcheck:
test: ["CMD-SHELL", "pg_isready -h 127.0.0.1 -p 5432 -U \"$${POSTGRES_USER}\" -d \"$${POSTGRES_DB}\""]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
volumes:
postgres_data:
trustpoint_bootstrap:
trustpoint_media:
trustpoint_hsm:
networks:
default:
name: "${TRUSTPOINT_NETWORK_NAME:-trustpoint-net}"
secrets:
trustpoint_software_kek:
file: "${TRUSTPOINT_SOFTWARE_KEK_HOST_FILE:-./secrets/trustpoint_software_kek}"
django_secret_key:
file: "${DJANGO_SECRET_KEY_HOST_FILE:-./secrets/django_secret_key}"
GitHub Actions File¶
name: Tests / Docker Compose
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Setup .env file
run: cp .env.example .env
- name: Initialize Django signing key
run: sudo python3 docker/init_secret.py --type all
- name: Run Docker compose
uses: hoverkraft-tech/compose-action@v3.2.0
with:
compose-file: "./docker-compose.yml"
up-flags: "--build --wait"
- name: Test Home Page with curl (self-signed HTTPS)
run: |
echo "Checking health of the HTTPS endpoint with self-signed cert..."
URL="https://127.0.0.1/"
for i in {1..20}; do
http_response=$(curl -k -L -s -o response.txt -w "%{http_code}" "$URL") || true
if [ "$http_response" = "200" ]; then
echo "✅ Success on attempt $i"
break
else
echo "⏳ Attempt $i failed with HTTP code $http_response, retrying..."
sleep 3
fi
done
echo "Server returned: $http_response" >> "$GITHUB_STEP_SUMMARY"
if [ "$http_response" != "200" ]; then
echo "❌ Healthcheck failed." >> "$GITHUB_STEP_SUMMARY"
echo "Response body:" >> "$GITHUB_STEP_SUMMARY"
cat response.txt >> "$GITHUB_STEP_SUMMARY"
exit 1
else
echo "✅ Healthcheck passed." >> "$GITHUB_STEP_SUMMARY"
echo "Response body:" >> "$GITHUB_STEP_SUMMARY"
cat response.txt >> "$GITHUB_STEP_SUMMARY"
fi
R_006¶
This testcase is related to requirement R_006.
Test Idea¶
To verify the implementation of backup, restoration, and update mechanisms for ensuring system resilience:
- Backup Verification:
An admin initiates a system backup via the TPC_Web interface.
The system confirms that the backup process completes successfully.
The backup file is retrievable and valid.
- Restore Verification:
An admin uploads a valid backup file through the TPC_Web interface.
The system restores the data and confirms the restoration is successful.
Restored data is consistent with the backup file contents.
- System Update Verification:
An admin triggers a system update via the TPC_Web interface.
The system downloads and applies the update.
Post-update, the system verifies the integrity and functionality of the application.
Edge cases include:
Handling a corrupt backup file during restoration.
Attempting to perform operations with insufficient admin privileges.
Feature File¶
@requirement.R_006
@capability.system
@allure.label.epic:System
@allure.label.suite:Backup
Feature: Backup management
Administrators can trigger Trustpoint database backups through the management interface.
Background:
Given the admin user is logged into Trustpoint
Scenario: Open backup management
When the admin opens the backup management page
Then the response status code is 200
Scenario: Trigger a local database backup
When the admin creates a local database backup
Then the response status code is 200
And the backup service was invoked
R_007¶
This testcase is related to requirement R_007.
Test Idea¶
To verify that the system provides detailed and configurable logging for system events and actions, we will test the following scenarios:
- Logging of User Actions
The admin performs actions such as creating, updating, and deleting identities.
The system logs these actions with relevant details (timestamp, user ID, action type, and outcome).
- Log Retrieval & Filtering
The admin retrieves system logs via the TPC_Web interface.
Logs can be filtered by time range, user, or event type.
- Log Configuration Management
The admin modifies the logging configuration to change verbosity levels.
The system applies the new logging settings and updates log output accordingly.
- Log Storage & Integrity
Logs are stored persistently and are not lost between system restarts.
Unauthorized users cannot modify or delete logs.
Edge cases:
Verifying how the system handles an excessive number of log entries.
Testing logging behavior when storage space is low.
Feature File¶
@requirement.R_007
@capability.system
@allure.label.epic:System
@allure.label.suite:Logging
Feature: System log access
Authorized administrators can access Trustpoint log-management views.
Scenario: Administrator opens the log file list
Given the admin user is logged into Trustpoint
When the admin opens the system log list
Then the response status code is 200
R_008¶
This testcase is related to requirement R_008.
Test Idea¶
To verify that the admin is allowed to add or delete new Issuing CA’s, there are the following steps needed.
Admin is logged in
Admin navigates to the page “pki-issuing ca’s”
Admin can click on “add new issuing ca”
Admin is able to either upload a pkcs12 file or upload separate key and certificate file
The system should display the newly added Issuing CA
Feature File¶
@requirement.R_008
@capability.pki
@allure.label.epic:PKI
@allure.label.suite:CA_Management
Feature: Certificate Authority management
Administrators can configure issuing CAs through supported Trustpoint workflows.
Background:
Given the admin user is logged into Trustpoint
Scenario: Import an issuing CA from PKCS12
When the admin imports PKCS12 issuing CA "behave-imported-ca" from the test data
Then the response status code is 200
And issuing CA "behave-imported-ca" exists
Scenario: Local managed CA is shown in the issuing CA list
Given a local issuing CA named "behave-local-ca" exists
When the admin opens the issuing CA list
Then the response status code is 200
And the issuing CA list contains "behave-local-ca"
Scenario: Add Issuing CA page offers import, enrollment and self-signed creation
When the admin opens the Add Issuing CA method selection
Then the response status code is 200
And the response contains "Import existing Issuing CA"
And the response contains "Generate CSR"
And the response contains "Self-signed Issuing CA"
R_009¶
This testcase is related to requirement R_009.
Test Idea¶
There is no High Availability Concept for Trustpoint yet, so that the test needs to be redesigned after we decided on which concept top use. For now, the test assumes a multi-server setup.
To verify that the system ensures high availability through redundancy and failover mechanisms, we will test the following scenarios:
- Failover Mechanism Activation
Simulate a primary server failure.
Verify that the system seamlessly switches to a secondary server.
Ensure no data loss or service interruption.
- Load Balancing Under High Traffic
Simulate multiple concurrent users accessing the system.
Verify that traffic is distributed across multiple nodes.
Ensure response times remain within acceptable limits.
- Recovery After a Server Crash
Simulate a server crash and restart.
Ensure the system restores its previous state without manual intervention.
Verify that logs and transactions remain intact.
- Database Replication Consistency
Ensure that database replication maintains consistency across multiple nodes.
Test whether changes made on one node propagate to others correctly.
Edge cases:
Sudden simultaneous failure of multiple components.
Failover switching back to the primary server after recovery.
Performance degradation during failover.
Feature File¶
Nonexistent.
R_010¶
This testcase is related to requirement R_010.
Test Idea¶
To verify that the system provides a CMP endpoint for onboarding devices, we will test the following scenarios:
- Device Registration and Certificate Enrollment
A new device initiates a CMP request to the endpoint.
The system processes the request and issues a certificate.
The device successfully receives and stores the issued certificate.
- Certificate Renewal for an Onboarded Device
An onboarded device requests certificate renewal.
The system validates the request and issues a new certificate.
The device replaces its old certificate with the new one.
- Handling Unauthorized Requests
A device with invalid credentials tries to access the CMP endpoint.
The system rejects the request with an appropriate error response.
- Certificate Revocation for a Compromised Device
An admin requests certificate revocation for a specific device.
The system revokes the certificate and updates the revocation list.
The revoked device is unable to authenticate using its certificate.
- High Load Handling
Simulate multiple devices requesting certificate issuance simultaneously.
Verify that the system handles high traffic without performance degradation.
Edge cases:
Expired certificates being used for renewal.
Partial network outages during certificate issuance.
Unexpected payloads being sent to the CMP endpoint.
Feature File¶
@requirement.R_010
@requirement.R_011
@capability.api
@capability.enrollment
@allure.label.epic:API
@allure.label.suite:Enrollment_Endpoints
Feature: Enrollment protocol routing
CMP and EST protocol endpoints are registered in the Trustpoint application.
Wire-level protocol interoperability remains covered by the dedicated integration layer.
Scenario Outline: Enrollment endpoint is registered
Given the "<protocol>" protocol endpoint is registered
Then the "<protocol>" route resolves to a Trustpoint view
Examples:
| protocol |
| CMP |
| EST |
R_011¶
This testcase is related to requirement R_011. Note that EST and CMP could be tested the same way. This is still w.i.p.
Test Idea¶
To verify that the system provides an EST endpoint for onboarding devices, we will test the following scenarios:
- Device Registration and Certificate Enrollment
A new device initiates an EST request to the endpoint.
The system processes the request and issues a certificate.
The device successfully receives and stores the issued certificate.
- Certificate Renewal for an Onboarded Device
An onboarded device requests certificate renewal using EST.
The system validates the request and issues a new certificate.
The device replaces its old certificate with the new one.
- Handling Unauthorized Requests
A device with invalid credentials tries to access the EST endpoint.
The system rejects the request with an appropriate error response.
- Certificate Revocation for a Compromised Device
An admin requests certificate revocation for a specific device.
The system revokes the certificate and updates the revocation list.
The revoked device is unable to authenticate using its certificate.
- High Load Handling
Simulate multiple devices requesting certificate issuance simultaneously via EST.
Verify that the system handles high traffic without performance degradation.
Edge cases:
Expired certificates being used for renewal.
Partial network outages during certificate issuance.
Unexpected payloads being sent to the EST endpoint.
Feature File¶
@requirement.R_010
@requirement.R_011
@capability.api
@capability.enrollment
@allure.label.epic:API
@allure.label.suite:Enrollment_Endpoints
Feature: Enrollment protocol routing
CMP and EST protocol endpoints are registered in the Trustpoint application.
Wire-level protocol interoperability remains covered by the dedicated integration layer.
Scenario Outline: Enrollment endpoint is registered
Given the "<protocol>" protocol endpoint is registered
Then the "<protocol>" route resolves to a Trustpoint view
Examples:
| protocol |
| CMP |
| EST |
R_012¶
This testcase is related to requirement R_012.
Test Idea¶
To verify that the system provides multi-language UI options, we will test the following scenarios:
- Default Language Selection
A new user accesses the system.
The system detects the browser’s language settings and applies the appropriate default language.
If no supported language is detected, the system defaults to English.
- Manual Language Selection
A user manually selects a different language from the UI settings.
The system updates all UI elements to reflect the chosen language.
The language setting persists across sessions.
- Language Persistence
A user selects a language and logs out.
Upon re-login, the system retains the user’s language preference.
- UI Translation Accuracy
Verify that key UI elements (menus, buttons, notifications) are translated correctly for each supported language.
Ensure that dynamic text (e.g., form labels, user-generated content) remains unaffected.
Feature File¶
@requirement.R_012
@capability.system
@allure.label.epic:System
@allure.label.suite:Localization
Feature: Localization
Trustpoint renders the user interface in its supported languages.
Background:
Given Trustpoint supports English and German
Scenario Outline: Login page follows the selected language
When a user opens the login page using language "<language>"
Then the response status code is 200
And the login page is rendered in that language
Examples:
| language |
| English |
| German |
R_013¶
This testcase is related to requirement R_013.
Test Idea¶
The Remote Credential Download feature allows users to download an issued application credential from a remote device using a one-time password (OTP). The test covers the following scenarios:
- Admin Generates One-Time Password
An admin successfully generates a one-time password (OTP) for a specific issued credential.
The OTP is displayed in the “Download on Device Browser” view.
The OTP should be valid for a limited time.
- User Enters OTP Correctly
The user visits the “/devices/browser” endpoint.
They enter a valid OTP.
The system grants access to a page where the user can select the format for the credential download.
- User Enters OTP Incorrectly
The user visits the “/devices/browser” endpoint.
They enter an invalid OTP.
The system displays a warning message indicating the OTP is incorrect.
The user is not granted access to download the credential.
- User Downloads Credential
The user is on the credential download page.
The download token is still valid (not expired).
The user enters a password to encrypt the private key.
The user selects a file format.
The credential is successfully downloaded in the selected format.
Feature File¶
@requirement.R_013
@capability.devices
@capability.credentials
@allure.label.epic:Devices
@allure.label.suite:Remote_Credential_Download
Feature: Remote credential download
An issued credential can be transferred to a remote device through a short-lived OTP workflow.
Background:
Given the Trustpoint web application is running
Scenario: Administrator creates a one-time password
Given an issued credential is successfully issued
And the admin user is logged into Trustpoint
When the admin visits the associated "Download on Device browser" view
Then a one-time password is displayed which can be used to download the credential from a remote device
Scenario: Correct OTP opens the download format page
Given a correct one-time password
When the user visits the "/devices/browser" endpoint and enters the OTP
Then they will receive a page to select the format for the credential download
Scenario: Incorrect OTP is rejected
Given an incorrect one-time password
When the user visits the "/devices/browser" endpoint and enters the OTP
Then they will receive a warning saying the OTP is incorrect
Scenario: Credential can be downloaded as encrypted PEM ZIP
Given the user is on the credential download page
And the download token is not yet expired
When the user enters a password to encrypt the credential private key
And selects a file format
Then the credential will be downloaded to their browser in the requested format
Security Requirements¶
R_101¶
This testcase is related to requirement R_101.
Test Idea¶
To verify that administrators can configure security levels for different Trustpoint components, we will test the following scenarios:
- Set Security Level for a Component
The admin selects a Trustpoint component.
The admin sets the security level to “High”.
The system successfully applies and saves the security level.
- Modify an Existing Security Level
The admin updates the security level of a component from “Medium” to “High”.
The system correctly applies and reflects the change.
- Invalid Security Level Input is Rejected
The admin attempts to set an invalid security level.
The system rejects the input and displays an error.
- Security Level Persists After System Restart
The admin configures a security level for a component.
The system is restarted.
The security level remains correctly applied.
- Security Level Affects System Behavior
A component with a high-security level enforces stricter access control.
A component with a low-security level has more lenient settings.
The system behaves accordingly.
- Security Configuration is Logged
Every change to security levels is logged.
The log contains details such as timestamp, admin ID, and old/new security levels.
Feature File¶
@requirement.R_101
@capability.security
@allure.label.epic:Security
@allure.label.suite:Security_Configuration
Feature: Security configuration
As a Trustpoint administrator
I want to configure system-wide security requirements
So that cryptographic and enrollment behavior follows the required security policy.
Background:
Given the admin user is logged into Trustpoint
And a security configuration exists
@smoke
Scenario: Open the security configuration
When the admin opens the security configuration
Then the response status code is 200
And the security configuration form is displayed
@critical
Scenario Outline: Apply a security level preset
When the admin selects security mode "<mode>"
Then the security mode is "<mode>"
And the minimum RSA key size is "<rsa_key_size>"
And the maximum certificate validity is "<certificate_validity>" days
And the maximum CRL validity is "<crl_validity>" days
Examples:
| mode | rsa_key_size | certificate_validity | crl_validity |
| BROWNFIELD | 1024 | 1825 | 365 |
| INDUSTRIAL | 3072 | 365 | 180 |
| HARDENED | 4096 | 365 | 90 |
| CRITICAL | NONE | 180 | 90 |
@normal
Scenario: Lab mode allows unrestricted certificate validity
When the admin selects security mode "LAB"
Then the security mode is "LAB"
And no maximum certificate validity is configured
And no maximum CRL validity is configured
@security
Scenario: Critical Infrastructure mode disables RSA
When the admin selects security mode "CRITICAL"
Then RSA is not permitted
And the minimum RSA key size is "NONE"
@security
Scenario: Hardened Production disables imported private keys
When the admin selects security mode "HARDENED"
Then imported private keys are not permitted
And self-signed certificate authorities are not permitted
And automatic PKI creation is not permitted
@security
Scenario: Critical Infrastructure disables imported private keys
When the admin selects security mode "CRITICAL"
Then imported private keys are not permitted
And self-signed certificate authorities are not permitted
And automatic PKI creation is not permitted
@security
Scenario: Lab mode permits imported private keys
When the admin selects security mode "LAB"
Then imported private keys are permitted
And self-signed certificate authorities are permitted
And automatic PKI creation is permitted
@security
Scenario: Industrial mode rejects legacy signature algorithms
When the admin selects security mode "INDUSTRIAL"
Then hash algorithm "MD5" is not permitted
And hash algorithm "SHA1" is not permitted
@security
Scenario: Hardened mode applies stronger signature restrictions
When the admin selects security mode "HARDENED"
Then hash algorithm "MD5" is not permitted
And hash algorithm "SHA1" is not permitted
And hash algorithm "SHA224" is not permitted
@security
Scenario: Critical Infrastructure applies the strongest signature restrictions
When the admin selects security mode "CRITICAL"
Then hash algorithm "MD5" is not permitted
And hash algorithm "SHA1" is not permitted
And hash algorithm "SHA224" is not permitted
And hash algorithm "SHA256" is not permitted
@security
Scenario: Hardened mode limits onboarding credential lifetime
When the admin selects security mode "HARDENED"
Then the onboarding credential TTL is 600 seconds
@security
Scenario: Critical Infrastructure limits onboarding credential lifetime
When the admin selects security mode "CRITICAL"
Then the onboarding credential TTL is 600 seconds
@validation
Scenario: Reject a zero onboarding credential TTL
Given security mode "LAB" is active
When the admin sets the onboarding credential TTL to 0 seconds
Then the security configuration is rejected
And the security configuration contains an error for "credential_ttl_seconds"
@validation
Scenario: Reject an excessive credential TTL in Hardened mode
Given security mode "HARDENED" is active
When the admin sets the onboarding credential TTL to 601 seconds
Then the security configuration is rejected
And the security configuration contains an error for "credential_ttl_seconds"
@normal
Scenario: Store custom protocol allow-lists
Given security mode "LAB" is active
When the admin permits the following no-onboarding PKI protocols:
| protocol |
| CMP_SHARED_SECRET |
| MANUAL |
And the admin permits the following onboarding protocols:
| protocol |
| MANUAL |
| REST_USERNAME_PASSWORD |
Then the permitted no-onboarding PKI protocols are:
| protocol |
| CMP_SHARED_SECRET |
| MANUAL |
And the permitted onboarding protocols are:
| protocol |
| MANUAL |
| REST_USERNAME_PASSWORD |
@integration
Scenario: Capabilities API reflects the configured protocol policy
Given security mode "LAB" is active
And only no-onboarding PKI protocol "EST_USERNAME_PASSWORD" is permitted
And only onboarding protocol "EST_IDEVID" is permitted
When the capabilities API is requested
Then the response status code is 200
And no-onboarding capability "est_username_password" is enabled
And no-onboarding capability "cmp_shared_secret" is disabled
And no-onboarding capability "manual" is disabled
And no-onboarding capability "rest_username_password" is disabled
And onboarding capability "est_idevid" is enabled
And onboarding capability "cmp_shared_secret" is disabled
And onboarding capability "rest_username_password" is disabled
@security
Scenario: BRSKI cannot be enabled through the security configuration
When the admin opens the security configuration
Then onboarding protocol "BRSKI" is not offered
@authorization
Scenario: User without security configuration permission cannot change the security policy
Given a user without the "manage_security_configuration" permission is logged in
When the user attempts to change the security mode to "HARDENED"
Then the response status code is 403
And the security mode was not changed
R_102¶
This testcase is related to requirement R_102.
Test Idea¶
To verify that certificate template security is enforced properly, we will test the following scenarios:
- Only Authorized Users Can Access Certificate Templates
A user with admin privileges accesses the certificate templates.
A regular user attempts to access certificate templates but is denied.
- Secure Handling of Certificate Templates
A certificate template is created with restricted access.
The system prevents unauthorized modifications.
The system encrypts stored templates.
- Modification of Certificate Templates
An admin updates a certificate template.
Unauthorized users attempt modifications but are denied.
- Deletion Restrictions
Only authorized users can delete certificate templates.
Unauthorized users receive an error when attempting deletion.
- Logging of Access and Modifications
The system logs every access and modification of certificate templates.
- Secure Export of Certificate Templates
The system ensures that exported templates are encrypted.
Unauthorized export attempts are blocked.
Feature File¶
@requirement.R_102
@capability.pki
@allure.label.epic:PKI
@allure.label.suite:Certificate_Profiles
Feature: Certificate profile management
Certificate profiles are a protected PKI capability in the current Trustpoint model.
Scenario: Administrator can open certificate profiles
Given the admin user is logged into Trustpoint
When the admin opens the certificate profile list
Then the response status code is 200
R_103¶
This testcase is related to requirement R_103.
Test Idea¶
To test the requirement of creating, viewing, editing, and deleting Domain using the TPC_Web interface, the focus will be on validating the complete lifecycle of domain management through the web platform.
The test would start with an admin user creating a new domain through the web interface. This process involves navigating to the appropriate page, filling out the required fields (e.g., name, issuing ca), and submitting the form. Once the domain is created, the test would verify that it appears in the list of domains and that all details are accurately displayed on its details page.
Finally, the test would validate the deletion process, where the admin removes the domain through the web interface. Once deleted, the system should ensure that the domain is no longer accessible or visible in any lists or details pages. Additional negative tests could confirm appropriate handling when attempting to access or manipulate a non-existent or already-deleted domain.
Feature File¶
@requirement.R_103
@capability.pki
@allure.label.epic:PKI
@allure.label.suite:Domain_Management
Feature: Domain management
Administrators manage domains and their issuing authority through the Trustpoint web interface.
Background:
Given the admin user is logged into Trustpoint
And a local issuing CA named "domain-test-ca" exists
Scenario: Create a domain
When the admin creates domain "factory-floor" using authority "domain-test-ca"
Then the response status code is 200
And domain "factory-floor" exists
And domain "factory-floor" uses that authority
Scenario: Delete a domain
When that authority is assigned to domain "delete-domain"
And the admin deletes domain "delete-domain"
Then the response status code is 200
And domain "delete-domain" no longer exists
Scenario: Reject a duplicate domain name
Given that authority is assigned to domain "existing-domain"
When the admin creates domain "existing-domain" using authority "domain-test-ca"
Then the response status code is 200
And only one domain named "existing-domain" exists
Scenario: Allow a certificate profile in a domain
Given that authority is assigned to domain "profile-domain"
And certificate profile "behave-domain-profile" exists
When the admin allows profile "behave-domain-profile" with alias "factory-profile" in domain "profile-domain"
Then the response status code is 200
And domain "profile-domain" allows profile "behave-domain-profile" with alias "factory-profile"
R_104¶
This testcase is related to requirement R_104.
Test Idea¶
To test the requirement of creating, viewing, editing, and deleting Trust-Store using the TPC_Web interface, the focus will be on validating the complete lifecycle of truststore management through the web platform.
The test would start with an admin user creating a new truststore through the web interface. This process involves navigating to the appropriate page, filling out the required fields (e.g., name, issuing ca), and submitting the form. Once the truststore is created, the test would verify that it appears in the list of truststores and that all details are accurately displayed on its details page.
Finally, the test would validate the deletion process, where the admin removes the truststore through the web interface. Once deleted, the system should ensure that the truststore is no longer accessible or visible in any lists or details pages. Additional negative tests could confirm appropriate handling when attempting to access or manipulate a non-existent or already-deleted truststore.
Feature File¶
@requirement.R_104
@capability.pki
@allure.label.epic:PKI
@allure.label.suite:Truststore_Management
Feature: Truststore management
Administrators can import and remove truststores through the public web interface.
Background:
Given the admin user is logged into Trustpoint
Scenario: Import a TLS truststore
Given a truststore file named "trust_store.pem" from the test data
When the admin creates truststore "behave-tls-truststore" for intended usage "TLS"
Then the response status code is 200
And truststore "behave-tls-truststore" exists
Scenario: Delete an existing truststore
Given a truststore file named "trust_store.pem" from the test data
When the admin creates truststore "delete-truststore" for intended usage "TLS"
Then truststore "delete-truststore" exists
When the admin deletes truststore "delete-truststore"
Then the response status code is 200
And truststore "delete-truststore" no longer exists
Feature Requirements¶
F_001¶
This testcase is related to requirement F_001.
Test Idea¶
To verify that an NTEU (Non-Technical Experienced User) can successfully execute R_001 and R_002 in TPC_Web, we will test the following scenarios:
- NTEU Logs into the System
A valid NTEU logs into the system successfully.
An invalid NTEU login attempt fails.
- Identity Management (R_001)
NTEU creates a digital identity.
NTEU views an existing digital identity.
NTEU edits an existing digital identity.
NTEU deletes a digital identity.
- Zero-Touch Onboarding (R_002)
NTEU initiates device onboarding.
The system automatically uses a zero-touch onboarding protocol.
The onboarding process completes successfully.
- UI Accessibility and User Experience
The UI provides clear instructions and feedback.
Error messages are understandable for an NTEU.
The onboarding and identity management workflows are intuitive.
Feature File¶
@requirement.F_001
@capability.devices
@capability.onboarding
@allure.label.epic:Devices
@allure.label.suite:Onboarding
Feature: Device onboarding entry points
Trustpoint exposes operator-driven onboarding for industrial devices.
Legacy NTEU identity CRUD wording is replaced by current device/onboarding terminology.
Scenario: Administrator can open the onboarding device form
Given the admin user is logged into Trustpoint
When the admin opens the onboarding device creation page
Then the response status code is 200
And the onboarding form contains a protocol selector