Created
August 25, 2017 09:07
-
-
Save AleksNeStu/d98bea154b817981877f4c6b6026027b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (C) 2017 Google Inc. | |
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file> | |
"""Add 6 types GCAs for all entities via REST API.""" | |
import pytest | |
from lib import base | |
from lib.constants import objects | |
class TestAddGCAS(base.Test): | |
@pytest.yield_fixture(scope="function") | |
def dynamic_new_gcas_for_entities(self, request): | |
import conftest | |
yield conftest._common_fixtures(request.param) if request.param else None | |
@pytest.mark.smoke_tests | |
@pytest.mark.parametrize( | |
"dynamic_new_gcas_for_entities", | |
["new_cas_for_{obj}_rest".format(obj=obj) for obj in objects.ALL_CA_OBJS], | |
indirect=["dynamic_new_gcas_for_entities"]) | |
def test_add_6gcas_for_all_entities(self, dynamic_new_gcas_for_entities): | |
for gcas in dynamic_new_gcas_for_entities: | |
print gcas | |
print "\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment