[zanata/zanata] d8309a: Add a Translation Resource raw REST API test.

GitHub noreply at github.com
Tue Jan 17 06:17:25 UTC 2012


  Branch: refs/heads/rhbz781270
  Home:   https://github.com/zanata/zanata
  Commit: d8309a9726de2844df51ce6c4f604b8a774c1b74
      https://github.com/zanata/zanata/commit/d8309a9726de2844df51ce6c4f604b8a774c1b74
  Author: Carlos Munoz <camunoz at redhat.com>
  Date:   2012-01-15 (Sun, 15 Jan 2012)

  Changed paths:
    A server/zanata-war/src/test/java/org/zanata/rest/service/raw/TranslationsRestTest.java
  M server/zanata-war/src/test/resources/AllIntegrationTests.tng.xml
  A server/zanata-war/src/test/resources/rest/translations/putResource-1.4-expected.xml
  A server/zanata-war/src/test/resources/rest/translations/putResource-1.4.xml

  Log Message:
  -----------
  Add a Translation Resource raw REST API test.


  Commit: 326e25ea2f300a58a27f54050ae2bf0c0a1e7c1a
      https://github.com/zanata/zanata/commit/326e25ea2f300a58a27f54050ae2bf0c0a1e7c1a
  Author: Carlos Munoz <camunoz at redhat.com>
  Date:   2012-01-16 (Mon, 16 Jan 2012)

  Changed paths:
    M common/zanata-common-api/src/main/java/org/zanata/rest/dto/Glossary.java
  M common/zanata-common-api/src/main/java/org/zanata/rest/dto/extensions/gettext/PoHeader.java
  M common/zanata-common-api/src/main/java/org/zanata/rest/dto/resource/Resource.java
  M common/zanata-common-api/src/main/java/org/zanata/rest/dto/resource/TextFlowTarget.java
  M common/zanata-common-api/src/main/java/org/zanata/rest/dto/resource/TranslationsResource.java
  M common/zanata-common-api/src/test/java/org/zanata/rest/dto/v1/SerializationTest.java
  M server/zanata-war/src/test/java/org/zanata/rest/service/raw/AccountRestTest.java
  M server/zanata-war/src/test/java/org/zanata/rest/service/raw/FileRestTest.java
  M server/zanata-war/src/test/java/org/zanata/rest/service/raw/TranslationsRestTest.java
  M server/zanata-war/src/test/resources/org/zanata/test/model/TextFlowTestData.dbunit.xml
  A server/zanata-war/src/test/resources/rest/account/get.json
  A server/zanata-war/src/test/resources/rest/account/get.xml
  A server/zanata-war/src/test/resources/rest/translations/getTranslations.xml
  M server/zanata-war/src/test/resources/rest/translations/putResource-1.4-expected.xml
  M server/zanata-war/src/test/resources/rest/translations/putResource-1.4.xml

  Log Message:
  -----------
  Refactor Xml Dtos so they are still compatible with 1.4 API.

(rhbz781270)
- Refactored Xml Dtos so that they are not root elements yet are still compatible with the 1.4 clients.
- Added raw Rest tests to make sure that 1.4 valid requests are still served by the subsequent versions of the API. Failure of one of these tests does not necessarily mean an API incompatibility, but should at least raise a red flag.


Compare: https://github.com/zanata/zanata/compare/d8309a9^...326e25e


More information about the zanata-commits mailing list