test(unit_test): check for broken links #22
Merged
jon_nfc
merged 26 commits from 2022-08-28 08:17:18 +00:00
7-unit-test-dead-links
into development
Labels
Clear labels
Bug
Used in discussion about a bug in comments or commits
CVE-2023-5764
Denotes items related to the CVE
CodeReview
Used in comments (issues/MR/commits) to denote code review related items
Documentation
Documentation items
Feature
Used in discussion about a Feature in comments or commits
Lint
Used in comments (issues/MR/commits) to denote lint tasks todo, done, fixed
Privacy
Used in comments (issues/MR/commits) to denote privacy related items
Security
Used in comments (issues/MR/commits) to denote Security related items
breaking-change
label used to denote that the issue/Merge Request does/will introduce a breaking change
bug::reproducable
Given to an issue when the bug has been confirmed as re-producable. Can also be used in comments and commits.
bug::unable to reproduce
Given to an issue when the bug that is not able to be reproduced. Can also be used in comments and commits.
code review::complete
code review::not started
code review::rejected
code review::underway
difficulty::Full Development
Level 3. Difficulty representing that the task to complete must be planned and created.
difficulty::Good First Issue
Level 1. Difficulty representing that the task is very simple and with limited knowledge can be completed.
difficulty::Prior Knowledge
Level 2. Difficulty representing that the task requires some prior knowledge of either the technology or the project for task completion.
documentation::complete
Issues, Merge Requests
documentation::no change required
Issues, Merge Requests and used to denote no documentation changes required
documentation::not started
Issues, Merge Requests
documentation::stalled
Issues, Merge Requests
documentation::underway
Issues, Merge Requests
impact::0
impact::1
impact::2
impact::3
impact::4
impact::5
ops::ansible-roles
OPS project tag
ops::automation
ops::gitlab-ci
OPS project tag
ops::marcas
OPS project tag
ops::python-gitlab-management
OPS project tag
ops::website
priority::0
priority::1
priority::2
priority::3
priority::4
priority::5
stage::Ready for Development
stage::develop
Stage for use in Issues and Merge Requests. Can also be used in discussion in comments and commits
stage::feedback required
stage::planning
Stage for use in Issues and Merge Requests. Can also be used in discussion in comments and commits
stage::test
Stage for use in Issues and Merge Requests. Can also be used in discussion in comments and commits
stale
Label given to issues/merge requests that are considered stale due to no collaboration and is a mark for closure.
triage
Tag given to issues/merge requests requiring triaging by the team.
triage::not_confidential
This tag is given by the triage bot so that URLs can be added to an issue/comment. A triage policy for NFC wide should remove this label.
type::CI / CD
type::automation
This type is used to denote an automation job
type::bug
Type for Issues and Merge Requests. Can also be used in discussion in comments and commits
type::compliance
type::discussion
Type for Issues. Can also be used in discussion in comments.
type::documentation
Type for Issues and Merge Requests. Can also be used in discussion in comments and commits
type::feature
type for Issues and Merge Requests. Can also be used in discussion in comments and commits
type::invalid
label given to tickets that require no action or are deem as invalid.
type::quality assurance
Type for Issues and Merge Requests. Can also be used in discussion in comments and commits
type::question
Type for Issues. Can also be used in discussion in comments.
type::security
Type for Issues and Merge Requests.
type::specification
Design specification
workflow::complete
Issues, Merge Requests
workflow::not ready
workflow::not ready::blocked
workflow::not started
Issues, Merge Requests
workflow::ready to commence
Issues, Merge Requests
workflow::stalled
Label given to issues/merge requests where no work has occured in x days iaw triage policy.
workflow::underway
Issues, Merge Requests
workflow::underway::develop
Area/CI-CD
Documentation changes
Area/Documentation
Documentation changes
Area/Security
This is security issue
Area/Testing
Issue or pull request related to testing
Bug
Failure to Confirm
Bug exists due to not confirming/testing code
Bug
Regression
THe bug is a regression of a feature
Bug
To be Confirmed
This bug is not confirmed
Bug
Unable to Reproduce
A developer can not re-create/re-produce the bug
Compat/Breaking
Breaking change that won't be backward compatible
Impact
Critical
1
The impact is critical in that it is blocking or prevents usage.
Impact
High
2
The impact requires that changes be made for continuted usage.
Impact
Low
4
The impact requires the user approach from a different angle for continued usage.
Impact
Medium
3
The impact requires a workaround for continued usage.
Impact
Very Low
5
The impact has a slight effect on usage.
Priority
High
2
The priority is high
Priority
Low
4
The priority is low
Priority
Medium
3
The priority is medium
Priority
Very High
1
The priority is critical
Priority
Very Low
5
The priority is very low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Type
Bug
Something is not working
Type
Epic
Epic User Story
Type
Feature
Feature / Module
Type
Incident
Something occured related to a service
Type
RFE
Request for Enhancement
Type
Task
A work item that must be done
Urgency
Low
4
Prioritize this amoungst your list of things to do.
Urgency
Major
1
Urgency is so high it should have been dealt with last week.
Urgency
Medium
3
Start as soon as possible.
Urgency
Very High
2
Urgency is high enough to warrant near immediate commencement.
Urgency
Very Low
5
Add this to your list of things to do.
No Label
Milestone
No items
No Milestone
Projects
Clear projects
No project
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: nofusscomputing/website#22
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
No description provided.
Delete Branch "7-unit-test-dead-links"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📝 Notes
break this code up so that the fetching of hyperlinks is part of the data collection in
conftest.py
.The unit test should just use the data.
✅ test page load all resources
all internal links - valid and work
test data structure from note in !15
found a working one
load external request links:[link for key in data.page_load_resource_links for link in key['links']] if link['protocol'][0:4] == "http"
load all links[link for key in data.page_load_resource_links for link in key['links']]
🔗 References
Related #3
Closes #7
child of nofusscomputing/ops#41
👷 Tasks
Dead Link Check internal and external (Task from #7)
all links from page must be checked to ensure they work
#7 closes in commit message
add a
deploy
stage afterbuild
stage and beforetest
stage where a gitlabpages
job runs to deploy the site.only deploys when not on
master
branchneeds
added todeploy
job andtest
job so they are chainedupdate sitemap template to use the git updated date if module installed.
requested review from @jon_nfc
assigned to @jon_nfc
changed the description
changed the description
changed the description
changed the description
added 10 commits
76c51109
- test(data): created a function to parse url to dictd13cc5bd
- test(data): add fetching of all hyperlinksebc17c12
- test(unit_test_data): chrome driver should not be a class object.8fd0e8ae
- test(unit_test_data): include the url in url dict26af6031
- test(unit_test_data): web driver to be class obj23dc5894
- test(privacy): clear the class datab9f56c21
- test(privacy): print the test data to stdout276d1219
- test(dead_link_check): test for dead hyperlinksfb7555d6
- ci(unit_test): capture stdout in JUnit ReportCompare with previous version
added 1 commit
0f802b4b
- ci(unit_test): include requests in test pipfileCompare with previous version
marked the checklist item #7 closes in commit message as completed
added 1 commit
2fde2fb5
- test(ssl_hyperlinks_only): Test addedCompare with previous version
added 2 commits
7fcc3caf
- ci(stages): deploy job to occur after build960f2630
- ci(tests): rijigged the job orderCompare with previous version
added 1 commit
de81c19b
- ci(static_pages): dont run build if MD lint failsCompare with previous version
added 1 commit
c634b122
- ci: ensure placeholder test runs and passesCompare with previous version
added 1 commit
fb940138
- ci: command only required for unit testCompare with previous version
marked the checklist item add a
deploy
stage afterbuild
stage and beforetest
stage where a gitlabpages
job runs to deploy the site. as completedmarked the checklist item only deploys when not on
master
branch as completedmarked the checklist item
needs
added todeploy
job andtest
job so they are chained as completedadded 3 commits
e6d6cc99
- build(requirements): added wheel for module build0c8318da
- feat(vscode): added build task568c560d
- feat(vscode): added pytest settingsCompare with previous version
added 1 commit
538aeb42
- fix(vscode): use correct params for testsCompare with previous version
added 1 commit
aa91e357
- feat(sitemap): git_revision_date for page changeCompare with previous version
marked the checklist item update sitemap template to use the git updated date if module installed. as completed
added 1 commit
edee74f9
- test: named test to refelect its function.Compare with previous version
resolved all threads
added 1 commit
9f8ae06d
- ci(pytest): fix to collect junit reportCompare with previous version
resolved all threads
changed this line in version 14 of the diff
added 1 commit
4e2def5b
- ci(unit_test): copy report to right locationCompare with previous version
changed this line in version 15 of the diff
changed this line in version 15 of the diff
resolved all threads
added 1 commit
998fc911
- ci(integration_test): disable job until developedCompare with previous version
resolved all threads
changed this line in version 16 of the diff
added 1 commit
a436fa5c
- ci: amend to last commitCompare with previous version
added 7h 15m of time spent
task
Dead Link Check internal and external (Task from #7)
internal check done.✅ external links done.
internal check will still have to be done.
idea
all hyperlinks that use protocol file, can be checked against the source files. reconstructing the file path from the url and checking if in the
data[source_files]
approved this merge request
mentioned in commit
06372cf8f1
mentioned in issue #7
mentioned in merge request !3
changed time estimate to 7h 20m