Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Fixed tests for cherryPick after the way github token is passed to a step has changed

See: Expensify#13604
  • Loading branch information
radoslawkrzemien committed Nov 8, 2023
1 parent a6dafa6 commit a68fb46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion workflow_tests/assertions/cherryPickAssertions.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const assertCherryPickJobExecuted = (workflowResult, user = 'Dummy Author', pull
'CHERRYPICK',
'Creating Pull Request to manually finish CP',
[],
[{key: 'GITHUB_TOKEN', value: '***'}],
[{key: 'GITHUB_TOKEN', value: 'os_botify_api_token'}],
),
];

Expand Down
2 changes: 1 addition & 1 deletion workflow_tests/mocks/cherryPickMocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const CHERRYPICK__CREATENEWVERSION__STEP_MOCKS = [CHERRYPICK__CREATENEWVERSION__

// cherrypick
const CHERRYPICK__CHERRYPICK__CHECKOUT_STAGING_BRANCH__STEP_MOCK = utils.createMockStep('Checkout staging branch', 'Checking out staging branch', 'CHERRYPICK', ['ref', 'token'], []);
const CHERRYPICK__CHERRYPICK__SET_UP_GIT_FOR_OSBOTIFY__STEP_MOCK = utils.createMockStep('Set up git for OSBotify', 'Setting up git for OSBotify', 'CHERRYPICK', ['GPG_PASSPHRASE'], []);
const CHERRYPICK__CHERRYPICK__SET_UP_GIT_FOR_OSBOTIFY__STEP_MOCK = utils.createMockStep('Set up git for OSBotify', 'Setting up git for OSBotify', 'CHERRYPICK', ['GPG_PASSPHRASE'], [], {OS_BOTIFY_API_TOKEN: 'os_botify_api_token'});
const CHERRYPICK__CHERRYPICK__GET_PREVIOUS_APP_VERSION__STEP_MOCK = utils.createMockStep('Get previous app version', 'Get previous app version', 'CHERRYPICK', ['SEMVER_LEVEL']);
const CHERRYPICK__CHERRYPICK__FETCH_HISTORY_OF_RELEVANT_REFS__STEP_MOCK = utils.createMockStep('Fetch history of relevant refs', 'Fetch history of relevant refs', 'CHERRYPICK');
const CHERRYPICK__CHERRYPICK__GET_VERSION_BUMP_COMMIT__STEP_MOCK = utils.createMockStep('Get version bump commit', 'Get version bump commit', 'CHERRYPICK', [], [], {
Expand Down

0 comments on commit a68fb46

Please sign in to comment.