• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

fluent / fluent-plugin-opensearch / 4080784654

pending completion
4080784654

push

github

Takuro Ashie
Replace obsolete File.exists? with File.exist?

1129 of 1227 relevant lines covered (92.01%)

157.66 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/lib/fluent/plugin/opensearch_constants.rb
1
# SPDX-License-Identifier: Apache-2.0
2
#
3
# The fluent-plugin-opensearch Contributors require contributions made to
4
# this file be licensed under the Apache-2.0 license or a
5
# compatible open source license.
6
#
7
# Modifications Copyright fluent-plugin-opensearch Contributors. See
8
# GitHub history for details.
9
#
10
# Licensed to Uken Inc. under one or more contributor
11
# license agreements. See the NOTICE file distributed with
12
# this work for additional information regarding copyright
13
# ownership. Uken Inc. licenses this file to you under
14
# the Apache License, Version 2.0 (the "License"); you may
15
# not use this file except in compliance with the License.
16
# You may obtain a copy of the License at
17
#
18
#   http://www.apache.org/licenses/LICENSE-2.0
19
#
20
# Unless required by applicable law or agreed to in writing,
21
# software distributed under the License is distributed on an
22
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
23
# KIND, either express or implied.  See the License for the
24
# specific language governing permissions and limitations
25
# under the License.
26

27
module Fluent
1✔
28
  module Plugin
1✔
29
    module OpenSearchConstants
1✔
30
      BODY_DELIMITER = "\n".freeze
1✔
31
      UPDATE_OP = "update".freeze
1✔
32
      UPSERT_OP = "upsert".freeze
1✔
33
      CREATE_OP = "create".freeze
1✔
34
      INDEX_OP = "index".freeze
1✔
35
      ID_FIELD = "_id".freeze
1✔
36
      TIMESTAMP_FIELD = "@timestamp".freeze
1✔
37
    end
38
  end
39
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc