---
"Return empty response when type doesn't exist":
  - do:
        indices.create:
          index: test_index
          body:
              mappings:
                test_type:
                  properties:
                    text:
                      type:     text
                      analyzer: whitespace

  - do:
      indices.get_mapping:
        index: test_index
        type: not_test_type
 
  - match: { '': {}}

---
"Type missing when no types exist":
  - do:
      catch: missing
      indices.get_mapping:
        type: not_test_type
 

---
"Return empty response when type doesn't exist":
  - do:
        indices.create:
          index: test_index
          body:
              mappings:
                test_type:
                  properties:
                    text:
                      type:     text
                      analyzer: whitespace

  - do:
      indices.get_mapping:
        index: test_index
        type: not_test_type
 
  - match: { '': {}}

---
"Type missing when no types exist":
  - skip:
      version: " - 5.0.2"
      reason: there was a bug prior to 5.0.2
  - do:
      catch: missing
      indices.get_mapping:
        type: not_test_type
 

Add skip for missing types REST test
Add skip for missing types REST test

This commit adds a skip for the missing types REST test. There was a bug
for an unclosed XContent object on version prior to version 5.0.3 which
is going to lead to different responses on vresions prior to 5.0.3 and
versions on or after version 5.0.3.
