Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EES-XXXX - fixed failing Public API test which was expecting an inval… #5277

Merged

Conversation

duncan-at-hiveit
Copy link
Collaborator

@duncan-at-hiveit duncan-at-hiveit commented Sep 23, 2024

image

This PR:

  • fixes a failing Public API UI test by re-introducing a data file that is invalid for Public API import.
  • refactors existing data file import keywords to reuse as much logic as possible.
  • renames some test names in public_api_restricted.robot to avoid warnings about duplicate test names within a single suite.

@duncan-at-hiveit duncan-at-hiveit force-pushed the EES-XXXX-fix-ui-tests-with-failing-dataset-import branch 2 times, most recently from 396a9ef to a18165b Compare September 23, 2024 12:49
Comment on lines +1 to +2
time_period,time_identifier,geographic_level,country_code,country_name,region_name,region_code,URN,old_la_code,la_name,Estab,school_name,LAEstab,OpenDate,sex_of_school,Phase-type_grouping,type_of_esstablishment,middle_school,all_through_school,hospital_school,Denomination,Denomination_Detail,admissions_policy,district_administrative_code,district_administrative_name,parlc_code,parlc_name,ward_code,ward_name,urban_rural,school_postcode,new_la_code,ethnicity,FSM,Language,headcount,percent_of_pupils
201920,Academic year,Local authority,E92000001,England,East Midlands,E12000004,,856,Leicester,,,,,,Pupil referral unit,,,,,,,,,,,,,,,,E06000016,Asian - Pakistani,Total,Total,0,0
Copy link
Collaborator

@benoutram benoutram Sep 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary to have all of the columns of this data set? I think the more columns there are, the less obvious it is to someone looking at it to realise why it's 'invalid'.

I think at the moment that this is a cut down version of the data set @saicharan2789 added originally, which has multiple issues with it, and while it could be possible that an analyst attempts to create an API data set from something like this, if we are trying to force the processing to fail, why don't we add a small dataset with just one known cause of failure into it?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might also be good to make it clear what the issue with data set is in the name of the file

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed on Slack, this'll be tackled in a subsequent follow-up piece of work which'll allow us to remove the CSV

…id file for Public API import. Refactored various data file import Robot keywords to reuse various checks.
@duncan-at-hiveit duncan-at-hiveit force-pushed the EES-XXXX-fix-ui-tests-with-failing-dataset-import branch from a18165b to 375fc24 Compare September 23, 2024 16:13
@duncan-at-hiveit duncan-at-hiveit merged commit 496779b into dev Sep 23, 2024
2 checks passed
@duncan-at-hiveit duncan-at-hiveit deleted the EES-XXXX-fix-ui-tests-with-failing-dataset-import branch September 23, 2024 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants