Page MenuHomeSoftware Heritage

test/api: Check responses for all supported content types
ClosedPublic

Authored by anlambert on Aug 24 2020, 4:55 PM.

Details

Summary

In order to catch possible issues for accepted content types different
from application/json, add helper test functions to also check Web API
HTML responses (documentation) and YAML responses.

Closes T2529

Diff Detail

Repository
rDWAPPS Web applications
Branch
api-test-content-types
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 14757
Build 22744: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 22743: arc lint + arc unit

Event Timeline

Build is green

Patch application report for D3835 (id=13497)

Rebasing onto f513a56b55...

Current branch diff-target is up to date.
Changes applied before test
commit b6820d3fcbee3da2427cefea903d6e4546511b11
Author: Antoine Lambert <antoine.lambert@inria.fr>
Date:   Mon Aug 24 13:14:46 2020 +0200

    test/api: Check responses for all supported content types
    
    In order to catch possible issues for accepted content types different
    from "application/json", add helper test functions to also check Web API
    HTML responses (documentation) and YAML responses.
    
    Closes T2529

See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/342/ for more details.

This revision is now accepted and ready to land.Aug 24 2020, 7:21 PM