Merge pull request #25123 from anicke/gitiles-config
feat(gerrit): make the gitilesBaseUrl config mandatory
This commit is contained in:
@@ -166,9 +166,11 @@ describe('GerritEntityProvider', () => {
|
||||
gerrit: [
|
||||
{
|
||||
host: 'gerrit1.com',
|
||||
gitilesBaseUrl: 'https://gerrit1.com/gitiles',
|
||||
},
|
||||
{
|
||||
host: 'gerrit2.com',
|
||||
gitilesBaseUrl: 'https://gerrit2.com/gitiles',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -201,6 +203,7 @@ describe('GerritEntityProvider', () => {
|
||||
gerrit: [
|
||||
{
|
||||
host: 'gerrit1.com',
|
||||
gitilesBaseUrl: 'https://gerrit1.com/gitiles',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -42,6 +42,7 @@ describe('publish:gerrit', () => {
|
||||
gerrit: [
|
||||
{
|
||||
host: 'gerrithost.org',
|
||||
gitilesBaseUrl: 'https://gerrithost.org/gitiles',
|
||||
username: 'gerrituser',
|
||||
password: 'usertoken',
|
||||
},
|
||||
@@ -133,7 +134,7 @@ describe('publish:gerrit', () => {
|
||||
);
|
||||
expect(mockContext.output).toHaveBeenCalledWith(
|
||||
'repoContentsUrl',
|
||||
'https://gerrithost.org/repo/+/refs/heads/master',
|
||||
'https://gerrithost.org/gitiles/repo/+/refs/heads/master',
|
||||
);
|
||||
});
|
||||
|
||||
@@ -184,7 +185,7 @@ describe('publish:gerrit', () => {
|
||||
);
|
||||
expect(mockContext.output).toHaveBeenCalledWith(
|
||||
'repoContentsUrl',
|
||||
'https://gerrithost.org/repo/+/refs/heads/master',
|
||||
'https://gerrithost.org/gitiles/repo/+/refs/heads/master',
|
||||
);
|
||||
});
|
||||
|
||||
@@ -235,7 +236,7 @@ describe('publish:gerrit', () => {
|
||||
);
|
||||
expect(mockContext.output).toHaveBeenCalledWith(
|
||||
'repoContentsUrl',
|
||||
'https://gerrithost.org/repo/+/refs/heads/master',
|
||||
'https://gerrithost.org/gitiles/repo/+/refs/heads/master',
|
||||
);
|
||||
});
|
||||
|
||||
@@ -286,7 +287,7 @@ describe('publish:gerrit', () => {
|
||||
);
|
||||
expect(mockContext.output).toHaveBeenCalledWith(
|
||||
'repoContentsUrl',
|
||||
'https://gerrithost.org/repo/+/refs/heads/main',
|
||||
'https://gerrithost.org/gitiles/repo/+/refs/heads/main',
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ describe('publish:gerrit:review', () => {
|
||||
gerrit: [
|
||||
{
|
||||
host: 'gerrithost.org',
|
||||
gitilesBaseUrl: 'https://gerrithost.org/gitiles',
|
||||
username: 'gerrituser',
|
||||
password: 'usertoken',
|
||||
},
|
||||
@@ -77,7 +78,7 @@ describe('publish:gerrit:review', () => {
|
||||
|
||||
expect(mockContext.output).toHaveBeenCalledWith(
|
||||
'repoContentsUrl',
|
||||
'https://gerrithost.org/repo/+/refs/heads/master',
|
||||
'https://gerrithost.org/gitiles/repo/+/refs/heads/master',
|
||||
);
|
||||
expect(mockContext.output).toHaveBeenCalledWith(
|
||||
'reviewUrl',
|
||||
@@ -109,7 +110,7 @@ describe('publish:gerrit:review', () => {
|
||||
|
||||
expect(mockContext.output).toHaveBeenCalledWith(
|
||||
'repoContentsUrl',
|
||||
'https://gerrithost.org/repo/+/refs/heads/master',
|
||||
'https://gerrithost.org/gitiles/repo/+/refs/heads/master',
|
||||
);
|
||||
expect(mockContext.output).toHaveBeenCalledWith(
|
||||
'reviewUrl',
|
||||
@@ -141,7 +142,7 @@ describe('publish:gerrit:review', () => {
|
||||
|
||||
expect(mockContext.output).toHaveBeenCalledWith(
|
||||
'repoContentsUrl',
|
||||
'https://gerrithost.org/repo/+/refs/heads/master',
|
||||
'https://gerrithost.org/gitiles/repo/+/refs/heads/master',
|
||||
);
|
||||
expect(mockContext.output).toHaveBeenCalledWith(
|
||||
'reviewUrl',
|
||||
@@ -170,7 +171,7 @@ describe('publish:gerrit:review', () => {
|
||||
|
||||
expect(mockContext.output).toHaveBeenCalledWith(
|
||||
'repoContentsUrl',
|
||||
'https://gerrithost.org/repo/+/refs/heads/develop',
|
||||
'https://gerrithost.org/gitiles/repo/+/refs/heads/develop',
|
||||
);
|
||||
expect(mockContext.output).toHaveBeenCalledWith(
|
||||
'reviewUrl',
|
||||
@@ -199,7 +200,7 @@ describe('publish:gerrit:review', () => {
|
||||
|
||||
expect(mockContext.output).toHaveBeenCalledWith(
|
||||
'repoContentsUrl',
|
||||
'https://gerrithost.org/repo/+/refs/heads/master',
|
||||
'https://gerrithost.org/gitiles/repo/+/refs/heads/master',
|
||||
);
|
||||
expect(mockContext.output).toHaveBeenCalledWith(
|
||||
'reviewUrl',
|
||||
@@ -231,7 +232,7 @@ describe('publish:gerrit:review', () => {
|
||||
|
||||
expect(mockContext.output).toHaveBeenCalledWith(
|
||||
'repoContentsUrl',
|
||||
'https://gerrithost.org/repo/+/refs/heads/develop',
|
||||
'https://gerrithost.org/gitiles/repo/+/refs/heads/develop',
|
||||
);
|
||||
expect(mockContext.output).toHaveBeenCalledWith(
|
||||
'reviewUrl',
|
||||
|
||||
@@ -33,6 +33,7 @@ describe('publish:gerrit:review', () => {
|
||||
gerrit: [
|
||||
{
|
||||
host: 'gerrithost.org',
|
||||
gitilesBaseUrl: 'https://gerrithost.org/gitiles',
|
||||
username: 'gerrituser',
|
||||
password: 'usertoken',
|
||||
},
|
||||
@@ -104,7 +105,7 @@ describe('publish:gerrit:review', () => {
|
||||
|
||||
expect(mockContext.output).toHaveBeenCalledWith(
|
||||
'repoContentsUrl',
|
||||
'https://gerrithost.org/repo/+/refs/heads/master',
|
||||
'https://gerrithost.org/gitiles/repo/+/refs/heads/master',
|
||||
);
|
||||
expect(mockContext.output).toHaveBeenCalledWith(
|
||||
'reviewUrl',
|
||||
|
||||
Reference in New Issue
Block a user