Add integration tests for the CLI

Created on 6 November 2025, 2 days ago

Overview

We have unit tests for the CLI using a mocked server. Alongside this, we should have tests that communicate with a running Drupal site and the simple_oauth module to proper test access token expiration and token refresh as well.

This isn't intended to be an end-to-end test which actually calls the CLI against the site, but allowing use to get test coverage of methods that would be hard to mock. For instance the following have no test coverage

- createComponent
- getComponent
- updateComponent
- getGlobalAssetLibrary
- updateGlobalAssetLibrary
- handleApiError for errors not equal to 404
- createApiService

Proposed resolution

CLI Test job should run a Drupal site with Canvas OAuth configured for tests to interact with

User interface changes

πŸ“Œ Task
Status

Active

Version

1.0

Component

CLI Tool

Created by

πŸ‡ΊπŸ‡ΈUnited States mglaman WI, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024