Skip to content
This repository has been archived by the owner on Oct 27, 2023. It is now read-only.

PD-30979: Upgrade github-connector with a view to containerisation #29

Open
wants to merge 26 commits into
base: master
Choose a base branch
from

Conversation

aRobinson-R7
Copy link
Contributor

This PR is to create a containerised environment for testing the github-connector and for possibly deploying it as a container.
It is also to make the following upgrades:

  • Ruby v3
  • Rails v6
  • From statemachine gem (no longer supported and incompatible with Ruby v6) to state-machines
  • FactoryGirl to FactoryBot

Most changes in this PR are for these upgrades and to make the respective RSpec tests successfully pass.
There is an ongoing issue with the email tests which will require further investigation.

Updated the app/model/user file to fix some method aliasing - the tests were expecting to call the added find_for_ldap_authentication method, before calling the parent method. They were instead testing the "normalise" method, which returned the normalised username, which should not be the expected functionality in the test.

Left in some rendering optional code which can be removed once testing is complete, if it's not needed.

…e statemachine gem with state-machines as it is no longer maintained. Remove therubyracer gems as no longer required. Replace FactoryGirl with FactoryBot

Signed-off-by: aRobinson-R7 <[email protected]>
…e, can be removed after further testing

Signed-off-by: aRobinson-R7 <[email protected]>
…us Rails versions to the migration schemas

Signed-off-by: aRobinson-R7 <[email protected]>
…ing to access the modified find_for_ldap_authentication method, rather than normalize_ldap_username - calling the parent find_for_ldap_authentication method once normalising the name

Signed-off-by: aRobinson-R7 <[email protected]>
…or, which has been replaced with Net::LDAP::Error

Signed-off-by: aRobinson-R7 <[email protected]>
Signed-off-by: aRobinson-R7 <[email protected]>
…rameters as they are. Required for latest version due to method signature change

Signed-off-by: aRobinson-R7 <[email protected]>
…rking correctly and tests were failing

Signed-off-by: aRobinson-R7 <[email protected]>
…was added to the deliver_later queue

Signed-off-by: aRobinson-R7 <[email protected]>
@aRobinson-R7 aRobinson-R7 added dependencies Pull requests that update a dependency file enhancement labels Nov 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant