integration: update the gitlab config mandatory fields to match reality
This commit is contained in:
@@ -37,8 +37,10 @@ describe('GitLabPreparer', () => {
|
||||
jest.clearAllMocks();
|
||||
});
|
||||
const preparer = GitlabPreparer.fromConfig({
|
||||
host: 'gitlab.com',
|
||||
host: '<ignored>',
|
||||
token: 'fake-token',
|
||||
apiBaseUrl: '<ignored>',
|
||||
baseUrl: '<ignored>',
|
||||
});
|
||||
|
||||
it(`calls the clone command with the correct arguments for a repository`, async () => {
|
||||
|
||||
@@ -57,6 +57,7 @@ describe('GitLab Publisher', () => {
|
||||
const publisher = await GitlabPublisher.fromConfig(
|
||||
{
|
||||
host: 'gitlab.com',
|
||||
apiBaseUrl: 'https://gitlab.com/api/v4',
|
||||
token: 'fake-token',
|
||||
baseUrl: 'https://gitlab.hosted.com',
|
||||
},
|
||||
@@ -105,7 +106,9 @@ describe('GitLab Publisher', () => {
|
||||
const publisher = await GitlabPublisher.fromConfig(
|
||||
{
|
||||
host: 'gitlab.com',
|
||||
apiBaseUrl: 'https://gitlab.com/api/v4',
|
||||
token: 'fake-token',
|
||||
baseUrl: 'https://gitlab.com',
|
||||
},
|
||||
{ repoVisibility: 'public' },
|
||||
);
|
||||
|
||||
@@ -126,6 +126,8 @@ export class Publishers implements PublisherBuilder {
|
||||
{
|
||||
token: config.getOptionalString('scaffolder.gitlab.token') ?? '',
|
||||
host: integration.config.host,
|
||||
apiBaseUrl: `<ignored>`,
|
||||
baseUrl: `https://${integration.config.host}`,
|
||||
},
|
||||
{ repoVisibility },
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user