Skip to content

Instantly share code, notes, and snippets.

def test_status_of_first_build(self):
print('la'*42)
build = self.project2.builds.create(version='1')
print('Build created!!!')
print('build.status.baseline %s' % build.status.baseline)
print('ProjectStatus.baseline %s' % ProjectStatus.baseline)
status = ProjectStatus.create_or_update(build)
print('status %s (%d)' % (status, status.id))
print('build %s (%d)' % (build, build.id))
#!/bin/bash
set -eu
export DATABASE='ENGINE=django.db.backends.sqlite3:NAME=syzkaller_db.sqlite3'
echo "Setting testing squad-db"
squad-admin migrate 2>&1 > /dev/null
cat << SCRIPT | squad-admin shell
[127|0]terraform(move-to-sqs *%) $ ENV=staging ./terraform plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
aws_sns_topic.qa_reports_cloudwatch_notifications: Refreshing state... (ID: arn:aws:sns:us-east-1:495570029050:staging_qa_reports_cloudwatch_notifications)
aws_lb_target_group.qa-reports-tg: Refreshing state... (ID: arn:aws:elasticloadbalancing:us-east-1:...staging-qa-reports-tg/66d3228ab651edce)
aws_key_pair.auth: Refreshing state... (ID: qa-reports-staging)
aws_acm_certificate.acm-cert: Refreshing state... (ID: arn:aws:acm:us-east-1:495570029050:cert...e/2adeddd0-e754-44e8-8b1b-dcf5e77ee94b)
aws_sqs_queue.qa_reports_queue[7]: Refreshing state... (ID: https://sqs.us-east-1.amazonaws.com/495570029050/staging_core_reporting)
diff --git a/package-lock.json b/package-lock.json
index 2fc8f27..996711a 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,8 @@
{
- "requires": true,
+ "name": "squad-tests",
+ "version": "1.0.0",
"lockfileVersion": 1,
@chaws
chaws / bash-cheatsheet.sh
Created June 26, 2017 14:25 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
// g++ btree.cpp
#include "rapidxml.hpp"
#include <iostream>
#include <vector>
#include <fstream>
using namespace std;
using namespace rapidxml;
#include <iostream>
#include <vector>
// Macro to reduce code
#define add(n) children.push_back(n)
using namespace std;
class Node
{
@chaws
chaws / SATES LOC
Last active November 15, 2016 22:56
Number of LOC per SATE
SATE 2008:
Naim (C) 23,210
Nagios (C) 65,133
Lighttpd (C) 38,306
OpenNMS (Java) 131,507
MvnForum (Java) 128,784
DSpace (Java) 53,847
Total = 440787
1 10 2 1
5 6 4 2
2 10 5 1
9 4 2 7
8 8 4 8
6 5 5 4
5 2 3 10
3 5 1 9
2 6 2 4
1 7 4 4
// This was based on problem 1077: infix to postfix form
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define PRI(c) (c == '*' ? 1 : (c == '(' ? -1 : 0))
#define push iStack++, opStack[iStack].c = infix[i], opStack[iStack].pri = PRI(infix[i])
// Encapsulate an element