github.com/coreos/mantle@v0.13.0/kola/tests/ignition/empty.go (about)

     1  // Copyright 2016 CoreOS, Inc.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  package ignition
    16  
    17  import (
    18  	"github.com/coreos/mantle/kola/cluster"
    19  	"github.com/coreos/mantle/kola/register"
    20  	"github.com/coreos/mantle/platform/conf"
    21  )
    22  
    23  // These tests require the kola key to be passed to the instance via cloud
    24  // provider metadata since it will not be injected into the config. Platforms
    25  // where the cloud provider metadata system is not available have been excluded.
    26  func init() {
    27  	// Tests for https://github.com/coreos/bugs/issues/1184
    28  	register.Register(&register.Test{
    29  		Name:             "cl.ignition.misc.empty",
    30  		Run:              empty,
    31  		ClusterSize:      1,
    32  		ExcludePlatforms: []string{"qemu", "esx"},
    33  		Distros:          []string{"cl"},
    34  		UserData:         conf.Empty(),
    35  	})
    36  	// Tests for https://github.com/coreos/bugs/issues/1981
    37  	register.Register(&register.Test{
    38  		Name:             "cl.ignition.v1.noop",
    39  		Run:              empty,
    40  		ClusterSize:      1,
    41  		ExcludePlatforms: []string{"qemu", "esx", "openstack"},
    42  		Distros:          []string{"cl"},
    43  		Flags:            []register.Flag{register.NoSSHKeyInUserData},
    44  		UserData:         conf.Ignition(`{"ignitionVersion": 1}`),
    45  	})
    46  	register.Register(&register.Test{
    47  		Name:             "cl.ignition.v2.noop",
    48  		Run:              empty,
    49  		ClusterSize:      1,
    50  		ExcludePlatforms: []string{"qemu", "esx", "openstack"},
    51  		Distros:          []string{"cl"},
    52  		Flags:            []register.Flag{register.NoSSHKeyInUserData},
    53  		UserData:         conf.Ignition(`{"ignition":{"version":"2.0.0"}}`),
    54  	})
    55  }
    56  
    57  func empty(_ cluster.TestCluster) {
    58  }