Skip to content

Commit

Permalink
Merge pull request #2187 from sherlock-project/fix-tests
Browse files Browse the repository at this point in the history
Fixed tests due to broken sites
  • Loading branch information
sdushantha authored Jun 24, 2024
2 parents 94b0afa + e8569b6 commit 58df6bb
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ lib/
pyvenv.cfg
poetry.lock

# Regression Testing
.coverage
.tox/

# Editor Configurations
.vscode/
.idea/
Expand Down
14 changes: 14 additions & 0 deletions docs/removed-sites.md
Original file line number Diff line number Diff line change
Expand Up @@ -1867,4 +1867,18 @@ __2024-04-24 :__ BCF seems to have gone defunct. Uncertain.
"urlMain": "https://bitcoinforum.com",
"username_claimed": "bitcoinforum.com"
}
```

## Penetestit

As of 24.06.2024, Pentestit returns a 403. This is most likely due to a new site structures

```json
"labpentestit": {
"errorType": "response_url",
"errorUrl": "https://lab.pentestit.ru/{}",
"url": "https://lab.pentestit.ru/profile/{}",
"urlMain": "https://lab.pentestit.ru/",
"username_claimed": "CSV"
}
```
7 changes: 0 additions & 7 deletions sherlock/resources/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -2579,13 +2579,6 @@
"urlMain": "https://www.kwork.ru/",
"username_claimed": "blue"
},
"labpentestit": {
"errorType": "response_url",
"errorUrl": "https://lab.pentestit.ru/{}",
"url": "https://lab.pentestit.ru/profile/{}",
"urlMain": "https://lab.pentestit.ru/",
"username_claimed": "CSV"
},
"last.fm": {
"errorType": "status_code",
"url": "https://last.fm/user/{}",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_probes.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def test_known_positives_via_status_code(self, sites_info, site, username):
# Known positives should only use sites trusted to be reliable and unchanging
@pytest.mark.parametrize('site,username',[
('BodyBuilding', 'blue'),
('labpentestit', 'CSV'),
('devRant', 'blue'),
])
def test_known_positives_via_response_url(self, sites_info, site, username):
assert simple_query(sites_info=sites_info, site=site, username=username) is QueryStatus.CLAIMED
Expand Down

0 comments on commit 58df6bb

Please sign in to comment.