[yang-doctors] XPath validation during development

Scott Mansfield <scott.mansfield@ericsson.com> Mon, 02 March 2020 19:24 UTC

Return-Path: <scott.mansfield@ericsson.com>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E73003A0DE8 for <yang-doctors@ietfa.amsl.com>; Mon, 2 Mar 2020 11:24:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level:
X-Spam-Status: No, score=-2.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AMGsdrr4rbLw for <yang-doctors@ietfa.amsl.com>; Mon, 2 Mar 2020 11:24:17 -0800 (PST)
Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2061b.outbound.protection.outlook.com [IPv6:2a01:111:f400:7eaa::61b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6AB6A3A0DE7 for <yang-doctors@ietf.org>; Mon, 2 Mar 2020 11:24:17 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fIZoGquxxAuCdGVSvPmt6uOovQL77ZZI6xBZi08Cb9bYrgjNDdf4Zn6lEBMLJfRBkUkw3DoZyWYMYf1ByOPsrN3ctlE5wfZHSOlzL/ZID7W+QELGy9ZhUNDtMzEXIyePWuPVbHxuC4kxls2QgKKYuDKjGV5d14pP2jdCd4yOQmxChw9lnwdxQ92CNwL3mASjn9FE0psKlbux9VJBdWz4KzaJRSRi5UgjFFkmvEh4PXMaT0T5+tXIYB35gh5yo/bW9Oz15CHyZ657KNsblKgR1+v2AX3smPxNtMoU2J4bt3PHRRtMDs72/LgdOzgNDELURFbXPsfQtDBv5HTOBxJl7A==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Wi9R/6ZVlVJOh5DNm76ynV35AysYQfXLEddz1iudFqE=; b=TcKci9xsE9TsF/P6HJjVkW87wHB7RZ7+Jk7TlKSo1DnXPHAbI/bHhrMPIzny5A79k1HPobV6+sr+UJel9lFYmg23TSl0UBipGfqm4h9tl9okNYnLSiQ9pf9GzZOleSKr9rcb6NJbCpiEE9RUwNAjCKBB5C6sJI9fHv/LXTYnKGFrLoGGz3uLe2CHn1xNayOIoPEiwxpvGiLRvI9If7C6rjoOYIJmR2RvyqMFvf5MIOEqCf8GeBk0efSQcim6e/ZrvdqyHcDdYK55syJ+VPc4r04+QYJugBID8LemQ5ZZXsUARGYXUG7ERA7AxKmONGtBd9J6e3cccMnCzP3wFJwFJQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Wi9R/6ZVlVJOh5DNm76ynV35AysYQfXLEddz1iudFqE=; b=UZJh3BEgfe6RGGRlSb2qFgD4+U1UXt1K6LnMOGX09fowQJhk1GSrwwWQOvnVd0cFQAvKB0bre4gp1cf332m2xaKv09wQ/bfGg6ineYCYatI3H8a1BEE77jw0KJipdicGGKiBTnDmfZQlDbj6KOo8BjL2F2+xNDNsfsb+/OxgwWE=
Received: from DM5PR15MB1772.namprd15.prod.outlook.com (2603:10b6:4:56::18) by DM5PR15MB1772.namprd15.prod.outlook.com (2603:10b6:4:56::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.18; Mon, 2 Mar 2020 19:24:13 +0000
Received: from DM5PR15MB1772.namprd15.prod.outlook.com ([fe80::1019:6edc:ff3e:4407]) by DM5PR15MB1772.namprd15.prod.outlook.com ([fe80::1019:6edc:ff3e:4407%9]) with mapi id 15.20.2772.019; Mon, 2 Mar 2020 19:24:13 +0000
From: Scott Mansfield <scott.mansfield@ericsson.com>
To: "yang-doctors@ietf.org" <yang-doctors@ietf.org>
Thread-Topic: XPath validation during development
Thread-Index: AdXwx2GZow8xnQcxSdu5tpofGB+Nyg==
Date: Mon, 02 Mar 2020 19:24:12 +0000
Message-ID: <DM5PR15MB1772033DBA980333DF41A5348BE70@DM5PR15MB1772.namprd15.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=scott.mansfield@ericsson.com;
x-originating-ip: [24.154.234.238]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: cd7ce656-0392-4bad-b396-08d7bedf4a71
x-ms-traffictypediagnostic: DM5PR15MB1772:
x-microsoft-antispam-prvs: <DM5PR15MB1772073680E658CFB37E07908BE70@DM5PR15MB1772.namprd15.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:7219;
x-forefront-prvs: 033054F29A
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(346002)(396003)(39860400002)(366004)(136003)(189003)(199004)(186003)(66616009)(6916009)(26005)(66446008)(64756008)(66556008)(66476007)(55016002)(9686003)(86362001)(71200400001)(3480700007)(81156014)(81166006)(316002)(4744005)(6506007)(33656002)(478600001)(7696005)(52536014)(8676002)(66946007)(5660300002)(2906002)(44832011)(76116006)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR15MB1772; H:DM5PR15MB1772.namprd15.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 66/P+QvT6irSRwtnsmkEa0Bn10aifucbV63IOJX6HqDKtsSKWy4fzzm3B85j2hzU8C1NBBNr+XO0TEKuIxZdbxvLrAEjJCmI3D4Wx8BYCf/09QQcXglzZZONok6liUYwEvbc/OGrGkyXez8Kdb6BzOxMFgdAR0eLuOaukMN0+J8lohoQvBu+2RuuqHh9RLnNnN0P7BpovZvbXUfvYcib5kC5vszNHbsk5YmOGCkNNdaDkFs3UVy0nB/hRcrw7b1uwxhj1m2bKAyEdcdEyZBbJ6k9FAAv1EgUDK6ZKGjvxspfEm6x49/dJ1Vi7J9QKgf5F73J07w5aiaqQRxjyZxfNu4/ZB6MShHCYEvnbEInkEFlfk77CxU35k5U0dTVvoaf8pV3xxmhRXE42RnVQsvZaOz4v1QW3rFvcP2pPzBOnK1kFyuBD4aTCS0FZPhJzDTT
x-ms-exchange-antispam-messagedata: n8buKrRoHPC6mld4Y0qpMsZVJTsffv2au63arX1dh9+9+XHzM+q2jz9PR5Ms9ruTBtOo7XO+oAhepLEnsVk0IK31dplTiNIKutoh888bCbQ4GdLcRhX28mJAwpIB7vEK+fZB6VlxtunuARxLNdpoyg==
x-ms-exchange-transport-forked: True
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="SHA1"; boundary="----=_NextPart_000_0331_01D5F09E.3E2D68C0"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-Network-Message-Id: cd7ce656-0392-4bad-b396-08d7bedf4a71
X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Mar 2020 19:24:13.0455 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: PMeOeD3j+W7MDifhzoYHAa4GXAu/F5t8KHt503/N4pPg+hlnz6MlTxi/Gv2rRLrCukybCTOFEMf8DB94IFgh4cbBjVCy0Sr+as6f5KVhhjg=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR15MB1772
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/jezcDBBoCijk9uXOBardPRnFkH4>
Subject: [yang-doctors] XPath validation during development
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Email list of the yang-doctors directorate <yang-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-doctors/>
List-Post: <mailto:yang-doctors@ietf.org>
List-Help: <mailto:yang-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Mar 2020 19:24:19 -0000

Hello YANG Doctors!

 

I searched through the yang-doctors mailing list and didn't see an answer to
my question, so apologies if this has been covered before.

 

While development a YANG module, how is the best way to ensure that my XPath
(must etc) statements are syntactically and semantically correct?  Is the
best way to use YUMA123 or confd and build a set of test cases that can be
run on an instantiated model?  What do you do to test your XPath during
development of YANG?

 

Many thanks,

-scott.