Skip to content

Commit

Permalink
add test to new test_log_url output
Browse files Browse the repository at this point in the history
  • Loading branch information
zmiklank committed Mar 8, 2024
1 parent 5eb30f5 commit ea32452
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/action.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,9 @@ describe('Integration tests - action.ts', () => {
expect(process.env['OUTPUT_REQUEST_URL']).toMatchInlineSnapshot(
'"https://api.dev.testing-farm.io/requests/1"'
);
expect(process.env['OUTPUT_TEST_LOG_URL']).toMatchInlineSnapshot(
'"https://artifacts.dev.testing-farm.io/1"'
);

// First call to request PR details, next two calls for setting the status
expect(mocks.request).toHaveBeenCalledTimes(1);
Expand Down Expand Up @@ -300,6 +303,9 @@ describe('Integration tests - action.ts', () => {
expect(process.env['OUTPUT_REQUEST_URL']).toMatchInlineSnapshot(
'"https://api.dev.testing-farm.io/requests/1"'
);
expect(process.env['OUTPUT_TEST_LOG_URL']).toMatchInlineSnapshot(
'"https://artifacts.dev.testing-farm.io/1"'
);

// First call to request PR details, next two calls for setting the status
expect(mocks.request).toHaveBeenCalledTimes(3);
Expand Down Expand Up @@ -380,6 +386,9 @@ describe('Integration tests - action.ts', () => {
expect(process.env['OUTPUT_REQUEST_URL']).toMatchInlineSnapshot(
'"https://api.dev.testing-farm.io/requests/1"'
);
expect(process.env['OUTPUT_TEST_LOG_URL']).toMatchInlineSnapshot(
'"https://artifacts.dev.testing-farm.io/1"'
);

// First call to request PR details, next two calls for setting the status
expect(mocks.request).toHaveBeenCalledTimes(3);
Expand Down Expand Up @@ -520,6 +529,9 @@ describe('Integration tests - action.ts', () => {
expect(process.env['OUTPUT_REQUEST_URL']).toMatchInlineSnapshot(
'"https://api.dev.testing-farm.io/requests/1"'
);
expect(process.env['OUTPUT_TEST_LOG_URL']).toMatchInlineSnapshot(
'"https://artifacts.dev.testing-farm.io/1"'
);

// First call to request PR details, next two calls for setting the status
expect(mocks.request).toHaveBeenCalledTimes(3);
Expand Down Expand Up @@ -595,6 +607,9 @@ describe('Integration tests - action.ts', () => {
expect(process.env['OUTPUT_REQUEST_URL']).toMatchInlineSnapshot(
'"https://api.dev.testing-farm.io/requests/1"'
);
expect(process.env['OUTPUT_TEST_LOG_URL']).toMatchInlineSnapshot(
'"https://artifacts.dev.testing-farm.io/1"'
);

// First call to request PR details, next two calls for setting the status, the last call is for issue comment
expect(mocks.request).toHaveBeenCalledTimes(4);
Expand Down

0 comments on commit ea32452

Please sign in to comment.