Added gplv2 to script
This commit is contained in:
parent
aa68993cf1
commit
720dce65d2
4 changed files with 28 additions and 6 deletions
|
@ -9,9 +9,9 @@ ifopen net0
|
||||||
echo If you don't have DHCP, then hit Control+C to cancel
|
echo If you don't have DHCP, then hit Control+C to cancel
|
||||||
dhcp net0
|
dhcp net0
|
||||||
set 209:string pxelinux.cfg/default
|
set 209:string pxelinux.cfg/default
|
||||||
set 210:string http://alt.fedoraproject.org/pub/alt/bfo/
|
set 210:string http://download.fedora.redhat.com/pub/alt/bfo/
|
||||||
echo Here we go!
|
echo Here we go!
|
||||||
chain http://alt.fedoraproject.org/pub/alt/bfo/pxelinux.0
|
chain http://download.fedora.redhat.com/pub/alt/bfo/pxelinux.0
|
||||||
dhcp net0
|
dhcp net0
|
||||||
kernel http://alt.fedoraproject.org/pub/alt/bfo/fedora.gpxe
|
kernel http://download.fedora.redhat.com/pub/alt/bfo/fedora.gpxe
|
||||||
boot fedora.gpxe
|
boot fedora.gpxe
|
||||||
|
|
|
@ -7,5 +7,5 @@ set net0/gateway 10.0.2.2
|
||||||
set net0/dns 10.0.2.3
|
set net0/dns 10.0.2.3
|
||||||
config net0
|
config net0
|
||||||
set 209:string pxelinux.cfg/default
|
set 209:string pxelinux.cfg/default
|
||||||
set 210:string http://alt.fedoraproject.org/pub/alt/bfo/
|
set 210:string http://download.fedora.redhat.com/pub/alt/bfo/
|
||||||
chain ${210:string}pxelinux.0
|
chain ${210:string}pxelinux.0
|
||||||
|
|
|
@ -59,6 +59,7 @@ class CheckMirrors:
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
temp = self.main_mirror % (self.directory, self.version, self.architecture)
|
temp = self.main_mirror % (self.directory, self.version, self.architecture)
|
||||||
try:
|
try:
|
||||||
|
print temp + self.xml_filename
|
||||||
self.repodata = urllib2.urlopen(temp + self.xml_filename).read()
|
self.repodata = urllib2.urlopen(temp + self.xml_filename).read()
|
||||||
except Exception, error:
|
except Exception, error:
|
||||||
print "[ERROR] Failed to get XML repodata file:", error
|
print "[ERROR] Failed to get XML repodata file:", error
|
||||||
|
|
|
@ -88,6 +88,8 @@ for link in link_list:
|
||||||
print OK
|
print OK
|
||||||
headers.check(r._headers, 3000000)
|
headers.check(r._headers, 3000000)
|
||||||
|
|
||||||
|
csrf=b.geturl().split('?')[1]
|
||||||
|
|
||||||
print 'Editing Account:'
|
print 'Editing Account:'
|
||||||
r = b.follow_link(text_regex=r'^My Account$')
|
r = b.follow_link(text_regex=r'^My Account$')
|
||||||
r = b.follow_link(text_regex=r'edit')
|
r = b.follow_link(text_regex=r'edit')
|
||||||
|
@ -98,7 +100,7 @@ print '\temail: %s' % b['email']
|
||||||
print '\tTelephone: %s' % b['telephone']
|
print '\tTelephone: %s' % b['telephone']
|
||||||
print '\tComments: %s' % b['comments']
|
print '\tComments: %s' % b['comments']
|
||||||
old_comments = b['comments']
|
old_comments = b['comments']
|
||||||
print '\tChanging Comments Field',
|
print '\tChanging Comments Field:',
|
||||||
b['comments'] = 'Changing for FAS test by %s' % username
|
b['comments'] = 'Changing for FAS test by %s' % username
|
||||||
r = b.submit()
|
r = b.submit()
|
||||||
print OK
|
print OK
|
||||||
|
@ -121,3 +123,22 @@ r = b.submit()
|
||||||
print OK
|
print OK
|
||||||
headers.check(r._headers, 4000000)
|
headers.check(r._headers, 4000000)
|
||||||
print "\t**This should have generated an email to you. Please verify that"
|
print "\t**This should have generated an email to you. Please verify that"
|
||||||
|
|
||||||
|
print 'CSRF:',
|
||||||
|
try:
|
||||||
|
b.open('https://admin.fedoraproject.org/accounts/json/fas_client/user_data')
|
||||||
|
except HTTPError, e:
|
||||||
|
r = b.open('https://admin.fedoraproject.org/accounts/json/fas_client/user_data?%s' % csrf)
|
||||||
|
print OK
|
||||||
|
headers.check(r._headers, 4000000)
|
||||||
|
|
||||||
|
print 'User Data (no memcached):',
|
||||||
|
r = b.open('https://admin.fedoraproject.org/accounts/json/fas_client/user_data?%s&force_refresh=1' % csrf)
|
||||||
|
print OK
|
||||||
|
headers.check(r._headers, 4000000)
|
||||||
|
print '%s - %s' % is_normal(r.readlines()[0].count('username'), 23000)
|
||||||
|
|
||||||
|
print 'User Data (with memcached):',
|
||||||
|
r = b.open('https://admin.fedoraproject.org/accounts/json/fas_client/user_data?%s' % csrf)
|
||||||
|
print '%s - %s' % is_normal(r.readlines()[0].count('username'), 23000)
|
||||||
|
headers.check(r._headers, 4000000)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue