Skip to content

Commit

Permalink
chore: update amazon bucket values to invalid names
Browse files Browse the repository at this point in the history
  • Loading branch information
janniks committed Oct 19, 2023
1 parent ca0513c commit b56d58a
Show file tree
Hide file tree
Showing 19 changed files with 1,490 additions and 922 deletions.
2 changes: 1 addition & 1 deletion packages/auth/tests/auth.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ test('profileLookUp', async () => {

const mockZonefile = {
zonefile:
'$ORIGIN ryan.id\n$TTL 3600\n_http._tcp IN URI 10 1 "https://blockstack.s3.amazonaws.com/ryan.id"\n',
'$ORIGIN ryan.id\n$TTL 3600\n_http._tcp IN URI 10 1 "https://_example_.s3.amazonaws.com/ryan.id"\n',
address: 'SP3AMDH2ZZB8XQK467V9HV5CRQF2RPBZ4MDMSBHJZ',
};

Expand Down
24 changes: 12 additions & 12 deletions packages/auth/tests/sampleData.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as fs from 'fs'
import * as fs from 'fs';

const TEST_DATA_DIR = './tests/testData'
const TEST_DATA_DIR = './tests/testData';

export const sampleNameRecords = {
ryan: JSON.parse(fs.readFileSync(`${TEST_DATA_DIR}/name-records/ryan.json`, 'utf8'))
}
ryan: JSON.parse(fs.readFileSync(`${TEST_DATA_DIR}/name-records/ryan.json`, 'utf8')),
};

export const sampleProfiles = {
balloonDog: JSON.parse(fs.readFileSync(`${TEST_DATA_DIR}/profiles/balloonDog.json`, 'utf8')),
Expand All @@ -15,16 +15,16 @@ export const sampleProfiles = {
navalLegacy: JSON.parse(fs.readFileSync(`${TEST_DATA_DIR}/profiles/naval-legacy.json`, 'utf8')),
navalLegacyConvert: JSON.parse(
fs.readFileSync(`${TEST_DATA_DIR}/profiles/naval-legacy-convert.json`, 'utf8')
)
}
),
};

