Skip to content

Commit

Permalink
feat: windows specific network commands
Browse files Browse the repository at this point in the history
  • Loading branch information
urvashijain18 committed Oct 25, 2023
1 parent 9ecd3b3 commit 6a31530
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ private void runNetshCommand(String command, boolean ignoreError) {
}

@Override
public void disconnectNetwork() {
throw new UnsupportedOperationException("Operation not supported");
public void disconnectNetwork() throws InterruptedException, IOException {
blockPorts(NETWORK_PORTS);
}

@Override
public void recoverNetwork() {
throw new UnsupportedOperationException("Operation not supported");
public void recoverNetwork() throws InterruptedException, IOException {
deleteRules(NETWORK_PORTS);
}
}
29 changes: 0 additions & 29 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -147,35 +147,6 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.16.1</version>
<configuration>
<properties>
<property>
<name>aws.sdk.version</name>
<dependencies>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>bom</artifactId>
<version>latest</version>
</dependency>
</dependencies>
</property>
</properties>
</configuration>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>update-properties</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>com.github.siom79.japicmp</groupId>
<artifactId>japicmp-maven-plugin</artifactId>
Expand Down

0 comments on commit 6a31530

Please sign in to comment.