Skip to content

[v3] Microsoft account pool bug #65

Description

@Drownek

When i set accounts block in stand environment to:

accounts {
    microsoft {
        account("SkyGalaxis")
        cacheDir.set(layout.projectDirectory.dir("ms-cache"))
    }
}

And then run a paper server with online-mode=true in server.properties, i get following tests failed.
On the first test, it tells me to login using my microsoft account, and from that point authentication from
the first test is reused. When i run tests using predefined accounts block, all tests are passing:

accounts {
    autoRegister {
        usernamePattern.set("pw_%04d")
        password.set(secret.env("PLUGWRIGHT_BOT_PASSWORD"))
        max.set(4)
    }
}

Test: rejoin resumes the session without a prompt

[Bot] Creating bot: SkyGalaxis
[Bot SkyGalaxis] Received message: "SkyGalaxis joined the game"
[Bot] SkyGalaxis spawned successfully
[Bot] SkyGalaxis connection ended: disconnect.quitting
[Bot SkyGalaxis] Received message: "SkyGalaxis joined the game"
[Bot SkyGalaxis] Received message: "Server announcement"
[Bot] SkyGalaxis spawned successfully
[Bot SkyGalaxis] Received message: "Welcome"
[Bot SkyGalaxis] Received message: "Server announcement"
[Bot SkyGalaxis] Received message: "Please, register to the server with the command: /register <password> <ConfirmPassword>"
[Bot SkyGalaxis] Received message: "Server announcement"
    FAILED (6.4s): Expected message matching "/session reconnection/i" not received

Test: permission-restricted command

[Bot] Creating bot: SkyGalaxis
[Bot SkyGalaxis] Received message: "SkyGalaxis joined the game"
[Bot] SkyGalaxis spawned successfully
[Bot] Chatting: /admin reload
[Bot SkyGalaxis] Received message: "In order to use this command you must be authenticated!"
[Bot SkyGalaxis] Received message: "Welcome"
[Bot SkyGalaxis] Received message: "Server announcement"
[Bot SkyGalaxis] Received message: "Please, register to the server with the command: /register <password> <ConfirmPassword>"
[Bot SkyGalaxis] Received message: "Server announcement"
[Bot SkyGalaxis] Received message: "Server announcement"
    FAILED (5.6s): Expected message matching "no permission" not received

Test: admin can use restricted command

[Bot] Creating bot: SkyGalaxis
[Bot SkyGalaxis] Received message: "SkyGalaxis joined the game"
[Bot] SkyGalaxis spawned successfully
[Bot SkyGalaxis] Received message: "[Rcon: Made SkyGalaxis a server operator]"
[Bot] Chatting: /admin reload
[Bot SkyGalaxis] Received message: "In order to use this command you must be authenticated!"
[Bot SkyGalaxis] Received message: "Welcome"
[Bot SkyGalaxis] Received message: "Server announcement"
[Bot SkyGalaxis] Received message: "Please, register to the server with the command: /register <password> <ConfirmPassword>"
[Bot SkyGalaxis] Received message: "Server announcement"
    FAILED (5.7s): Expected message matching "Reloaded" not received

Failed to obtain profile data - probably a rate limit from premium auth servers?

From test beforeEach / afterEach execution order > Level 2 > Level 3 > should run four levels of beforeEach (root → L1 → L2 → L3)

I got following errors in rest of the tests

[Bot] Creating bot: SkyGalaxis
[Bot] SkyGalaxis error (1 so far): Failed to obtain profile data for SkyGalaxis, does the account own minecraft?
[Bot] bot connection error: Failed to obtain profile data for SkyGalaxis, does the account own minecraft?
    FAILED (267ms): Failed to obtain profile data for SkyGalaxis, does the account own minecraft?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions