Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
import time
from eucaops import Eucaops
from eutester.eutestcase import EutesterTestCase
from boto.s3.key import Key
import os
class OSGBasics(EutesterTestCase):
def __init__(self):
#!/usr/bin/env python
from boto.exception import EC2ResponseError
from eucaops import Eucaops
from eutester.eutestcase import EutesterTestCase
import time
import os
class EC2IamTest(EutesterTestCase):
def __init__(self):
## need to bundle an instance before running this test,
## there's too much hard coded data
#!/usr/bin/python
import time
from eucaops import Eucaops
from eutester.eutestcase import EutesterTestCase
import os
import re
#!/usr/bin/env python
from __future__ import division
import time
import os
import hashlib
import tempfile
from math import ceil
from cStringIO import StringIO
from concurrent.futures import ThreadPoolExecutor
from eucaops import Eucaops
#!/usr/bin/env python
from __future__ import division
import time
import os
import hashlib
import tempfile
from math import ceil
from cStringIO import StringIO
from concurrent.futures import ThreadPoolExecutor
@shaon
shaon / euca_9005.py
Created May 21, 2014 15:16
euca-9005 test
#!/usr/bin/env python
from __future__ import division
import time
import os
import hashlib
import tempfile
from math import ceil
from cStringIO import StringIO
from concurrent.futures import ThreadPoolExecutor
@shaon
shaon / BucketTaggingTest.java
Created August 29, 2014 02:44
Basic SET/GET/DELETE operations for Bucket Tagging
import com.amazonaws.auth.BasicAWSCredentials;
import com.amazonaws.services.s3.AmazonS3;
import com.amazonaws.services.s3.AmazonS3Client;
import com.amazonaws.services.s3.model.Bucket;
import com.amazonaws.services.s3.model.BucketTaggingConfiguration;
import com.amazonaws.services.s3.model.TagSet;
import java.util.ArrayList;
import java.util.List;
@shaon
shaon / Eucalyptus Authorization Error
Created April 24, 2012 15:24
Never ever try this at home
import boto
from boto.ec2.regioninfo import RegionInfo
boto_debug=2
if __name__ == '__main__':
conn=boto.connect_ec2(aws_access_key_id="<aws_access_key_id>",
aws_secret_access_key="<aws_secret_access_key>",
is_secure=False,
@shaon
shaon / update_catalog.py
Created November 19, 2012 08:47 — forked from dkavanagh/update_catalog.py
Tool for updating eustore catalog based on signature calculated from tarballs
#!/usr/bin/env python
import os
import sys
import urllib2
import json
import hashlib
import zlib
from optparse import OptionParser
@shaon
shaon / configure_env.sh
Last active December 9, 2015 21:59
this script is for configuring PRC server environment for installing Eucalyptus, this is tested on CentOS 6.3 x86_64
#!/bin/bash
# This script is for configuring server
# environment before installing Eucalyptus.
# This is tested on CentOS 6.3 x86_64
if [ "$1" = "" ];
then
echo "Please provide an argument, e.g frontend or nc"
exit 1