Skip to content

Commit

Permalink
[UT] Update testing URL value to avoid linkchecker failure
Browse files Browse the repository at this point in the history
Signed-off-by: Xinrui Bai <xinruiba@amazon.com>
  • Loading branch information
xinruiba committed Mar 11, 2024
1 parent 75a1344 commit 8e0a1ca
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/plugins/data_source/server/routes/test_connection.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe(`Test connection ${URL}`, () => {
let dataSourceServiceSetupMock: DataSourceServiceSetup;
let authRegistryPromiseMock: Promise<IAuthenticationMethodRegistery>;
const dataSourceAttr = {
endpoint: 'https://test.com',
endpoint: 'https://sometesturl.com',
auth: {
type: AuthType.UsernamePasswordType,
credentials: {
Expand All @@ -43,31 +43,31 @@ describe(`Test connection ${URL}`, () => {
};

const dataSourceAttrMissingCredentialForNoAuth = {
endpoint: 'https://test.com',
endpoint: 'https://sometesturl.com',
auth: {
type: AuthType.NoAuth,
credentials: {},
},
};

const dataSourceAttrMissingCredentialForBasicAuth = {
endpoint: 'https://test.com',
endpoint: 'https://sometesturl.com',
auth: {
type: AuthType.UsernamePasswordType,
credentials: {},
},
};

const dataSourceAttrMissingCredentialForSigV4Auth = {
endpoint: 'https://test.com',
endpoint: 'https://sometesturl.com',
auth: {
type: AuthType.SigV4,
credentials: {},
},
};

const dataSourceAttrPartialCredentialForSigV4Auth = {
endpoint: 'https://test.com',
endpoint: 'https://sometesturl.com',
auth: {
type: AuthType.SigV4,
credentials: {
Expand All @@ -78,7 +78,7 @@ describe(`Test connection ${URL}`, () => {
};

const dataSourceAttrPartialCredentialForBasicAuth = {
endpoint: 'https://test.com',
endpoint: 'https://sometesturl.com',
auth: {
type: AuthType.UsernamePasswordType,
credentials: {
Expand All @@ -88,7 +88,7 @@ describe(`Test connection ${URL}`, () => {
};

const dataSourceAttrForSigV4Auth = {
endpoint: 'https://test.com',
endpoint: 'https://sometesturl.com',
auth: {
type: AuthType.SigV4,
credentials: {
Expand All @@ -101,7 +101,7 @@ describe(`Test connection ${URL}`, () => {
};

const dataSourceAttrForRegisteredAuthWithCredentials = {
endpoint: 'https://test.com',
endpoint: 'https://sometesturl.com',
auth: {
type: 'Some Registered Type',
credentials: {
Expand All @@ -112,22 +112,22 @@ describe(`Test connection ${URL}`, () => {
};

const dataSourceAttrForRegisteredAuthWithEmptyCredentials = {
endpoint: 'https://test.com',
endpoint: 'https://sometesturl.com',
auth: {
type: 'Some Registered Type',
credentials: {},
},
};

const dataSourceAttrForRegisteredAuthWithoutCredentials = {
endpoint: 'https://test.com',
endpoint: 'https://sometesturl.com',
auth: {
type: 'Some Registered Type',
},
};

const dataSourceAttrForRegisteredAuthWithNoAuthType = {
endpoint: 'https://test.com',
endpoint: 'https://sometesturl.com',
auth: {
type: AuthType.NoAuth,
credentials: {
Expand All @@ -137,15 +137,15 @@ describe(`Test connection ${URL}`, () => {
};

const dataSourceAttrForRegisteredAuthWithBasicAuthType = {
endpoint: 'https://test.com',
endpoint: 'https://sometesturl.com',
auth: {
type: AuthType.UsernamePasswordType,
credentials: {},
},
};

const dataSourceAttrForRegisteredAuthWithSigV4AuthType = {
endpoint: 'https://test.com',
endpoint: 'https://sometesturl.com',
auth: {
type: AuthType.SigV4,
credentials: {},
Expand Down

0 comments on commit 8e0a1ca

Please sign in to comment.