Exemple #1
0
        public void CorrectRequestForGetAllNodePools()
        {
            var factory = Substitute.For <IConnection>();
            var client  = new KubernetesClient(factory);

            client.GetAllNodePools("1");
            var parameters = Arg.Is <List <Parameter> >(list => (string)list[0].Value == "1");

            factory.Received().GetPaginated <KubernetesNodePool>("kubernetes/clusters/{id}/node_pools", parameters, "node_pools");
        }