get gitea ready
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const TELEGRAM_URL = "https://t.me/Onimai";
|
||||
const GITLAB_ISSUES_URL = "https://gitlab.com/vxaboveground/overlord/-/issues/new";
|
||||
const GITEA_ISSUES_URL = "https://overlord.kyun.li/vxaboveground/overlord/issues/new";
|
||||
|
||||
let mounted = false;
|
||||
|
||||
@@ -90,11 +90,11 @@ export function showOnboardingIfNeeded(user) {
|
||||
|
||||
stepContent.innerHTML = `
|
||||
<div class="account-onboarding__card">
|
||||
<h2><i class="fa-brands fa-gitlab" aria-hidden="true"></i> Found a bug? Use GitLab Issues</h2>
|
||||
<p><strong>This is the official place to report bugs.</strong> Create a GitLab issue with what happened, what you expected, and any useful screenshots or logs so the problem can be tracked and fixed.</p>
|
||||
<h2><i class="fa-solid fa-code-branch" aria-hidden="true"></i> Found a bug? Use Gitea Issues</h2>
|
||||
<p><strong>This is the official place to report bugs.</strong> Create a Gitea issue with what happened, what you expected, and any useful screenshots or logs so the problem can be tracked and fixed.</p>
|
||||
<div class="account-onboarding__url-label">Full bug report link</div>
|
||||
<a class="account-onboarding__url" href="${GITLAB_ISSUES_URL}" target="_blank" rel="noopener noreferrer">${GITLAB_ISSUES_URL}</a>
|
||||
<a class="account-onboarding__open" href="${GITLAB_ISSUES_URL}" target="_blank" rel="noopener noreferrer"><i class="fa-brands fa-gitlab" aria-hidden="true"></i> Create a GitLab issue</a>
|
||||
<a class="account-onboarding__url" href="${GITEA_ISSUES_URL}" target="_blank" rel="noopener noreferrer">${GITEA_ISSUES_URL}</a>
|
||||
<a class="account-onboarding__open" href="${GITEA_ISSUES_URL}" target="_blank" rel="noopener noreferrer"><i class="fa-solid fa-code-branch" aria-hidden="true"></i> Create a Gitea issue</a>
|
||||
</div>
|
||||
`;
|
||||
progressText.textContent = "Step 2 of 2";
|
||||
|
||||
@@ -22,6 +22,7 @@ type AgentCommand = {
|
||||
class TransferTestAgent {
|
||||
private socket: WebSocket | null = null;
|
||||
private downloads = new Map<string, Uint8Array>();
|
||||
clientId = CLIENT_ID;
|
||||
|
||||
setDownload(path: string, bytes: Uint8Array): void {
|
||||
this.downloads.set(path, bytes);
|
||||
@@ -76,6 +77,12 @@ class TransferTestAgent {
|
||||
return;
|
||||
}
|
||||
if (message.type === "hello_ack") {
|
||||
if (typeof message.id !== "string" || !message.id) {
|
||||
clearTimeout(timeout);
|
||||
reject(new Error("Agent hello acknowledgement did not include a client ID"));
|
||||
return;
|
||||
}
|
||||
this.clientId = message.id;
|
||||
clearTimeout(timeout);
|
||||
resolve();
|
||||
return;
|
||||
@@ -163,7 +170,7 @@ test.describe("file transfer HTTP API runtime", () => {
|
||||
|
||||
const requestUpload = await api.post("/api/file/upload/request", {
|
||||
data: {
|
||||
clientId: CLIENT_ID,
|
||||
clientId: agent.clientId,
|
||||
path: remotePath,
|
||||
fileName: "overlord-e2e-upload.bin",
|
||||
},
|
||||
@@ -185,7 +192,7 @@ test.describe("file transfer HTTP API runtime", () => {
|
||||
|
||||
const pullHeaders = {
|
||||
"x-agent-token": AGENT_TOKEN,
|
||||
"x-overlord-client-id": CLIENT_ID,
|
||||
"x-overlord-client-id": agent.clientId,
|
||||
};
|
||||
const pull = await api.get(staged.pullUrl, { headers: pullHeaders });
|
||||
expect(pull.ok()).toBeTruthy();
|
||||
@@ -204,7 +211,7 @@ test.describe("file transfer HTTP API runtime", () => {
|
||||
agent.setDownload(remotePath, downloadBytes);
|
||||
|
||||
const requestDownload = await api.post("/api/file/download/request", {
|
||||
data: { clientId: CLIENT_ID, path: remotePath },
|
||||
data: { clientId: agent.clientId, path: remotePath },
|
||||
});
|
||||
expect(requestDownload.ok()).toBeTruthy();
|
||||
const { downloadUrl } = await requestDownload.json();
|
||||
|
||||
@@ -113,6 +113,8 @@ export default async function globalSetup(_config: FullConfig) {
|
||||
HOST: "127.0.0.1",
|
||||
PORT: String(PORT),
|
||||
OVERLORD_TLS_OFFLOAD: "true",
|
||||
OVERLORD_PUBLIC_ORIGIN: BASE_URL,
|
||||
OVERLORD_WS_UPGRADE_RATE_MAX: "1000",
|
||||
OVERLORD_USER: "e2e-admin",
|
||||
OVERLORD_PASS: "E2ePassword!2026",
|
||||
JWT_SECRET: "e2e-jwt-secret-that-is-only-used-for-browser-tests",
|
||||
|
||||
Reference in New Issue
Block a user