Skip to content

Instantly share code, notes, and snippets.

View Johnetordoff's full-sized avatar

John Tordoff Johnetordoff

View GitHub Profile
=============================================== test session starts ================================================
platform darwin -- Python 3.5.3, pytest-2.8.2, py-1.4.32, pluggy-0.3.1
rootdir: /Users/johntordoff/waterbutler, inifile:
plugins: cov-2.2.0, asyncio-0.3.0
collected 419 items
tests/core/test_metadata.py ......
tests/core/test_path.py ...........
tests/core/test_provider.py .......................................
tests/core/test_utils.py .......
def make_requests(url, method, num_of_requests=None, user=None):
from framework.auth import signing
import random
results = {}
headers = {}
def make_request(url, method, user, results, headers, i):
if user:
headers.update({'Authorization': 'Bearer {}'.format(user.token.token_id)})
FROM node:8-alpine
# Source: https://github.com/docker-library/httpd/blob/7976cabe162268bd5ad2d233d61e340447bfc371/2.4/alpine/Dockerfile#L3
RUN set -x \
&& addgroup -g 82 -S www-data \
&& adduser -h /var/www -u 82 -D -S -G www-data www-data
RUN apk add --no-cache --virtual .run-deps \
su-exec \
bash \
query = {
"query": {
"term": {"user_id": "7vx6e"}
},
"aggs": {
"view_timeframe": {
"filter": {
"range": {
"timestamp": {
{'_shards': {'failed': 0, 'skipped': 0, 'successful': 1, 'total': 1},
'aggregations': {'view_timeframe': {'doc_count': 2,
'preprints': {'buckets': [{'doc_count': 1,
'key': 'a8a2892b-7942-4a5a-b24e-1a70fcdb1828'},
{'doc_count': 1,
'key': 'eb970c56-942b-47b9-b028-5fe0d4fa6200'}],
'doc_count_error_upper_bound': 0,
'sum_other_doc_count': 0}}},
'hits': {'hits': [{'_id': 'O3QOUXEBeP7rCVrWfUGV',
'_index': 'osf_preprintview_2020',
import asyncio
import requests
from aiohttp import ClientSession, http_exceptions
async def hit():
async with ClientSession(cookies={'cookie':' ssdfd'}) as session:
async with session.get('http://localhost:8000/v2/') as resp:
return resp.status
tasks = [hit(), hit(), hit(), hit(), hit(),hit(), hit(), hit(), hit(), hit(), hit(), hit(), hit(), hit(), hit(),hit(), hit(), hit(), hit(), hit()]
Skip to content
Pull requests
Issues
Marketplace
Explore
@Johnetordoff
CenterForOpenScience /
osf.io
Public
This file has been truncated, but you can view the full file.
2022-08-14T22:38:28.5016233Z Requested labels: ubuntu-20.04
2022-08-14T22:38:28.5016279Z Job defined at: CenterForOpenScience/osf.io/.github/workflows/test-build.yml@refs/pull/10020/merge
2022-08-14T22:38:28.5016305Z Waiting for a runner to pick up this job...
2022-08-14T22:38:29.4733945Z Job is waiting for a hosted runner to come online.
2022-08-14T22:38:32.3676729Z Job is about to start running on the hosted runner: GitHub Actions 13 (hosted)
2022-08-14T22:38:34.4260323Z Current runner version: '2.294.0'
2022-08-14T22:38:34.4291200Z ##[group]Operating System
2022-08-14T22:38:34.4291967Z Ubuntu
2022-08-14T22:38:34.4292267Z 20.04.4
2022-08-14T22:38:34.4292628Z LTS
This file has been truncated, but you can view the full file.
2022-08-14T22:38:28.5016233Z Requested labels: ubuntu-20.04
2022-08-14T22:38:28.5016279Z Job defined at: CenterForOpenScience/osf.io/.github/workflows/test-build.yml@refs/pull/10020/merge
2022-08-14T22:38:28.5016305Z Waiting for a runner to pick up this job...
2022-08-14T22:38:29.4733945Z Job is waiting for a hosted runner to come online.
2022-08-14T22:38:32.3676729Z Job is about to start running on the hosted runner: GitHub Actions 13 (hosted)
2022-08-14T22:38:34.4260323Z Current runner version: '2.294.0'
2022-08-14T22:38:34.4291200Z ##[group]Operating System
2022-08-14T22:38:34.4291967Z Ubuntu
2022-08-14T22:38:34.4292267Z 20.04.4
2022-08-14T22:38:34.4292628Z LTS
2022-08-16T17:38:30.0331060Z ==================================== ERRORS ====================================
2022-08-16T17:38:30.0331819Z _ ERROR at setup of TestPreprintUpdateLicense.test_admin_update_license_with_invalid_id _
2022-08-16T17:38:30.0332499Z api_tests/preprints/views/test_preprint_detail.py:1203: in preprint_provider
2022-08-16T17:38:30.0382710Z preprint_provider.licenses_acceptable = [cc0_license, no_license]
2022-08-16T17:38:30.0383541Z /opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/django/db/models/fields/related_descriptors.py:547: in __set__
2022-08-16T17:38:30.0383947Z % self._get_set_deprecation_msg_params(),
2022-08-16T17:38:30.0384510Z E TypeError: Direct assignment to the forward side of a many-to-many set is prohibited. Use licenses_acceptable.set() instead.
2022-08-16T17:38:30.0384974Z __ ERROR at setup of TestPreprintUpdateLicense.test_admin_can_update_license ___
2022-08-16T17:38:30.0385384Z api_tests/preprints/views/test_preprint_detail.py:1203: in