export const sampleTokenFiles = {
ryan_apr20: {
url: 'https://blockstack.s3.amazonaws.com/ryan_apr20.id',
body: JSON.parse(fs.readFileSync(`${TEST_DATA_DIR}/token-files/ryan_apr20.json`, 'utf8'))
url: 'https://_example_.s3.amazonaws.com/ryan_apr20.id',
body: JSON.parse(fs.readFileSync(`${TEST_DATA_DIR}/token-files/ryan_apr20.json`, 'utf8')),
},
ryan: {
url: 'https://blockstack.s3.amazonaws.com/ryan.id',
body: JSON.parse(fs.readFileSync(`${TEST_DATA_DIR}/token-files/ryan.json`, 'utf8'))
}
}
url: 'https://_example_.s3.amazonaws.com/ryan.id',
body: JSON.parse(fs.readFileSync(`${TEST_DATA_DIR}/token-files/ryan.json`, 'utf8')),
},
};
116 changes: 58 additions & 58 deletions packages/auth/tests/testData/profiles/larry.json
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
{
"@type": "Person",
"account": [
{
"@type": "Account",
"identifier": "larrysalibra",
"proofType": "http",
"service": "twitter"
},
{
"@type": "Account",
"identifier": "larrysalibra",
"proofType": "http",
"service": "github"
},
{
"@type": "Account",
"identifier": "1EyuZ8qxdhHjcnTChwQLyQaN3cmdK55DkH",
"role": "payment",
"service": "bitcoin"
},
{
"@type": "Account",
"contentUrl": "http://pgp.mit.edu/pks/lookup?op=get&search=0xDE3B5425164C4849",
"identifier": "B516CB7A08819697B25E4694DE3B5425164C4849",
"role": "key",
"service": "pgp"
},
{
"@type": "Account",
"identifier": "larry.salibra",
"proofType": "http",
"proofUrl": "https://www.facebook.com/larry.salibra/posts/10100341028448093",
"service": "facebook"
}
],
"address": {
"@type": "PostalAddress",
"addressLocality": "Hong Kong"
"@type": "Person",
"account": [
{
"@type": "Account",
"identifier": "larrysalibra",
"proofType": "http",
"service": "twitter"
},
"description": "Blockchain, software, security. Decentralize the world (w/ #bitcoin)! \u8b58\u4e2d\u6587",
"image": [
{
"@type": "ImageObject",
"contentUrl": "https://s3.amazonaws.com/kd4/larry",
"name": "avatar"
},
{
"@type": "ImageObject",
"contentUrl": "https://s3.amazonaws.com/dx3/larry",
"name": "cover"
}
],
"name": "Larry Salibra",
"website": [
{
"@type": "WebSite",
"url": "https://www.larrysalibra.com"
}
]
{
"@type": "Account",
"identifier": "larrysalibra",
"proofType": "http",
"service": "github"
},
{
"@type": "Account",
"identifier": "1EyuZ8qxdhHjcnTChwQLyQaN3cmdK55DkH",
"role": "payment",
"service": "bitcoin"
},
{
"@type": "Account",
"contentUrl": "http://pgp.mit.edu/pks/lookup?op=get&search=0xDE3B5425164C4849",
"identifier": "B516CB7A08819697B25E4694DE3B5425164C4849",
"role": "key",
"service": "pgp"
},
{
"@type": "Account",
"identifier": "larry.salibra",
"proofType": "http",
"proofUrl": "https://www.facebook.com/larry.salibra/posts/10100341028448093",
"service": "facebook"
}
],
"address": {
"@type": "PostalAddress",
"addressLocality": "Hong Kong"
},
"description": "Blockchain, software, security. Decentralize the world (w/ #bitcoin)! \u8b58\u4e2d\u6587",
"image": [
{
"@type": "ImageObject",
"contentUrl": "https://s3.amazonaws.com/_example_/larry",
"name": "avatar"
},
{
"@type": "ImageObject",
"contentUrl": "https://s3.amazonaws.com/_example_/larry",
"name": "cover"
}
],
"name": "Larry Salibra",
"website": [
{
"@type": "WebSite",
"url": "https://www.larrysalibra.com"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"role": "key",
"service": "pgp",
"identifier": "07354EDF5C6CF2572847840D8FA3F960B62B7C41",
"contentUrl": "https://s3.amazonaws.com/pk9/naval"
"contentUrl": "https://s3.amazonaws.com/_example_/naval"
}
]
},
Expand Down
6 changes: 3 additions & 3 deletions packages/auth/tests/testData/profiles/naval-legacy.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"website": "https://angel.co/naval",
"pgp": {
"url": "https://s3.amazonaws.com/pk9/naval",
"url": "https://s3.amazonaws.com/_example_/naval",
"fingerprint": "07354EDF5C6CF2572847840D8FA3F960B62B7C41"
},
"v": "0.2",
Expand All @@ -28,7 +28,7 @@
},
"twitterUsername": "naval",
"graph": {
"url": "https://s3.amazonaws.com/grph/naval"
"url": "https://s3.amazonaws.com/_example_/naval"
},
"cover": {
"url": "https://pbs.twimg.com/profile_banners/745273/1355705777/web_retina"
Expand All @@ -46,4 +46,4 @@
"location": {
"formatted": "San Francisco, CA"
}
}
}
82 changes: 41 additions & 41 deletions packages/auth/tests/testData/profiles/ryan.json
Original file line number Diff line number Diff line change
@@ -1,69 +1,69 @@
{
"@type": "Person",
"@type": "Person",
"account": [
{
"service": "bitcoin",
"@type": "Account",
"identifier": "1LFS37yRSibwbf8CnXeCn5t1GKeTEZMmu9",
"service": "bitcoin",
"@type": "Account",
"identifier": "1LFS37yRSibwbf8CnXeCn5t1GKeTEZMmu9",
"role": "payment"
},
},
{
"service": "pgp",
"contentUrl": "https://s3.amazonaws.com/pk9/ryan",
"@type": "Account",
"service": "pgp",
"contentUrl": "https://s3.amazonaws.com/_example_/ryan",
"@type": "Account",
"identifier": "1E4329E6634C75730D4D88C0638F2769D55B9837"
},
},
{
"service": "openbazaar",
"proofType": "http",
"@type": "Account",
"proofUrl": "https://www.facebook.com/msrobot0/posts/10153644446452759",
"service": "openbazaar",
"proofType": "http",
"@type": "Account",
"proofUrl": "https://www.facebook.com/msrobot0/posts/10153644446452759",
"identifier": "f2250123a6af138c86b30f3233b338961dc8fbc3"
},
},
{
"service": "twitter",
"proofType": "http",
"@type": "Account",
"proofUrl": "https://twitter.com/ryaneshea/status/765575388735082496",
"service": "twitter",
"proofType": "http",
"@type": "Account",
"proofUrl": "https://twitter.com/ryaneshea/status/765575388735082496",
"identifier": "ryaneshea"
},
},
{
"service": "github",
"proofType": "http",
"@type": "Account",
"proofUrl": "https://gist.github.com/shea256/a6dc1f3182f28bb2285feaef07a14340",
"service": "github",
"proofType": "http",
"@type": "Account",
"proofUrl": "https://gist.github.com/shea256/a6dc1f3182f28bb2285feaef07a14340",
"identifier": "shea256"
},
},
{
"service": "facebook",
"proofType": "http",
"@type": "Account",
"proofUrl": "https://www.facebook.com/ryaneshea/posts/10154182997407713",
"service": "facebook",
"proofType": "http",
"@type": "Account",
"proofUrl": "https://www.facebook.com/ryaneshea/posts/10154182997407713",
"identifier": "ryaneshea"
}
],
],
"website": [
{
"@type": "WebSite",
"@type": "WebSite",
"url": "http://shea.io"
}
],
"description": "Co-founder of Blockstack Inc.",
"name": "Ryan Shea",
],
"description": "Co-founder of Blockstack Inc.",
"name": "Ryan Shea",
"address": {
"@type": "PostalAddress",
"@type": "PostalAddress",
"addressLocality": "New York"
},
},
"image": [
{
"@type": "ImageObject",
"contentUrl": "https://s3.amazonaws.com/kd4/ryan",
"@type": "ImageObject",
"contentUrl": "https://s3.amazonaws.com/_example_/ryan",
"name": "avatar"
},
},
{
"@type": "ImageObject",
"contentUrl": "https://s3.amazonaws.com/dx3/ryan",
"@type": "ImageObject",
"contentUrl": "https://s3.amazonaws.com/_example_/ryan",
"name": "cover"
}
]
}
}
Loading

0 comments on commit b56d58a

Please sign in to comment.