metametricsinc / loadlamb Goto Github PK
View Code? Open in Web Editor NEWLoad testing library built to run on AWS Lambda
License: BSD 3-Clause "New" or "Revised" License
Load testing library built to run on AWS Lambda
License: BSD 3-Clause "New" or "Revised" License
Allow stake holders and engineers to log in using credentials from a Cognito pool to view a projects history based on Run information.
This should help with tracking when the Run is finished.
Creating an API that serves as a source of information for the accompanying web application.
When testing a POST operation on a django site, a 403 status is generated, with the reason being the "CSRF token missing or incorrect". request_class is set to use DjangoPost.
Relevant loadlamb.yaml contents;
request_class: loadlamb.contrib.requests.django.DjangoPost
method_type: POST
Response body;
b'\n<!DOCTYPE html>\n<html lang="en">\n<head>\n <meta http-equiv="content-type" content="text/html; charset=utf-8">\n <meta name="robots" content="NONE,NOARCHIVE">\n <title>403 Forbidden</title>\n <style type="text/css">\n html * { padding:0; margin:0; }\n body * { padding:10px 20px; }\n body * * { padding:0; }\n body { font:small sans-serif; background:#eee; }\n body>div { border-bottom:1px solid #ddd; }\n h1 { font-weight:normal; margin-bottom:.4em; }\n h1 span { font-size:60%; color:#666; font-weight:normal; }\n #info { background:#f6f6f6; }\n #info ul { margin: 0.5em 4em; }\n #info p, #summary p { padding-top:10px; }\n #summary { background: #ffc; }\n #explanation { background:#eee; border-bottom: 0px none; }\n </style>\n</head>\n<body>\n<div id="summary">\n <h1>Forbidden <span>(403)</span></h1>\n <p>CSRF verification failed. Request aborted.</p>\n\n\n</div>\n\n<div id="info">\n <h2>Help</h2>\n \n <p>Reason given for failure:</p>\n <pre>\n CSRF token missing or incorrect.\n </pre>\n \n\n <p>In general, this can occur when there is a genuine Cross Site Request Forgery, or when\n <a\n href="https://docs.djangoproject.com/en/1.8/ref/csrf/">Django\'s\n CSRF mechanism</a> has not been used correctly. For POST forms, you need to\n ensure:</p>\n\n <ul>\n <li>Your browser is accepting cookies.</li>\n\n <li>The view function passes a <code>request</code> to the template\'s <a\n href="https://docs.djangoproject.com/en/dev/topics/templates/#django.template.backends.base.Template.render"><code>render</code></a>\n method.</li>\n\n <li>In the template, there is a <code>{% csrf_token\n %}</code> template tag inside each POST form that\n targets an internal URL.</li>\n\n <li>If you are not using <code>CsrfViewMiddleware</code>, then you must use\n <code>csrf_protect</code> on any views that use the <code>csrf_token</code>\n template tag, as well as those that accept the POST data.</li>\n\n </ul>\n\n <p>You\'re seeing the help section of this page because you have <code>DEBUG =\n True</code> in your Django settings file. Change that to <code>False</code>,\n and only the initial error message will be displayed. </p>\n\n <p>You can customize this page using the CSRF_FAILURE_VIEW setting.</p>\n</div>\n\n</body>\n</html>\n'```
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.