Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(datasource/galaxy): use new hostname for existing API implementation #25191

Merged
merged 1 commit into from
Oct 13, 2023
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`modules/datasource/galaxy-collection/index getReleases processes real data 1`] = `
{
"registryUrl": "https://galaxy.ansible.com/",
"registryUrl": "https://old-galaxy.ansible.com/",
"releases": [
{
"dependencies": {},
Expand Down Expand Up @@ -41,7 +41,7 @@ exports[`modules/datasource/galaxy-collection/index getReleases processes real d

exports[`modules/datasource/galaxy-collection/index getReleases returns only valid versions if a version detail fails 1`] = `
{
"registryUrl": "https://galaxy.ansible.com/",
"registryUrl": "https://old-galaxy.ansible.com/",
"releases": [
{
"dependencies": {},
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/datasource/galaxy-collection/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const communityKubernetesDetails0111 = Fixtures.get(
'community_kubernetes_version_details_0.11.1.json'
);

const baseUrl = 'https://galaxy.ansible.com';
const baseUrl = 'https://old-galaxy.ansible.com';

const datasource = GalaxyCollectionDatasource.id;

Expand Down
2 changes: 1 addition & 1 deletion lib/modules/datasource/galaxy-collection/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class GalaxyCollectionDatasource extends Datasource {

override readonly customRegistrySupport = false;

override readonly defaultRegistryUrls = ['https://galaxy.ansible.com/'];
override readonly defaultRegistryUrls = ['https://old-galaxy.ansible.com/'];

override readonly defaultVersioning = pep440Versioning.id;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

exports[`modules/datasource/galaxy/index getReleases processes real data 1`] = `
{
"dependencyUrl": "https://galaxy.ansible.com/yatesr/timezone",
"registryUrl": "https://galaxy.ansible.com/",
"dependencyUrl": "https://old-galaxy.ansible.com/yatesr/timezone",
"registryUrl": "https://old-galaxy.ansible.com/",
"releases": [
{
"releaseTimestamp": "2015-11-17T00:43:42.000Z",
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/datasource/galaxy/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as httpMock from '../../../../test/http-mock';
import { EXTERNAL_HOST_ERROR } from '../../../constants/error-messages';
import { GalaxyDatasource } from '.';

const baseUrl = 'https://galaxy.ansible.com/';
const baseUrl = 'https://old-galaxy.ansible.com/';

describe('modules/datasource/galaxy/index', () => {
describe('getReleases', () => {
Expand Down
2 changes: 1 addition & 1 deletion lib/modules/datasource/galaxy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class GalaxyDatasource extends Datasource {

override readonly customRegistrySupport = false;

override readonly defaultRegistryUrls = ['https://galaxy.ansible.com/'];
override readonly defaultRegistryUrls = ['https://old-galaxy.ansible.com/'];

override readonly defaultVersioning = pep440Versioning.id;

Expand Down