Skip to content

Commit

Permalink
Fix link in case of private (#205)
Browse files Browse the repository at this point in the history
* Fix link to testing-farm. Use https instead of http

Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
  • Loading branch information
phracek authored Jul 15, 2024
1 parent a21f980 commit 276e2a8
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/action.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/action.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async function action(pr: PullRequest): Promise<void> {
const tfUrl =
tfScope === 'public'
? 'https://artifacts.dev.testing-farm.io'
: 'http://artifacts.osci.redhat.com/testing-farm';
: 'https://artifacts.osci.redhat.com/testing-farm';

// Generate tmt variables
const tmtEnvVarsParsed = tmtEnvVarsSchema.safeParse(getInput('variables'));
Expand Down
4 changes: 2 additions & 2 deletions tests/action.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -790,13 +790,13 @@ describe('Integration tests - action.ts', () => {
repo: 'testing-farm-as-github-action',
sha: 'd20d0c37d634a5303fa1e02edc9ea281897ba01a',
state: 'success',
target_url: 'http://artifacts.osci.redhat.com/testing-farm/1',
target_url: 'https://artifacts.osci.redhat.com/testing-farm/1',
}
);

// Test summary
await assertSummary(`<h1>Testing Farm as a GitHub Action summary</h1>
<table><tr><th>Compose</th><th>Arch</th><th>Infrastructure State</th><th>Test result</th><th>Link to logs</th></tr><tr><td>${process.env['INPUT_COMPOSE']}</td><td>${process.env['INPUT_ARCH']}</td><td>OK</td><td>success</td><td><a href="http://artifacts.osci.redhat.com/testing-farm/1">test</a> <a href="http://artifacts.osci.redhat.com/testing-farm/1/pipeline.log">pipeline</a></td></tr></table>
<table><tr><th>Compose</th><th>Arch</th><th>Infrastructure State</th><th>Test result</th><th>Link to logs</th></tr><tr><td>${process.env['INPUT_COMPOSE']}</td><td>${process.env['INPUT_ARCH']}</td><td>OK</td><td>success</td><td><a href="https://artifacts.osci.redhat.com/testing-farm/1">test</a> <a href="https://artifacts.osci.redhat.com/testing-farm/1/pipeline.log">pipeline</a></td></tr></table>
`);

expect(mocks.TFError).not.toHaveBeenCalled();
Expand Down

0 comments on commit 276e2a8

Please sign in to comment.