Issue #4091
closed
The master branch is failing
Status:
CLOSED - CURRENTRELEASE
- Triaged changed from No to Yes
- Sprint set to Sprint 44
- Tags Pulp 3 added
Looks like with DRF 3.8, you get a json response when you hit the base url (/pulp/api/v3/). Now with 3.9, we get:
info:
description: ''
title: Pulp API
version: ''
openapi: 3.0.0
paths: {}
servers:
- url: http://localhost:8000/pulp/api/v3/
pulp-smash is hitting this base url to test authentication and they are expecting back json.
From the release notes that dalley posted:
The get_schema_view(...) method now defaults to OpenAPI YAML, with CoreJSON as a secondary option if it is selected via HTTP content negotiation.
I don't think using the base_url is a good test for authentication. It doesn't require a user necessarily and it's not something we've intentionally created in our application. I think something like /pulp/api/v3/users/ might be better.
- Status changed from NEW to POST
- Assignee set to daviddavis
- Status changed from POST to MODIFIED
- Sprint/Milestone set to 3.0.0
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Also available in: Atom
PDF
Use /pulp/api/v3/users to test auth
I don't think using the /pulp/api/v3/ is a good test for authentication. It doesn't require a user necessarily and it's not something we've intentionally created in our application. I think something like /pulp/api/v3/users/ might be better.
fixes #4091 https://pulp.plan.io/issues/4091