Skip to content

Commit

Permalink
Move /eventgrid/data-plane to /sdk/eventgrid/microsoft-azure-eventgrid (
Browse files Browse the repository at this point in the history
#4087)

* Moved to sdk folder.
  • Loading branch information
mitchdenny authored Jul 12, 2019
1 parent 5be8d7f commit 83152db
Show file tree
Hide file tree
Showing 166 changed files with 25 additions and 4 deletions.
2 changes: 1 addition & 1 deletion eng/.docsettings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ known_content_issues:
- ['README.md', '#3113']
- ['sdk/applicationinsights/microsoft-azure-applicationinsights-query/README.md', '#3113']
- ['sdk/batch/microsoft-azure-batch/README.md', '#3113']
- ['eventgrid/data-plane/README.md', '#3113']
- ['sdk/eventgrid/microsoft-azure-eventgrid/README.md', '#3113']
- ['eventhubs/data-plane/readme.md', '#3113']
- ['eventhubs/data-plane/azure-eventhubs-eph/Readme.md', '#3113']
- ['sdk/authorization/microsoft-azure-authentication-msi-token-provider/readme.md', '#3113']
Expand Down
File renamed without changes.
7 changes: 6 additions & 1 deletion eventgrid/data-plane/pom.xml → ...entgrid/microsoft-azure-eventgrid/pom.xml
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<name>Microsoft Azure SDK for eventgrid</name>
<description>This package contains Microsoft Azure EventGrid SDK.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>
<licenses>
<licenses>
<license>
<name>The MIT License (MIT)</name>
<url>http://opensource.org/licenses/MIT</url>
Expand Down Expand Up @@ -54,6 +54,11 @@
<version>1.5.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.6</version>
</dependency>
</dependencies>
<build>
<plugins>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import org.joda.time.DateTime;
import org.junit.Test;
import org.junit.Ignore;

import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertEquals;
Expand All @@ -21,6 +22,7 @@

public class EventGridTests {
@Test
@Ignore
public void canPublishEvent() throws Exception {
String endpoint = System.getenv("EG_ENDPOINT");
String key = System.getenv("EG_KEY");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
import com.microsoft.azure.eventgrid.models.SubscriptionValidationEventData;
import org.junit.Assert;
import org.junit.Test;
import sun.misc.IOUtils;
import org.apache.commons.io.IOUtils;

import java.io.IOException;
import java.lang.reflect.Type;
Expand Down Expand Up @@ -1038,7 +1038,7 @@ public void consumeResourceWriteSuccessEvent() throws IOException {
private String getTestPayloadFromFile(String fileName) {
ClassLoader classLoader = getClass().getClassLoader();
try {
byte[] bytes = IOUtils.readFully(classLoader.getResourceAsStream("customization\\" + fileName), -1, true);
byte[] bytes = IOUtils.toByteArray(classLoader.getResourceAsStream("customization/" + fileName));
return new String(bytes);
} catch (IOException e) {
throw new RuntimeException(e);
Expand Down
14 changes: 14 additions & 0 deletions sdk/eventgrid/pom.service.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!-- Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. -->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.azure</groupId>
<artifactId>azure-eventgrid-service</artifactId>
<packaging>pom</packaging>
<version>1.0.0</version><!-- Need not change for every release-->
<modules>
<module>microsoft-azure-eventgrid</module>
</modules>
</project>

0 comments on commit 83152db

Please sign in to comment.