pls work i beg
All checks were successful
Publish to Maven / docker (8, 3.8.5) (push) Successful in 35s

This commit is contained in:
Braydon 2024-04-28 19:09:42 -04:00
parent e0d36d5a02
commit 2f0b99110a
2 changed files with 5 additions and 12 deletions

@ -42,7 +42,7 @@ jobs:
# Run Maven tests # Run Maven tests
- name: Maven Tests - name: Maven Tests
run: mvn clean test -T6C run: mvn test -B
# Publish to Maven # Publish to Maven
- name: Publish to Maven - name: Publish to Maven

@ -23,11 +23,10 @@
*/ */
package me.braydon.pelican.test; package me.braydon.pelican.test;
import lombok.SneakyThrows;
import me.braydon.pelican.action.pelican.PelicanPanelActions; import me.braydon.pelican.action.pelican.PelicanPanelActions;
import me.braydon.pelican.action.pterodactyl.application.ApplicationNodeActions;
import me.braydon.pelican.client.ClientConfig; import me.braydon.pelican.client.ClientConfig;
import me.braydon.pelican.client.Pelican4J; import me.braydon.pelican.client.Pelican4J;
import me.braydon.pelican.model.Node;
import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
@ -64,16 +63,10 @@ public final class PelicanActionTests {
* Test getting a list of * Test getting a list of
* nodes from the panel. * nodes from the panel.
*/ */
@Test @SneakyThrows @Test
void testGetNodes() { void testGetNodes() {
ApplicationNodeActions nodeActions = client.actions().application().nodes(); Node node = client.actions().application().nodes().getDetails(1).execute();
System.out.println("node = " + node);
// Get the details for Node 1, await the response async
nodeActions.getDetails(1).queue(node -> {
System.out.println("node = " + node);
});
Thread.sleep(2000L);
} }
} }
} }