Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
chore: Scp test on windows only + agent feature first
Browse files Browse the repository at this point in the history
  • Loading branch information
nbrouand committed Nov 25, 2022
1 parent 55aa173 commit 81f47a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import static com.chutneytesting.action.spi.ActionExecutionResult.Status.Success;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.condition.OS.WINDOWS;
import static org.mockito.Mockito.mock;

import com.chutneytesting.action.spi.ActionExecutionResult;
Expand All @@ -16,6 +17,7 @@
import org.apache.sshd.server.SshServer;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.condition.DisabledOnOs;
import org.junit.jupiter.api.io.TempDir;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
Expand Down Expand Up @@ -63,6 +65,7 @@ void should_upload_local_file_to_remote_destination(Target target) {
/**
* Failed if launched in git bash
*/
@DisabledOnOs(WINDOWS)
@ParameterizedTest
@MethodSource("securedTargets")
void should_download_remote_file_to_local_destination(Target target) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Feature: Agent test

Agent A (main) -> Agent B
We are the agent B. The agent A send us its network configuration in order we save it.
TODO => rename folder to agent when we could delete all existing environment.
Environments make the explore time consuming because of connection refused and connection timeout

Scenario: We receive a network configuration to persist
Given network configuration initialized
Expand All @@ -14,6 +16,7 @@ We are the agent B. The agent A send us its network configuration in order we sa
Do http-post Init configuration
On CHUTNEY_LOCAL
With uri /api/v1/agentnetwork/configuration
With timeout 5 sec
With headers
| Content-Type | application/json;charset=UTF-8 |
With body ${#jsonSerialize(#networkConfiguration)}
Expand Down

0 comments on commit 81f47a7

Please sign in to comment.