Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release/0.0.12'
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-audi committed Nov 13, 2022
2 parents 8526a86 + 48787c5 commit 9fd47b9
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 36 deletions.
2 changes: 1 addition & 1 deletion src/test/java/com/mytiki/l0_storage/ApiIdTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
classes = {App.class}
)
@ActiveProfiles(profiles = {"test", "local"})
@ActiveProfiles(profiles = {"ci", "local"})
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
public class ApiIdTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/mytiki/l0_storage/ReportTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
classes = {App.class}
)
@ActiveProfiles(profiles = {"test", "local"})
@ActiveProfiles(profiles = {"ci", "local"})
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
public class ReportTest {
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/mytiki/l0_storage/TokenTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
classes = {App.class}
)
@ActiveProfiles(profiles = {"test", "local"})
@ActiveProfiles(profiles = {"ci", "local"})
@TestMethodOrder(MethodOrderer.OrderAnnotation.class)
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
public class TokenTest {
Expand Down
33 changes: 0 additions & 33 deletions worker/upload/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,39 +38,6 @@ export default {
}
}
}

/*
if (request.method === 'POST') {
const requestBody = await request.clone().formData()
const wasabiResponse = await fetch(
new Request('https://' + env.BUCKET_NAME, {
method: request.method,
headers: request.headers,
body: request.body
})
)
if (wasabiResponse.status !== 204) return wasabiResponse
else {
const file = requestBody.get('file')
return report(
env.REMOTE_ID,
env.REMOTE_SECRET,
requestBody.get('key'),
file.length == null ? file.size : file.length
)
}
} else {
return new Response(
JSON.stringify({
message: 'Full authentication is required to access this resource'
}),
{
status: 401,
statusText: 'Unauthorized',
headers: { 'Content-Type': 'application/json' }
}
)
} */
}

function handleMethod (request) {
Expand Down
1 change: 1 addition & 0 deletions worker/upload/wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ compatibility_date = "2022-09-12"
[vars]
PUBKEY = '{ "kty": "EC", "use": "sig", "crv": "P-256", "kid": "dc4bde16-1cff-4335-bd8f-e5639761fdbe", "x": "zAq5eyNt6b25XGckC5u4whIl558xs-IzogJqjygysZo", "y": "hjwlv3xt0L10XiJASkjOFHUxI_72ZeLI378trg8pN6c" }'
MAX_BYTES = 1000000

# The necessary secrets are:
# - REMOTE_ID
# - REMOTE_SECRET
Expand Down

0 comments on commit 9fd47b9

Please sign in to comment.