mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-02 02:57:51 +00:00
Tests: fix doctor gateway auth token formatting
This commit is contained in:
@@ -29,7 +29,11 @@ describe("resolveGatewayAuthTokenForService", () => {
|
|||||||
{
|
{
|
||||||
gateway: {
|
gateway: {
|
||||||
auth: {
|
auth: {
|
||||||
token: { source: "env", provider: "default", id: "CUSTOM_GATEWAY_TOKEN" },
|
token: {
|
||||||
|
source: "env",
|
||||||
|
provider: "default",
|
||||||
|
id: "CUSTOM_GATEWAY_TOKEN",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
secrets: {
|
secrets: {
|
||||||
@@ -73,7 +77,11 @@ describe("resolveGatewayAuthTokenForService", () => {
|
|||||||
{
|
{
|
||||||
gateway: {
|
gateway: {
|
||||||
auth: {
|
auth: {
|
||||||
token: { source: "env", provider: "default", id: "MISSING_GATEWAY_TOKEN" },
|
token: {
|
||||||
|
source: "env",
|
||||||
|
provider: "default",
|
||||||
|
id: "MISSING_GATEWAY_TOKEN",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
secrets: {
|
secrets: {
|
||||||
@@ -95,7 +103,11 @@ describe("resolveGatewayAuthTokenForService", () => {
|
|||||||
{
|
{
|
||||||
gateway: {
|
gateway: {
|
||||||
auth: {
|
auth: {
|
||||||
token: { source: "env", provider: "default", id: "CUSTOM_GATEWAY_TOKEN" },
|
token: {
|
||||||
|
source: "env",
|
||||||
|
provider: "default",
|
||||||
|
id: "CUSTOM_GATEWAY_TOKEN",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
secrets: {
|
secrets: {
|
||||||
@@ -118,7 +130,11 @@ describe("resolveGatewayAuthTokenForService", () => {
|
|||||||
{
|
{
|
||||||
gateway: {
|
gateway: {
|
||||||
auth: {
|
auth: {
|
||||||
token: { source: "env", provider: "default", id: "MISSING_GATEWAY_TOKEN" },
|
token: {
|
||||||
|
source: "env",
|
||||||
|
provider: "default",
|
||||||
|
id: "MISSING_GATEWAY_TOKEN",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
secrets: {
|
secrets: {
|
||||||
@@ -184,7 +200,11 @@ describe("shouldRequireGatewayTokenForInstall", () => {
|
|||||||
{
|
{
|
||||||
gateway: {
|
gateway: {
|
||||||
auth: {
|
auth: {
|
||||||
password: { source: "env", provider: "default", id: "CUSTOM_GATEWAY_PASSWORD" },
|
password: {
|
||||||
|
source: "env",
|
||||||
|
provider: "default",
|
||||||
|
id: "CUSTOM_GATEWAY_PASSWORD",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
secrets: {
|
secrets: {
|
||||||
|
|||||||
Reference in New Issue
Block a user