blob: 8a8afe035aa2549ba71afc092ccca3d96ad6baa3 [file]
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
import pytest
def test_capability(service_name, operator):
cap = operator.capability()
assert cap is not None
assert cap.read is not None
def test_capability_list_flags(service_name, operator):
cap = operator.capability()
assert cap is not None
assert cap.list_with_limit is not None
assert cap.list_with_start_after is not None
assert cap.list_with_recursive is not None
assert cap.list_with_versions is not None
assert cap.list_with_deleted is not None
def test_capability_exception(service_name, operator):
cap = operator.capability()
assert cap is not None
with pytest.raises(AttributeError):
_ = cap.read_demo