fix tests
This commit is contained in:
@@ -22,12 +22,12 @@ jobs:
|
|||||||
./tests/run.sh
|
./tests/run.sh
|
||||||
|
|
||||||
- name: Commit & Push changes
|
- name: Commit & Push changes
|
||||||
uses: cpina/github-action-push-to-another-repository@cp_instead_of_deleting
|
uses: dmnemec/copy_file_to_another_repo_action@v1.0.4
|
||||||
env:
|
env:
|
||||||
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
|
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
|
||||||
with:
|
with:
|
||||||
source-directory: "reports"
|
source_file: 'reports'
|
||||||
destination-github-username: "kodiondemand"
|
destination_repo: 'kodiondemand/kodiondemand.github.io'
|
||||||
destination-repository-name: "kodiondemand.github.io"
|
user_email: 'tests@kod.bot'
|
||||||
user-email: "tests@kod.bot"
|
user_name: 'bot'
|
||||||
commit-message: "Test suite"
|
commit_message: 'Test suite'
|
||||||
+1
-1
@@ -418,7 +418,7 @@ def downloadpage(url, **opt):
|
|||||||
response['data'] = response['data'].decode('ISO-8859-1')
|
response['data'] = response['data'].decode('ISO-8859-1')
|
||||||
|
|
||||||
if req.headers.get('Server', '').startswith('cloudflare') and response_code in [429, 503, 403]\
|
if req.headers.get('Server', '').startswith('cloudflare') and response_code in [429, 503, 403]\
|
||||||
and not opt.get('CF', False) and 'Cloudflare Ray ID' in response['data']:
|
and not opt.get('CF', False) and 'Ray ID' in response['data']:
|
||||||
logger.debug("CF retry... for domain: %s" % domain)
|
logger.debug("CF retry... for domain: %s" % domain)
|
||||||
from lib import proxytranslate
|
from lib import proxytranslate
|
||||||
gResp = proxytranslate.process_request_proxy(url)
|
gResp = proxytranslate.process_request_proxy(url)
|
||||||
|
|||||||
@@ -126,11 +126,6 @@
|
|||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
<!-- <tr>-->
|
|
||||||
<!-- <td colspan="3">-->
|
|
||||||
<!-- Total: {{ summaries[test_case_name].total }}, Pass: {{ summaries[test_case_name].success }}{% if summaries[test_case_name].failure %}, Fail: {{ summaries[test_case_name].failure }}{% endif %}{% if summaries[test_case_name].error %}, Error: {{ summaries[test_case_name].error }}{% endif %}{% if summaries[test_case_name].skip %}, Skip: {{ summaries[test_case_name].skip }}{% endif %} -- Duration: {{ summaries[test_case_name].duration }}-->
|
|
||||||
<!-- </td>-->
|
|
||||||
<!-- </tr>-->
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user