Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/api.authz.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ describe('API authz tests', () => {
test('team member can get internal repository urls', async () => {
jest.spyOn(otomiStack, 'getInternalRepoUrls').mockResolvedValue([])
await agent
.get(`/v1/internalRepoUrls`)
.get(`/v2/internalRepoUrls`)
.query({ teamId })
.set('Authorization', `Bearer ${teamMemberToken}`)
.expect(200)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import Debug from 'debug'
import { Response } from 'express'
import { OpenApiRequestExt } from 'src/otomi-models'

const debug = Debug('otomi:api:v1:internalRepoUrls')
const debug = Debug('otomi:api:v2:internalRepoUrls')

/**
* GET /v1/internalRepoUrls
* GET /v2/internalRepoUrls
* Get internal repository URLs
*/
export const getInternalRepoUrls = async (req: OpenApiRequestExt, res: Response): Promise<void> => {
Expand Down
4 changes: 2 additions & 2 deletions src/openapi/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2805,10 +2805,10 @@ paths:
schema:
$ref: '#/components/schemas/TestRepoConnect'

/v1/internalRepoUrls:
/v2/internalRepoUrls:
get:
operationId: getInternalRepoUrls
x-eov-operation-handler: v1/internalRepoUrls
x-eov-operation-handler: v2/internalRepoUrls
x-aclSchema: InternalRepoUrls
parameters:
- name: teamId
Expand Down
Loading